Abstract working with UTF-32 encoded Unicode strings. More...
#include <unistring.h>
Public Member Functions | |
std::string | extract (const std::string::size_type begin=0, const std::string::size_type len=0) const |
std::string | extract_by_width (std::string::size_type begin, std::size_t len) const |
std::size_t | find (const boost::uint32_t __s, std::size_t __pos=0) const |
std::size_t | length () const |
boost::uint32_t & | operator[] (const std::size_t index) |
const boost::uint32_t & | operator[] (const std::size_t index) const |
unistring () | |
unistring (const std::string &input) | |
std::size_t | width () const |
~unistring () | |
Public Attributes | |
std::vector< boost::uint32_t > | utf32chars |
Static Public Attributes | |
static const std::size_t | npos = static_cast<std::size_t>(-1) |
Abstract working with UTF-32 encoded Unicode strings.
The input to the string is a UTF8 encoded ledger::string, which can then have its true length be taken, or characters extracted.
Definition at line 56 of file unistring.h.
|
inline |
Definition at line 63 of file unistring.h.
References TRACE_CTOR.
|
inline |
Definition at line 66 of file unistring.h.
References assert, ledger::downcast(), TRACE_CTOR, utf32chars, and VERIFY.
|
inline |
Definition at line 78 of file unistring.h.
References TRACE_DTOR.
|
inline |
Definition at line 94 of file unistring.h.
References assert, ledger::downcast(), length(), and utf32chars.
|
inline |
Definition at line 114 of file unistring.h.
References assert, ledger::downcast(), length(), ledger::mk_wcwidth(), utf32chars, and width().
|
inline |
Definition at line 162 of file unistring.h.
References ledger::downcast(), npos, and utf32chars.
|
inline |
Definition at line 82 of file unistring.h.
References utf32chars.
Referenced by extract(), and extract_by_width().
|
inline |
Definition at line 172 of file unistring.h.
References utf32chars.
Definition at line 175 of file unistring.h.
References utf32chars.
|
inline |
Definition at line 86 of file unistring.h.
References ledger::mk_wcwidth(), utf32chars, and width().
Referenced by extract_by_width(), and width().
|
static |
Definition at line 59 of file unistring.h.
Referenced by find().
std::vector<boost::uint32_t> ledger::unistring::utf32chars |
Definition at line 61 of file unistring.h.
Referenced by extract(), extract_by_width(), find(), length(), operator[](), operator[](), unistring(), and width().