• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
    • RDF quality heuristics
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

/usr/lib/swipl/library/dcg/basics.pl
AllApplicationManualNameSummaryHelp

  • dcg
    • basics.pl -- Various general DCG utilities
      • string_without//2
      • string//1
      • blanks//0
      • blank//0
      • nonblanks//1
      • nonblank//1
      • blanks_to_nl//0
      • whites//0
      • white//0
      • alpha_to_lower//1
      • digits//1
      • digit//1
      • integer//1
      • float//1
      • number//1
      • xinteger//1
      • xdigit//1
      • xdigits//1
      • eos//0
      • remainder//1
      • prolog_var_name//1
      • atom//1
 alpha_to_lower(?C)// is semidet
Read a letter (class alpha) and return it as a lowercase letter. If C is instantiated and the DCG list is already bound, C must be lower and matches both a lower and uppercase letter. If the output list is unbound, its first element is bound to C. For example:
?- alpha_to_lower(0'a, `AB`, R).
R = [66].
?- alpha_to_lower(C, `AB`, R).
C = 97, R = [66].
?- alpha_to_lower(0'a, L, R).
L = [97|R].
ClioPatria (version V3.1.1-40-g9d9e003)