File: LocStrings.Mod

package info (click to toggle)
oo2c32 1.5.0-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 8,748 kB
  • ctags: 5,415
  • sloc: ansic: 95,007; sh: 473; makefile: 344; perl: 57; lisp: 21
file content (70 lines) | stat: -rw-r--r-- 2,440 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
(*	$Id: LocStrings.Mod,v 1.3 1999/09/02 13:37:34 acken Exp $	*)
MODULE LocStrings [FOREIGN "C"; LINK FILE "LocStrings.c" END];
(* LocStrings - Character and string localization facilities.
   Copyright (C) 1996, 1997 Michael Griebling
  
   This module is free software; you can redistribute it and/or modify
   it under the terms of the GNU Lesser General Public License as 
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.
   
   This module is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU Lesser General Public License for more details.
   
   You should have received a copy of the GNU Lesser General Public
   License along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*)


PROCEDURE IsAlpha* (ch: CHAR): BOOLEAN;
(* return TRUE iff `ch' is alphabetic *)

PROCEDURE IsAlphaNumeric* (ch: CHAR): BOOLEAN;
(* return TRUE iff `ch' is alphabetic or a digit *)

PROCEDURE IsControl* (ch: CHAR): BOOLEAN;
(* return TRUE iff `ch' is a control character *)

PROCEDURE IsDigit* (ch: CHAR): BOOLEAN;
(* return TRUE iff `ch' is a digit *)

PROCEDURE IsGraphic* (ch: CHAR): BOOLEAN;
(* return TRUE iff `ch' is a graphical character *)

PROCEDURE IsPrintable* (ch: CHAR): BOOLEAN;
(* return TRUE iff `ch' is a printable character *)

PROCEDURE IsLower* (ch: CHAR): BOOLEAN;
(* return TRUE iff `ch' is a lowercase character *)

PROCEDURE IsPunctuation* (ch: CHAR): BOOLEAN;
(* return TRUE iff `ch' is a punctuation character *)

PROCEDURE IsSpace* (ch: CHAR): BOOLEAN;
(* return TRUE iff `ch' is a white-space character *)

PROCEDURE IsUpper* (ch: CHAR): BOOLEAN;
(* return TRUE iff `ch' is an uppercase character *)

PROCEDURE ToUpper* (ch: CHAR): CHAR;
(* return CAP(ch) *)

PROCEDURE ToLower* (ch: CHAR): CHAR;
(* return lowercase version of `ch' *)

PROCEDURE Cmp* (s1, s2: ARRAY OF CHAR): SHORTINT;
(* return the following results:
            s1<s2 -> -1
            s1=s2 ->  0
            s1>s2 ->  1 *)
            
PROCEDURE Equal* (s1, s2: ARRAY OF CHAR): BOOLEAN;
(* return TRUE when s1 = s2 *)

PROCEDURE Capitalize* (VAR s1: ARRAY OF CHAR);
(* applies the ToUpper function to each character of the string value in s1 *)

END LocStrings.