comparison src/aci2/mfw/mfw_str.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +--------------------------------------------------------------------+
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_str.h $|
4 | $Author:: Es $ CONDAT GmbH $Revision:: 1 $|
5 | CREATED: 03.08.00 $Modtime:: 03.08.00 18:23 $|
6 | STATE : code |
7 +--------------------------------------------------------------------+
8
9 MODULE : MFW_STR
10
11 PURPOSE : String types & constants
12
13 EXPORT :
14
15 TO DO :
16
17 $History:: mfw_str.h $
18 */
19
20 #ifndef _DEF_MFW_STR_H_
21 #define _DEF_MFW_STR_H_
22
23
24 /* #define MFW_UNICODE_STRINGS */ /* 16 bit character codes */
25 /* #define MFW_COUNTED_STRINGS */ /* strings with prefix len */
26
27
28 #ifdef MFW_UNICODE_STRINGS
29 #define MfwChar short
30 #else
31 #define MfwChar char
32 #endif
33
34 #ifdef MFW_COUNTED_STRINGS
35 typedef struct
36 {
37 short len;
38 MfwChar s [];
39 } MfwStr;
40 #else
41 typedef MfwChar MfwStr;
42 #endif
43
44
45 /* PROTOTYPES */
46 MfwChar* mfwStrChr (MfwChar* p, int c);
47 int mfwStrLen (MfwChar *s);
48 int mfwStrSiz (MfwStr *s);
49 MfwChar* mfwStrAt (MfwStr *s, int off);
50 MfwChar* mfwStrCut (MfwStr* s, int n);
51 MfwChar* mfwStrMov (MfwStr* d, int o, MfwChar* s);
52 MfwChar* mfwStrIns (MfwStr* d, int o, MfwChar* s);
53 MfwChar* mfwStrApp (MfwStr* s, MfwChar* c);
54 MfwChar* mfwStrRChr (MfwChar* p, int c);
55
56 #endif