libzypp 17.35.9
|
Iterate chars and ANSI SGR in a multi-byte character string. More...
#include <zypp-tui/utils/text.h>
Public Member Functions | |
MbsIterator (boost::string_ref text_r) | |
wchar_t & | operator* () |
Use with care; all WS are faked to either ' ' or ' '. | |
const wchar_t & | operator* () const |
const char * | pos () const |
size_t | size () const |
size_t | columns () const |
boost::string_ref | ref () const |
bool | atEnd () const |
bool | isNL () const |
bool | isWS () const |
bool | isCH () const |
bool | isSGR () const |
MbsIterator & | operator++ () |
Private Member Functions | |
unsigned | ansiSize (const char *pos_r) |
void | setToEnd () |
Private Attributes | |
boost::string_ref | _text |
const char * | _tpos |
size_t | _trest |
size_t | _tread |
size_t | _cols |
wchar_t | _wc |
mbstate_t | _mbstate |
Iterate chars and ANSI SGR in a multi-byte character string.
The iterator offers (pos, size) of the current wchar
within the original text_r. Also the number of columns the current wchar
occupies on the screen.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |