liblives
2.4.1-svn
|
class "livesString". More...
#include <liblives.hpp>
Public Member Functions | |
livesString (const string &str="", lives_char_encoding_t e=LIVES_CHAR_ENCODING_DEFAULT) | |
livesString (const string &str, size_t pos, size_t len=npos, lives_char_encoding_t e=LIVES_CHAR_ENCODING_DEFAULT) | |
livesString (const char *s, lives_char_encoding_t e=LIVES_CHAR_ENCODING_DEFAULT) | |
livesString (const char *s, size_t n, lives_char_encoding_t e=LIVES_CHAR_ENCODING_DEFAULT) | |
livesString (size_t n, char c, lives_char_encoding_t e=LIVES_CHAR_ENCODING_DEFAULT) | |
template<class InputIterator > | |
livesString (InputIterator first, InputIterator last, lives_char_encoding_t e=LIVES_CHAR_ENCODING_DEFAULT) | |
livesString | toEncoding (lives_char_encoding_t enc) |
Change the character encoding of the string. More... | |
void | setEncoding (lives_char_encoding_t enc) |
Define the character encoding of the string. More... | |
lives_char_encoding_t | encoding () |
Return the encoding that the string was declared as. More... | |
class "livesString".
A subclass of std::string which automatically handles various character encodings.
lives_char_encoding_t lives::livesString::encoding | ( | ) |
Return the encoding that the string was declared as.
void lives::livesString::setEncoding | ( | lives_char_encoding_t | enc | ) |
Define the character encoding of the string.
enc | the character encoding the string is in. |
livesString lives::livesString::toEncoding | ( | lives_char_encoding_t | enc | ) |
Change the character encoding of the string.
enc | the character encoding to convert to. |