liblives  2.4.1-svn
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
lives::livesString Class Reference

class "livesString". More...

#include <liblives.hpp>

Inheritance diagram for lives::livesString:

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...
 

Detailed Description

class "livesString".

A subclass of std::string which automatically handles various character encodings.

Member Function Documentation

lives_char_encoding_t lives::livesString::encoding ( )

Return the encoding that the string was declared as.

Returns
the character encoding the string is in.
void lives::livesString::setEncoding ( lives_char_encoding_t  enc)

Define the character encoding of the string.

Parameters
encthe character encoding the string is in.
livesString lives::livesString::toEncoding ( lives_char_encoding_t  enc)

Change the character encoding of the string.

Parameters
encthe character encoding to convert to.
Returns
either the same string if no conversion is needed, or a new string if conversion is needed

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