![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/xom/String.h>
Public Member Functions | |
String (void) | |
String (const char *str) | |
String (const char_t *str) | |
String (const CString &str) | |
String (const String &str) | |
void | copy (void) |
void | free (void) |
void | escape (io::OutStream &out) const |
void | escape (io::Output &out) const |
elm::string | escape (void) const |
String & | operator= (const String &str) |
operator char_t * (void) const | |
![]() | |
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 |
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 char *str) const |
bool | endsWith (const CString str) const |
bool | endsWith (const String &str) const |
operator const char * (void) const | |
Additional Inherited Members | |
![]() | |
const char * | buf |
String class used in XOM XML extension.
|
inline |
Copy the string (ensuring independence from the initialization string).
References CString::buf, and CString::chars().
|
inline |
References String::escape().
Referenced by String::escape().
void escape | ( | io::OutStream & | out | ) | const |
The string is output and XML special characters are escaped (mainly <, > and &).
out | Stream to output to. |
References CString::buf, and elm::io::p().
|
inline |
References CString::buf, and String::escape().
Referenced by String::escape().
Free the string contained in this object. Usually only used if a call to copy() has been performed.
References CString::buf.
Referenced by XOMUnserializer::onEnum(), XOMUnserializer::onValue(), Serializer::writeEndTag(), and Serializer::writeStartTag().
References CString::buf.
References CString::buf, and elm::str().