HCE project C++ developers source code library
1.1.1
HCE project developer library
Main Page
Namespaces
Classes
Files
File List
File Members
HCE project C++ developers source code library
HCE project C++ developer source code library
Namespaces
Classes
Files
File List
sources
algorithms
applicationFramework
src
exceptions
AdminClient.cpp
AdminClient.h
ApplicationDefine.hpp
ApplicationPattern.cpp
ApplicationPattern.h
AStorageHandler.cpp
AStorageHandler.h
AVLTree.h
BaseHandler.h
Config.cpp
Config.h
CRC.h
CRC16.cpp
CRC16.h
CRC32.cpp
CRC32.h
CRC64.cpp
CRC64.h
DBSession.cpp
DBSession.hpp
ExternConfigurationObject.hpp
ExternDataBaseSessionObject.hpp
FileWriter.cpp
FileWriter.h
Funcs.cpp
Funcs.h
HttpParser.cpp
HttpParser.h
LGrammar.cpp
LGrammar.h
Logger.cpp
Logger.hpp
LogHandler.h
makro.h
MultiMediaCounters.h
MysqlLite.cpp
MysqlLite.h
NameValueMass.cpp
NameValueMass.h
Person.h
ProcFileSystem.cpp
ProcFileSystem.h
ReaderWriterGuards.h
Restart.cpp
Restart.h
revision.h
ServerApplication.cpp
ServerApplication.hpp
Signals.cpp
Signals.h
StatusHandler.h
String.cpp
String.h
Thread.cpp
Thread.hpp
Timer.h
TResStatHandler.h
UpdateExtendedTypes.cpp
UpdateExtendedTypes.h
asmXMLParser
base64
coreDumpChecker
DRCE
exec
HCECSM
jsonObjExtractor
kvdb
messageStream
reduceAdditionCore
reduceCore
reduceDRCE
reduceHandler
reduceSphinx
refine
serializable
sphinx
types
xmlCleaner
main.cpp
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
String.h
Go to the documentation of this file.
1
#ifndef STRING_H
2
#define STRING_H
3
#include <stdlib.h>
4
#include <stdio.h>
5
#include <
string.h
>
6
#include <sys/types.h>
7
#include <ctype.h>
8
#include <List.h>
9
#include <iostream>
10
#include <stdarg.h>
11
#include <stdlib.h>
12
#include <limits.h>
13
#include <new>
14
class
String
15
{
16
public
:
17
String
();
18
String
(
const
char
*src);
19
String
(
const
char
*src,
unsigned
int
len);
20
String
(
const
String
& str);
21
~String
();
22
String
&
operator+=
(
String
& str);
23
String
operator+
(
String
& b);
24
void
fromInt
(
int
x);
25
void
fromInt64
(
long
long
x);
26
void
fromUInt
(
unsigned
int
x);
27
void
fromUInt64
(
unsigned
long
long
x);
28
String
&
operator=
(
const
char
*str);
29
String
&
operator=
(
String
);
30
bool
operator==
(
String
& str);
31
bool
operator!=
(
String
& str);
32
bool
operator>
(
String
& str);
33
bool
operator<
(
String
& str);
34
char
&
operator[]
(
unsigned
int
index
);
35
void
addSlashes
();
36
void
replace
(
const
char
*search,
const
char
*
replace
,
unsigned
int
limit = 0);
37
int
fastReplace
(
const
char
*search,
const
char
*replace,
unsigned
int
limit = 0);
38
int
strPos
(
const
char
*search,
unsigned
int
offset = 0);
39
int
fastStrPos
(
const
char
*search,
unsigned
int
offset = 0);
40
static
int
fastStrPos
(
const
unsigned
char
*haystack,
int
hLen,
const
unsigned
char
*needle,
int
nLen,
unsigned
int
offset = 0);
41
void
urlEncode
();
42
void
urlDecode
();
43
void
jsonEncode
();
44
unsigned
int
length
();
45
String
&
subStr
(
unsigned
int
pos,
unsigned
int
len);
46
const
char
*
c_str
();
47
String
**
split
(
const
char
*pattern);
48
void
implode
(
unsigned
int
count,
const
char
*glue, ...);
49
void
implode
(
const
char
*glue,
char
**str);
50
friend
std::ostream &
operator<<
(std::ostream & out,
String
& str);
51
bool
wildcmp
(
char
*wild);
52
bool
wildcmp
(
String
&pattern);
53
static
unsigned
int
jsonEncode
(
const
char
*src,
unsigned
int
len,
char
**dst);
54
private
:
55
char
*data;
56
unsigned
int
len;
57
int
fastStrPos
(
const
char
*data,
const
char
*search);
58
};
59
#endif
sources
applicationFramework
src
String.h
Generated on Mon Jan 13 2014 13:08:36 for HCE project C++ developers source code library by
1.8.1.2