绑定字符流,会改变字符流数据(宽字符集)
更多...
|
| | BasicStringBufferW (WCHAR *source, int capacity) |
| | ~BasicStringBufferW () |
| void | clear () |
| | 清空字符串
|
| void | resize (unsigned len) |
| | 重置容量大小
|
| size_t | length () const |
| | 字符串长度
|
| const WCHAR * | c_str () const |
| | 源字符串
|
| void | join_path (const WCHAR *wstr) |
| | 在末尾追加字符串.同时自动处理路径分隔符(/,\).
|
| bool | is_empty () const |
| | 是否为空
|
| void | init (const char *str, int count=-1, unsigned int code_page=CP_UTF8) |
| | 多字符集字符串初始化
|
| void | init (const WCHAR *wstr, int count=-1) |
| void | append (const WCHAR *str, int len=-1) |
| | 尾部添加字符串
|
| void | append (WCHAR ch, int repeat=1) |
| | 尾部添加单个字符
|
| void | append_format (LPCWSTR format_str,...) |
| | 尾部添加格式化字符串
|
| void | append_v (LPCWSTR format_str, va_list arg_list) |
| void | update (int pos, WCHAR ch) |
| | 更新或设置指定索引位置(pos)的字符
|
| int | replace_char (WCHAR ch_old, WCHAR ch_now) |
| | 替换字符
|
| int | replace_string (const WCHAR *str_old, const WCHAR *str_now) |
| | 替换字符串
|
| 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 *format_str,...) |
| | 格式化打印.e.g: format("%f,%d",1.0, 60);
|
| void | format_v (const WCHAR *format_str, va_list args) |
| void | insert (int index, const WCHAR *str, int count=-1) |
| | 在指定索引位置(index)插入字符串
|
| void | erase (int index, int count=1) |
| | 删除字符
|
| void | remove_float_last_zero () |
| | 去除浮点数多余的0后缀
|
| void | remove_float_scientific_zero () |
| | 去除科学计数法多余的0后缀
|
| void | add_numeric_thousand_separator () |
| | 数字千分分隔符
|
| int | to_num (bool is_expr_recognition=true) const |
| | 转换成数字
|
| double | to_float (bool is_expr_recognition=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 | format_str, |
|
|
| ... ) |
◆ append_v()
| void BasicStringBufferW::append_v |
( |
LPCWSTR | format_str, |
|
|
va_list | arg_list ) |
◆ c_str()
| const WCHAR * BasicStringBufferW::c_str |
( |
| ) |
const |
◆ clear()
| void BasicStringBufferW::clear |
( |
| ) |
|
◆ erase()
| void BasicStringBufferW::erase |
( |
int | index, |
|
|
int | count = 1 ) |
◆ format()
| void BasicStringBufferW::format |
( |
const WCHAR * | format_str, |
|
|
| ... ) |
格式化打印.e.g: format("%f,%d",1.0, 60);
◆ format_ellipsis()
| void BasicStringBufferW::format_ellipsis |
( |
const WCHAR * | str, |
|
|
UINT | align ) |
◆ format_v()
| void BasicStringBufferW::format_v |
( |
const WCHAR * | format_str, |
|
|
va_list | args ) |
◆ init() [1/2]
| void BasicStringBufferW::init |
( |
const char * | str, |
|
|
int | count = -1, |
|
|
unsigned int | code_page = CP_UTF8 ) |
多字符集字符串初始化
- 参数
-
| str | :多字符集字符串 |
| count | : 长度 |
| code_page | : str输入字符集. |
◆ init() [2/2]
| void BasicStringBufferW::init |
( |
const WCHAR * | wstr, |
|
|
int | count = -1 ) |
◆ insert()
| void BasicStringBufferW::insert |
( |
int | index, |
|
|
const WCHAR * | str, |
|
|
int | count = -1 ) |
在指定索引位置(index)插入字符串
- 参数
-
| index | :索引位置 |
| str | : 字符串 |
| count | :插入长度 |
◆ 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 | ch_old, |
|
|
WCHAR | ch_now ) |
◆ replace_string()
| int BasicStringBufferW::replace_string |
( |
const WCHAR * | str_old, |
|
|
const WCHAR * | str_now ) |
◆ resize()
| void BasicStringBufferW::resize |
( |
unsigned | len | ) |
|
◆ reversal()
| void BasicStringBufferW::reversal |
( |
| ) |
|
◆ to_float()
| double BasicStringBufferW::to_float |
( |
bool | is_expr_recognition = true | ) |
const |
◆ to_num()
| int BasicStringBufferW::to_num |
( |
bool | is_expr_recognition = 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 ) |