rllib
1
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
lib
rlstring.h
Go to the documentation of this file.
1
/***************************************************************************
2
rlstring.h - description
3
-------------------
4
begin : Wed Jan 02 2008
5
copyright : (C) Lehrig Software Enigineering
6
email : lehrig@t-online.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This library is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13
* published by the Free Software Foundation *
14
* *
15
***************************************************************************/
16
#ifndef _RL_STRING_H_
17
#define _RL_STRING_H_
18
19
#include <string.h>
20
#include "
rldefine.h
"
21
25
class
rlString
26
{
27
public
:
31
rlString
(
const
char
*
text
=
""
);
32
rlString
(
rlString
&
text
);
33
rlString
(
rlString
*text);
34
38
virtual
~rlString
();
39
40
rlString
&
operator=
(
const
char
*s2);
41
rlString
&
operator=
(
rlString
&s2);
42
43
rlString
&
operator+
(
const
char
*s2);
44
rlString
&
operator+
(
rlString
&s2);
45
46
rlString
&
operator+=
(
const
char
*s2);
47
rlString
&
operator+=
(
rlString
&s2);
48
49
int
operator==
(
const
char
*s2);
50
int
operator==
(
rlString
&s2);
51
52
int
operator!=
(
const
char
*s2);
53
int
operator!=
(
rlString
&s2);
54
58
char
*
text
();
59
63
int
setText
(
const
char
*text);
64
68
int
printf
(
const
char
*format, ...);
69
73
int
strcpy
(
const
char
*text);
74
78
int
cat
(
const
char
*text);
79
83
int
upper
();
84
88
int
lower
();
89
93
int
startsWith
(
const
char
*startstr);
94
98
int
strnocasecmp
(
const
char
*other);
99
103
int
strnnocasecmp
(
const
char
*other,
int
n);
104
108
char
*
strstr
(
const
char
*substring);
109
113
char
*
strchr
(
int
c);
114
118
char
*
strrchr
(
int
c);
119
124
int
removeQuotas
(
char
c=
'"'
);
125
126
private
:
127
char
*
txt
;
128
};
129
130
#endif
Generated by
1.8.2