RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | Static Public Member Functions
Datacratic::Utf8String Class Reference

List of all members.

Public Types

typedef utf8::iterator
< std::string::const_iterator > 
const_iterator
typedef utf8::iterator
< std::string::iterator > 
iterator

Public Member Functions

 Utf8String ()
 Utf8String (Utf8String &&str) noexcept
 Utf8String (const Utf8String &str)
 Utf8String (const std::string &in, bool check=true)
 Utf8String (std::string &&in, bool check=true)
Utf8Stringoperator= (Utf8String &&str) noexcept
Utf8Stringoperator= (const Utf8String &str)
Utf8Stringoperator= (const std::string &str)
Utf8Stringoperator= (std::string &&str)
void swap (Utf8String &other)
bool empty () const
const_iterator begin () const
const_iterator end () const
Utf8Stringoperator+= (const std::string &str)
Utf8Stringoperator+= (const Utf8String &utf8str)
const std::string & rawString () const
const char * rawData () const
size_t rawLength () const
void serialize (ML::DB::Store_Writer &store) const
void reconstitute (ML::DB::Store_Reader &store)
std::string extractAscii ()
bool operator== (const Utf8String &other) const
bool operator!= (const Utf8String &other) const
bool operator< (const Utf8String &other) const

Static Public Member Functions

static Utf8String fromLatin1 (const std::string &lat1Str)

Detailed Description

Definition at line 27 of file string.h.


Constructor & Destructor Documentation

Allow default construction of an empty string.

Definition at line 33 of file string.h.

Move constructor.

Definition at line 38 of file string.h.

Copy constructor.

Definition at line 44 of file string.h.

Datacratic::Utf8String::Utf8String ( const std::string &  in,
bool  check = true 
) [explicit]

Take possession of a utf8-encoded string.

Parameters:
inputA string that contains utf8-encoded characters
checkIf true we will make sure that the string contains valid utf-8 characters and will throw an exception if invalid characters are found

Definition at line 42 of file string.cc.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator