uHTTP for C++
uHTTP::String Class Reference

#include <StringUtil.h>

Public Member Functions

 String ()
 
 String (const std::string &value)
 
 String (const std::string &value, int offset, int count)
 
 String (std::string &value)
 
 ~String ()
 
String operator= (String value)
 
String operator= (const std::string &value)
 
String operator= (const char *value)
 
String operator+ (String value)
 
String operator+ (const std::string &value)
 
String operator+ (const char *value)
 
void setValue (const std::string &value)
 
void setValue (const std::string &value, int offset, int count)
 
void append (const std::string &value)
 
void append (const char c)
 
const char * getValue ()
 
void clear ()
 
int length ()
 
char charAt (int index)
 
int indexOf (const std::string &value)
 
const char * toUppderCase ()
 
const char * toLowerCase ()
 
const char * trim ()
 
int compareTo (const std::string &anotherString)
 
int compareToIgnoreCase (const std::string &anotherString)
 
bool equals (const std::string &anotherString)
 
bool equalsIgnoreCase (const std::string &anotherString)
 
void concat (const std::string &str)
 
void copyValueOf (const std::string &data)
 
void copyValueOf (const char *data, int offset, int count)
 
int regionMatches (int toffset, const std::string &other, int ooffset, int len)
 
int regionMatchesIgnoreCase (int toffset, const std::string &other, int ooffset, int len)
 
bool startsWith (const std::string &prefix)
 
bool startsWith (String &str)
 
bool endsWith (const std::string &suffix)
 
bool endsWith (String &str)
 
const char * substring (int idx, int len, String &buf)
 

Static Public Attributes

static const int INT_STRING_MAXSIZE
 
static const int LONG_STRING_MAXSIZE
 
static const int LONGLONG_STRING_MAXSIZE
 

Private Attributes

std::string mValue
 

Friends

std::ostream & operator<< (std::ostream &s, String &value)
 
std::ostream & operator<< (std::ostream &s, String *value)
 

Constructor & Destructor Documentation

◆ String() [1/4]

uHTTP::String::String ( )

◆ String() [2/4]

uHTTP::String::String ( const std::string & value)

◆ String() [3/4]

uHTTP::String::String ( const std::string & value,
int offset,
int count )

◆ String() [4/4]

uHTTP::String::String ( std::string & value)

◆ ~String()

uHTTP::String::~String ( )

Member Function Documentation

◆ append() [1/2]

void uHTTP::String::append ( const char c)

◆ append() [2/2]

void uHTTP::String::append ( const std::string & value)

◆ charAt()

char uHTTP::String::charAt ( int index)

◆ clear()

void uHTTP::String::clear ( )

◆ compareTo()

int uHTTP::String::compareTo ( const std::string & anotherString)

◆ compareToIgnoreCase()

int uHTTP::String::compareToIgnoreCase ( const std::string & anotherString)

◆ concat()

void uHTTP::String::concat ( const std::string & str)

◆ copyValueOf() [1/2]

void uHTTP::String::copyValueOf ( const char * data,
int offset,
int count )

◆ copyValueOf() [2/2]

void uHTTP::String::copyValueOf ( const std::string & data)

◆ endsWith() [1/2]

bool uHTTP::String::endsWith ( const std::string & suffix)

◆ endsWith() [2/2]

bool uHTTP::String::endsWith ( String & str)
inline

◆ equals()

bool uHTTP::String::equals ( const std::string & anotherString)
inline

◆ equalsIgnoreCase()

bool uHTTP::String::equalsIgnoreCase ( const std::string & anotherString)
inline

◆ getValue()

const char * uHTTP::String::getValue ( )

◆ indexOf()

int uHTTP::String::indexOf ( const std::string & value)

◆ length()

int uHTTP::String::length ( )

◆ operator+() [1/3]

String uHTTP::String::operator+ ( const char * value)

◆ operator+() [2/3]

String uHTTP::String::operator+ ( const std::string & value)

◆ operator+() [3/3]

String uHTTP::String::operator+ ( String value)

◆ operator=() [1/3]

String uHTTP::String::operator= ( const char * value)

◆ operator=() [2/3]

String uHTTP::String::operator= ( const std::string & value)

◆ operator=() [3/3]

String uHTTP::String::operator= ( String value)

◆ regionMatches()

int uHTTP::String::regionMatches ( int toffset,
const std::string & other,
int ooffset,
int len )

◆ regionMatchesIgnoreCase()

int uHTTP::String::regionMatchesIgnoreCase ( int toffset,
const std::string & other,
int ooffset,
int len )

◆ setValue() [1/2]

void uHTTP::String::setValue ( const std::string & value)

◆ setValue() [2/2]

void uHTTP::String::setValue ( const std::string & value,
int offset,
int count )

◆ startsWith() [1/2]

bool uHTTP::String::startsWith ( const std::string & prefix)

◆ startsWith() [2/2]

bool uHTTP::String::startsWith ( String & str)
inline

◆ substring()

const char * uHTTP::String::substring ( int idx,
int len,
String & buf )

◆ toLowerCase()

const char * uHTTP::String::toLowerCase ( )

◆ toUppderCase()

const char * uHTTP::String::toUppderCase ( )

◆ trim()

const char * uHTTP::String::trim ( )

Friends And Related Symbol Documentation

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream & s,
String & value )
friend

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream & s,
String * value )
friend

Field Documentation

◆ INT_STRING_MAXSIZE

const int uHTTP::String::INT_STRING_MAXSIZE
static

◆ LONG_STRING_MAXSIZE

const int uHTTP::String::LONG_STRING_MAXSIZE
static

◆ LONGLONG_STRING_MAXSIZE

const int uHTTP::String::LONGLONG_STRING_MAXSIZE
static

◆ mValue

std::string uHTTP::String::mValue
private

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