Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/string/CString.h>
Public Member Functions | |
CString (void) | |
CString (const char *str) | |
CString (const CString &str) | |
CString & | operator= (const CString &str) |
int | length (void) const |
const char * | chars (void) const |
int | compare (const CString &str) const |
const char * | operator& (void) const |
bool | isEmpty (void) const |
operator bool (void) const | |
char | charAt (int index) const |
char | operator[] (int index) const |
CString | substring (int pos) const |
String | substring (int pos, int len) const |
String | concat (const CString str) const |
String | concat (const String &str) const |
int | indexOf (char chr) const |
int | indexOf (char chr, int pos) const |
int | lastIndexOf (char chr) const |
int | lastIndexOf (char chr, int pos) const |
bool | startsWith (const char *str) const |
bool | startsWith (const CString str) const |
bool | startsWith (const String &str) const |
bool | endsWith (const CString str) const |
bool | endsWith (const String &str) const |
operator const char * (void) const | |
Protected Attributes | |
const char * | buf |
Wrapper around C usual string.
elm::CString::CString | ( | void | ) |
Referenced by startsWith(), and substring().
elm::CString::CString | ( | const char * | str | ) |
elm::CString::CString | ( | const CString & | str | ) |
char elm::CString::charAt | ( | int | index | ) | const |
References buf.
Referenced by operator[]().
const char* elm::CString::chars | ( | void | ) | const |
References buf.
Referenced by elm::String::compare(), concat(), elm::String::concat(), elm::xom::String::copy(), endsWith(), elm::String::endsWith(), elm::serial2::XOMSerializer::flush(), elm::String::operator&(), elm::String::operator=(), elm::io::Output::print(), elm::checksum::MD5::put(), elm::serial::XOMUnserializer::readEnum(), startsWith(), elm::String::startsWith(), and elm::String::String().
int elm::CString::compare | ( | const CString & | str | ) | const |
References buf.
Referenced by elm::operator!=(), elm::operator<(), elm::operator<=(), elm::operator==(), elm::operator>(), and elm::operator>=().
References chars(), and length().
Referenced by elm::operator+().
References chars(), elm::String::chars(), length(), and elm::String::length().
bool elm::CString::endsWith | ( | const String & | str | ) | const |
References buf, elm::String::chars(), length(), and elm::String::length().
int elm::CString::indexOf | ( | char | chr, |
int | pos | ||
) | const |
References buf.
bool elm::CString::isEmpty | ( | void | ) | const |
References buf.
Referenced by operator bool().
int elm::CString::lastIndexOf | ( | char | chr | ) | const |
References lastIndexOf(), and length().
Referenced by elm::_unqualify(), lastIndexOf(), and elm::serial::XOMUnserializer::readEnum().
int elm::CString::lastIndexOf | ( | char | chr, |
int | pos | ||
) | const |
References buf.
int elm::CString::length | ( | void | ) | const |
References buf.
Referenced by elm::String::compare(), concat(), elm::String::concat(), endsWith(), elm::String::endsWith(), lastIndexOf(), elm::String::operator=(), elm::io::Output::print(), elm::checksum::MD5::put(), startsWith(), elm::String::startsWith(), elm::String::String(), elm::xom::Serializer::writeAttributeValue(), elm::xom::Serializer::writeEscaped(), and elm::xom::Serializer::writeRaw().
elm::CString::operator bool | ( | void | ) | const |
References isEmpty().
elm::CString::operator const char * | ( | void | ) | const |
References buf.
const char* elm::CString::operator& | ( | void | ) | const |
References buf.
char elm::CString::operator[] | ( | int | index | ) | const |
References charAt().
bool elm::CString::startsWith | ( | const char * | str | ) | const |
References CString().
bool elm::CString::startsWith | ( | const String & | str | ) | const |
References buf, elm::String::chars(), and elm::String::length().
CString elm::CString::substring | ( | int | pos | ) | const |
References buf, and CString().
Referenced by elm::_unqualify().
|
protected |
Referenced by charAt(), chars(), compare(), elm::xom::String::copy(), endsWith(), elm::xom::String::free(), indexOf(), isEmpty(), lastIndexOf(), length(), elm::xom::String::operator char_t *(), operator const char *(), operator&(), operator=(), elm::xom::String::operator=(), startsWith(), and substring().