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
71
72
73
74
75
76
77
78
79
|
/*@@
@file SString_Namespace.h
@date 02.04.2004
@author Steve White
@desc Module for generic operations on strings
@enddesc
@version $Header$
@@*/
#ifndef _SSTRING_NAMESPACE_H
#define _SSTRING_NAMESPACE_H
#include "SString.h"
/* A poor man's namespace for the String module */
#define Set( a, b ) \
StringSet( a, b )
#define SetSubString( a, b, p, l ) \
StringSetSubString( a, b, p, l )
#define SetToCString( a, b ) \
StringSetToCString( a, b )
#define SetToPartAfter( a, b, p ) \
StringSetToPartAfter( a, b, p )
#define InsertCString( a, b, c ) \
StringInsertCString( a, b, c )
#define ConcatCString( a, b ) \
StringConcatCString( a, b )
#define CompareCString( a, b ) \
StringCompareCString( a, b )
#define SetToBuffer( a, b, l ) \
StringSetToBuffer( a, b, l )
#define GetBuffer( a ) \
StringGetBuffer( a )
#define Length( p ) \
StringLength( p )
#define NthChar( s, n ) \
StringNthChar( s, n )
#define SetNthChar( s, n, c ) \
StringSetNthChar( s, n, c )
#define Truncate( s, n ) \
StringTruncate( s, n )
#define TrimLeading( s, n ) \
StringTrimLeading( s, n )
#define FindStringFrom( s, c, p ) \
StringFindStringFrom( s, c, p )
#define FindCharFrom( s, c, p ) \
StringFindCharFrom( s, c, p )
#define SetNextToken( s, c, p, r ) \
StringSetNextToken( s, c, p, r )
#define Compare( a, b ) \
StringCompare( a, b )
#define Equals( a, b ) \
StringEquals( a, b )
#define Insert( a, b, p ) \
StringInsert( a, b, p )
#define InsertChar( a, b, p ) \
StringInsertChar( a, b, p )
#define Concat( a, b ) \
StringConcat( a, b )
#define Print( a ) \
StringPrint( a )
#define FormatPrint( a, s ) \
StringFormatPrint( a, s )
#define ConcatDecimal( a, s ) \
StringConcatDecimal( a, s )
#define ConcatHex( a, s ) \
StringConcatHex( a, s )
#define ConcatOctal( a, s ) \
StringConcatOctal( a, s )
#define ConcatDouble( a, s ) \
StringConcatDouble( a, s )
#define ConcatFormattedDecimal( a, d, s1, s2, f ) \
StringConcatFormattedDecimal( a, d, s1, s2, f )
#define ConcatFormattedUnsigned( a, d, s1, s2, f ) \
StringConcatFormattedUnsigned( a, d, s1, s2, f )
#define ConcatFormattedDouble( a, d, s1, s2, f ) \
StringConcatFormattedDouble( a, d, s1, s2, f )
#endif
|