"Fossies" - the Fresh Open Source Software Archive 
Member "seed7/src/chr_rtl.h" (25 May 2020, 2685 Bytes) of package /linux/misc/seed7_05_20210223.tgz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "chr_rtl.h" see the
Fossies "Dox" file reference documentation.
1 /********************************************************************/
2 /* */
3 /* chr_rtl.h Primitive actions for the char type. */
4 /* Copyright (C) 1989 - 2015 Thomas Mertes */
5 /* */
6 /* This file is part of the Seed7 Runtime Library. */
7 /* */
8 /* The Seed7 Runtime Library is free software; you can */
9 /* redistribute it and/or modify it under the terms of the GNU */
10 /* Lesser General Public License as published by the Free Software */
11 /* Foundation; either version 2.1 of the License, or (at your */
12 /* option) any later version. */
13 /* */
14 /* The Seed7 Runtime Library is distributed in the hope that it */
15 /* will be useful, but WITHOUT ANY WARRANTY; without even the */
16 /* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */
17 /* PURPOSE. See the GNU Lesser General Public License for more */
18 /* details. */
19 /* */
20 /* You should have received a copy of the GNU Lesser General */
21 /* Public License along with this program; if not, write to the */
22 /* Free Software Foundation, Inc., 51 Franklin Street, */
23 /* Fifth Floor, Boston, MA 02110-1301, USA. */
24 /* */
25 /* Module: Seed7 Runtime Library */
26 /* File: seed7/src/chr_rtl.h */
27 /* Changes: 1992, 1993, 1994, 2005 Thomas Mertes */
28 /* Content: Primitive actions for the char type. */
29 /* */
30 /********************************************************************/
31
32 #if ALLOW_STRITYPE_SLICES
33 #define chrStrMacro(ch,str) (str.size=1,str.mem=str.mem1,str.mem1[0]=(strElemType)(ch),&str)
34 #else
35 #define chrStrMacro(ch,str) (str.size=1,str.mem[0]=(strElemType)(ch),&str)
36 #endif
37
38
39 striType chrCLit (charType character);
40 #if ALLOW_STRITYPE_SLICES
41 striType chrCLitToBuffer (charType character, striType buffer);
42 #endif
43 intType chrCmp (charType char1, charType char2);
44 boolType chrIsLetter (charType ch);
45 charType chrLow (charType ch);
46 striType chrStr (charType ch);
47 charType chrUp (charType ch);
48 intType chrWidth (charType ch);