HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
String Class Reference

#include <String.h>

Public Member Functions

 String ()
 String (const char *src)
 String (const char *src, unsigned int len)
 String (const String &str)
 ~String ()
Stringoperator+= (String &str)
String operator+ (String &b)
void fromInt (int x)
void fromInt64 (long long x)
void fromUInt (unsigned int x)
void fromUInt64 (unsigned long long x)
Stringoperator= (const char *str)
Stringoperator= (String)
bool operator== (String &str)
bool operator!= (String &str)
bool operator> (String &str)
bool operator< (String &str)
char & operator[] (unsigned int index)
void addSlashes ()
void replace (const char *search, const char *replace, unsigned int limit=0)
int fastReplace (const char *search, const char *replace, unsigned int limit=0)
int strPos (const char *search, unsigned int offset=0)
int fastStrPos (const char *search, unsigned int offset=0)
void urlEncode ()
void urlDecode ()
void jsonEncode ()
unsigned int length ()
StringsubStr (unsigned int pos, unsigned int len)
const char * c_str ()
String ** split (const char *pattern)
void implode (unsigned int count, const char *glue,...)
void implode (const char *glue, char **str)
bool wildcmp (char *wild)
bool wildcmp (String &pattern)

Static Public Member Functions

static int fastStrPos (const unsigned char *haystack, int hLen, const unsigned char *needle, int nLen, unsigned int offset=0)
static unsigned int jsonEncode (const char *src, unsigned int len, char **dst)

Friends

std::ostream & operator<< (std::ostream &out, String &str)

Detailed Description

Definition at line 14 of file String.h.

Constructor & Destructor Documentation

String::String ( )

Definition at line 2 of file String.cpp.

Here is the caller graph for this function:

String::String ( const char *  src)

Definition at line 13 of file String.cpp.

String::String ( const char *  src,
unsigned int  len 
)

Definition at line 26 of file String.cpp.

String::String ( const String str)

Definition at line 39 of file String.cpp.

String::~String ( )

Definition at line 51 of file String.cpp.

Member Function Documentation

void String::addSlashes ( )

Definition at line 120 of file String.cpp.

const char * String::c_str ( )

Definition at line 429 of file String.cpp.

Here is the caller graph for this function:

int String::fastReplace ( const char *  search,
const char *  replace,
unsigned int  limit = 0 
)

Definition at line 185 of file String.cpp.

Here is the call graph for this function:

int String::fastStrPos ( const char *  search,
unsigned int  offset = 0 
)

Definition at line 228 of file String.cpp.

Here is the caller graph for this function:

int String::fastStrPos ( const unsigned char *  haystack,
int  hLen,
const unsigned char *  needle,
int  nLen,
unsigned int  offset = 0 
)
static

Definition at line 264 of file String.cpp.

void String::fromInt ( int  x)

Definition at line 469 of file String.cpp.

void String::fromInt64 ( long long  x)

Definition at line 507 of file String.cpp.

Here is the caller graph for this function:

void String::fromUInt ( unsigned int  x)

Definition at line 545 of file String.cpp.

void String::fromUInt64 ( unsigned long long  x)

Definition at line 576 of file String.cpp.

void String::implode ( unsigned int  count,
const char *  glue,
  ... 
)

Definition at line 614 of file String.cpp.

void String::implode ( const char *  glue,
char **  str 
)

Definition at line 667 of file String.cpp.

void String::jsonEncode ( )

Definition at line 872 of file String.cpp.

unsigned int String::jsonEncode ( const char *  src,
unsigned int  len,
char **  dst 
)
static

Definition at line 763 of file String.cpp.

unsigned int String::length ( )

Definition at line 393 of file String.cpp.

Here is the caller graph for this function:

bool String::operator!= ( String str)

Definition at line 100 of file String.cpp.

String String::operator+ ( String b)

Definition at line 80 of file String.cpp.

String & String::operator+= ( String str)

Definition at line 56 of file String.cpp.

bool String::operator< ( String str)

Definition at line 110 of file String.cpp.

String & String::operator= ( const char *  str)

Definition at line 87 of file String.cpp.

String & String::operator= ( String  s)

Definition at line 70 of file String.cpp.

bool String::operator== ( String str)

Definition at line 95 of file String.cpp.

bool String::operator> ( String str)

Definition at line 105 of file String.cpp.

char & String::operator[] ( unsigned int  index)

Definition at line 115 of file String.cpp.

void String::replace ( const char *  search,
const char *  replace,
unsigned int  limit = 0 
)

Definition at line 153 of file String.cpp.

String ** String::split ( const char *  pattern)

Definition at line 434 of file String.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int String::strPos ( const char *  search,
unsigned int  offset = 0 
)

Definition at line 218 of file String.cpp.

String & String::subStr ( unsigned int  pos,
unsigned int  len 
)

Definition at line 398 of file String.cpp.

Here is the call graph for this function:

void String::urlDecode ( )

Definition at line 364 of file String.cpp.

Here is the caller graph for this function:

void String::urlEncode ( )

Definition at line 328 of file String.cpp.

Here is the caller graph for this function:

bool String::wildcmp ( char *  wild)

Definition at line 715 of file String.cpp.

Here is the caller graph for this function:

bool String::wildcmp ( String pattern)

Definition at line 758 of file String.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
String str 
)
friend

Definition at line 608 of file String.cpp.


The documentation for this class was generated from the following files: