home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xc212os2.zip / ISODEF / charclas.def < prev    next >
Text File  |  1994-12-22  |  823b  |  25 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 effector *)
  22.  
  23. END CharClass.
  24.  
  25.