Changeset 4493 for trunk/library/character.lgt
- Timestamp:
- 10/07/08 04:19:46 (3 months ago)
- Files:
-
- 1 modified
-
trunk/library/character.lgt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/character.lgt
r4492 r4493 9 9 date is 2008/10/7, 10 10 comment is 'Character predicates.']). 11 12 is_ascii(Char) :- 13 char_code(Char, Code), 14 Code >= 0, 15 Code =< 127. 11 16 12 17 is_alpha('_'). … … 64 69 is_vowel('U'). 65 70 71 is_white_space(' '). 72 is_white_space('\t'). 73 66 74 is_layout(' '). 67 75 is_layout('\t'). 76 is_layout('\f'). 77 is_layout('\r'). 68 78 is_layout('\n'). 79 is_layout('\v'). 69 80 70 81 is_quote(''''). … … 78 89 is_punctation('?'). 79 90 is_punctation('!'). 91 92 is_period('.'). 93 is_period('?'). 94 is_period('!'). 95 96 parenthesis('(', ')'). 97 parenthesis('[', ']'). 98 parenthesis('{', '}'). 80 99 81 100 lower_upper(a, 'A').
