home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / modu1096.zip / ISOsym / charclass.def < prev    next >
Text File  |  1996-09-03  |  806b  |  26 lines

  1. DEFINITION MODULE CharClass;
  2.  
  3.   (* Classification of values of the type CHAR *)
  4.  
  5. PROCEDURE IsNumeric (ch: CHAR): BOOLEAN;
  6.   (* Returns TRUE if and only if ch is classified as a numeric character *)
  7.  
  8. PROCEDURE IsLetter (ch: CHAR): BOOLEAN;
  9.   (* Returns TRUE if and only if ch is classified as a letter *)
  10.  
  11. PROCEDURE IsUpper (ch: CHAR): BOOLEAN;
  12.   (* Returns TRUE if and only if ch is classified as an upper case letter *)
  13.  
  14. PROCEDURE IsLower (ch: CHAR): BOOLEAN;
  15.   (* Returns TRUE if and only if ch is classified as a lower case letter *)
  16.  
  17. PROCEDURE IsControl (ch: CHAR): BOOLEAN;
  18.   (* Returns TRUE if and only if ch represents a control function *)
  19.  
  20. PROCEDURE IsWhiteSpace (ch: CHAR): BOOLEAN;
  21.   (* Returns TRUE if and only if ch represents a space character or a format
  22.      effector
  23.    *)
  24.  
  25. END CharClass.
  26.