绑定字符流,会改变字符流数据(宽字符集)
更多...
|
| BasicStringBufferW (WCHAR *source, int capacity) |
|
| ~BasicStringBufferW () |
|
size_t | length () const |
|
const WCHAR * | c_str () const |
|
void | append (const WCHAR *str, int len=-1) |
|
void | append (WCHAR ch, int repeat=1) |
|
void | append_format (LPCWSTR lpszFormat,...) |
|
void | append_v (LPCWSTR lpszFormat, va_list argList) |
|
void | update (int pos, WCHAR ch) |
|
int | replace_char (WCHAR chOld, WCHAR chNew) |
|
int | replace_string (const WCHAR *chOld, const WCHAR *chNew) |
|
void | reversal () |
| 倒转字符串
|
|
void | trim () |
| 剔除字符串头尾空白符(空格、换行、tab)
|
|
void | trim_left () |
| 剔除字符串前缀空白符(空格、换行、tab)
|
|
void | trim_right () |
| 剔除字符串末尾空白符(空格、换行、tab)
|
|
void | trim_all () |
| 剔除字符串任意位置空白符(空格、换行、tab)
|
|
void | format_ellipsis (const WCHAR *str, UINT align) |
| 长度超出范围时显示省略号
|
|
void | format (const WCHAR *lpszFormat,...) |
|
void | format_v (const WCHAR *lpszFormat, va_list args) |
|
void | insert (int nIndex, const WCHAR *str, int count=-1) |
|
void | erase (int nIndex, int nCount=1) |
|
void | remove_float_last_zero () |
|
void | remove_float_scientific_zero () |
|
void | add_numeric_thousand_separator () |
| 数字千分分隔符
|
|
void | clear () |
|
void | resize (unsigned len) |
|
void | init (const char *str, int count=-1, unsigned int CodePage=CP_UTF8) |
|
void | init (const WCHAR *wstr, int count=-1) |
|
void | join_path (const WCHAR *wstr) |
|
bool | is_empty () const |
| 是否为空
|
|
int | toInt (bool ExprRecognition=true) const |
| 转换成数字
|
|
double | tofloat (bool ExprRecognition=true) const |
| 转换 浮点型
|
|
◆ BasicStringBufferW()
BasicStringBufferW::BasicStringBufferW |
( |
WCHAR * |
source, |
|
|
int |
capacity |
|
) |
| |
◆ ~BasicStringBufferW()
BasicStringBufferW::~BasicStringBufferW |
( |
| ) |
|
◆ add_numeric_thousand_separator()
void BasicStringBufferW::add_numeric_thousand_separator |
( |
| ) |
|
◆ append() [1/2]
void BasicStringBufferW::append |
( |
const WCHAR * |
str, |
|
|
int |
len = -1 |
|
) |
| |
◆ append() [2/2]
void BasicStringBufferW::append |
( |
WCHAR |
ch, |
|
|
int |
repeat = 1 |
|
) |
| |
◆ append_format()
void BasicStringBufferW::append_format |
( |
LPCWSTR |
lpszFormat, |
|
|
|
... |
|
) |
| |
◆ append_v()
void BasicStringBufferW::append_v |
( |
LPCWSTR |
lpszFormat, |
|
|
va_list |
argList |
|
) |
| |
◆ c_str()
const WCHAR * BasicStringBufferW::c_str |
( |
| ) |
const |
◆ clear()
void BasicStringBufferW::clear |
( |
| ) |
|
◆ erase()
void BasicStringBufferW::erase |
( |
int |
nIndex, |
|
|
int |
nCount = 1 |
|
) |
| |
◆ format()
void BasicStringBufferW::format |
( |
const WCHAR * |
lpszFormat, |
|
|
|
... |
|
) |
| |
◆ format_ellipsis()
void BasicStringBufferW::format_ellipsis |
( |
const WCHAR * |
str, |
|
|
UINT |
align |
|
) |
| |
◆ format_v()
void BasicStringBufferW::format_v |
( |
const WCHAR * |
lpszFormat, |
|
|
va_list |
args |
|
) |
| |
◆ init() [1/2]
void BasicStringBufferW::init |
( |
const char * |
str, |
|
|
int |
count = -1 , |
|
|
unsigned int |
CodePage = CP_UTF8 |
|
) |
| |
◆ init() [2/2]
void BasicStringBufferW::init |
( |
const WCHAR * |
wstr, |
|
|
int |
count = -1 |
|
) |
| |
◆ insert()
void BasicStringBufferW::insert |
( |
int |
nIndex, |
|
|
const WCHAR * |
str, |
|
|
int |
count = -1 |
|
) |
| |
◆ is_empty()
bool BasicStringBufferW::is_empty |
( |
| ) |
const |
◆ join_path()
void BasicStringBufferW::join_path |
( |
const WCHAR * |
wstr | ) |
|
◆ length()
size_t BasicStringBufferW::length |
( |
| ) |
const |
◆ remove_float_last_zero()
void BasicStringBufferW::remove_float_last_zero |
( |
| ) |
|
◆ remove_float_scientific_zero()
void BasicStringBufferW::remove_float_scientific_zero |
( |
| ) |
|
◆ replace_char()
int BasicStringBufferW::replace_char |
( |
WCHAR |
chOld, |
|
|
WCHAR |
chNew |
|
) |
| |
◆ replace_string()
int BasicStringBufferW::replace_string |
( |
const WCHAR * |
chOld, |
|
|
const WCHAR * |
chNew |
|
) |
| |
◆ resize()
void BasicStringBufferW::resize |
( |
unsigned |
len | ) |
|
◆ reversal()
void BasicStringBufferW::reversal |
( |
| ) |
|
◆ tofloat()
double BasicStringBufferW::tofloat |
( |
bool |
ExprRecognition = true | ) |
const |
◆ toInt()
int BasicStringBufferW::toInt |
( |
bool |
ExprRecognition = true | ) |
const |
◆ trim()
void BasicStringBufferW::trim |
( |
| ) |
|
◆ trim_all()
void BasicStringBufferW::trim_all |
( |
| ) |
|
◆ trim_left()
void BasicStringBufferW::trim_left |
( |
| ) |
|
◆ trim_right()
void BasicStringBufferW::trim_right |
( |
| ) |
|
◆ update()
void BasicStringBufferW::update |
( |
int |
pos, |
|
|
WCHAR |
ch |
|
) |
| |