CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BasicStringBufferA类 参考

绑定字符流,会改变字符流数据(多字符集) 更多...

+ 类 BasicStringBufferA 继承关系图:

Public 成员函数

 BasicStringBufferA (char *source, int capacity)
 
 ~BasicStringBufferA ()
 
size_t length () const
 字符串长度
 
const char * c_str () const
 源字符串
 
void append (const char *str, int len=-1)
 尾部添加字符串
 
void append (char ch, int repeat=1)
 尾部添加单个字符
 
void append_format (LPCSTR lpszFormat,...)
 
void append_v (LPCSTR lpszFormat, va_list argList)
 
void update (int pos, char ch)
 更新值
 
int replace_char (char chOld, char chNew)
 替换字符
 
int replace_string (const char *chOld, const char *chNew)
 替换字符串
 
void reversal ()
 倒转字符串
 
void trim ()
 剔除字符串头尾空白符(空格、换行、tab)
 
void trim_left ()
 剔除字符串前缀空白符(空格、换行、tab)
 
void trim_right ()
 剔除字符串末尾空白符(空格、换行、tab)
 
void trim_all ()
 剔除字符串任意位置空白符(空格、换行、tab)
 
void format_ellipsis (const char *str, UINT align)
 长度超出范围时显示省略号
 
void format (const char *lpszFormat,...)
 格式化打印
 
void format_v (const char *lpszFormat, va_list args)
 
void insert (int nIndex, const char *str, int count=-1)
 插入字符串
 
void erase (int nIndex, int nCount=1)
 删除字符
 
void remove_float_last_zero ()
 去除浮点数多余的0后缀
 
void remove_float_scientific_zero ()
 去除科学计数法多余的0后缀
 
void add_numeric_thousand_separator ()
 数字千分分隔符
 
void clear ()
 清空字符串
 
void resize (unsigned len)
 
void init (const char *str, int count=-1)
 
void init (const WCHAR *wstr, int count=-1, unsigned int CodePage=CP_UTF8)
 
void join_path (const char *str)
 
bool is_empty () const
 是否为空
 
int toInt (bool ExprRecognition=true) const
 转换成数字
 
double tofloat (bool ExprRecognition=true) const
 转换 浮点型
 

详细描述

绑定字符流,会改变字符流数据(多字符集)

构造及析构函数说明

◆ BasicStringBufferA()

BasicStringBufferA::BasicStringBufferA ( char *  source,
int  capacity 
)
参数
source源字符
capacity源字符容量

◆ ~BasicStringBufferA()

BasicStringBufferA::~BasicStringBufferA ( )

成员函数说明

◆ add_numeric_thousand_separator()

void BasicStringBufferA::add_numeric_thousand_separator ( )

数字千分分隔符

◆ append() [1/2]

void BasicStringBufferA::append ( char  ch,
int  repeat = 1 
)

尾部添加单个字符

◆ append() [2/2]

void BasicStringBufferA::append ( const char *  str,
int  len = -1 
)

尾部添加字符串

◆ append_format()

void BasicStringBufferA::append_format ( LPCSTR  lpszFormat,
  ... 
)

◆ append_v()

void BasicStringBufferA::append_v ( LPCSTR  lpszFormat,
va_list  argList 
)

◆ c_str()

const char * BasicStringBufferA::c_str ( ) const

源字符串

◆ clear()

void BasicStringBufferA::clear ( )

清空字符串

◆ erase()

void BasicStringBufferA::erase ( int  nIndex,
int  nCount = 1 
)

删除字符

◆ format()

void BasicStringBufferA::format ( const char *  lpszFormat,
  ... 
)

格式化打印

◆ format_ellipsis()

void BasicStringBufferA::format_ellipsis ( const char *  str,
UINT  align 
)

长度超出范围时显示省略号

◆ format_v()

void BasicStringBufferA::format_v ( const char *  lpszFormat,
va_list  args 
)

◆ init() [1/2]

void BasicStringBufferA::init ( const char *  str,
int  count = -1 
)

◆ init() [2/2]

void BasicStringBufferA::init ( const WCHAR wstr,
int  count = -1,
unsigned int  CodePage = CP_UTF8 
)

◆ insert()

void BasicStringBufferA::insert ( int  nIndex,
const char *  str,
int  count = -1 
)

插入字符串

◆ is_empty()

bool BasicStringBufferA::is_empty ( ) const

是否为空

◆ join_path()

void BasicStringBufferA::join_path ( const char *  str)

◆ length()

size_t BasicStringBufferA::length ( ) const

字符串长度

◆ remove_float_last_zero()

void BasicStringBufferA::remove_float_last_zero ( )

去除浮点数多余的0后缀

◆ remove_float_scientific_zero()

void BasicStringBufferA::remove_float_scientific_zero ( )

去除科学计数法多余的0后缀

◆ replace_char()

int BasicStringBufferA::replace_char ( char  chOld,
char  chNew 
)

替换字符

◆ replace_string()

int BasicStringBufferA::replace_string ( const char *  chOld,
const char *  chNew 
)

替换字符串

◆ resize()

void BasicStringBufferA::resize ( unsigned  len)

◆ reversal()

void BasicStringBufferA::reversal ( )

倒转字符串

◆ tofloat()

double BasicStringBufferA::tofloat ( bool  ExprRecognition = true) const

转换 浮点型

◆ toInt()

int BasicStringBufferA::toInt ( bool  ExprRecognition = true) const

转换成数字

◆ trim()

void BasicStringBufferA::trim ( )

剔除字符串头尾空白符(空格、换行、tab)

◆ trim_all()

void BasicStringBufferA::trim_all ( )

剔除字符串任意位置空白符(空格、换行、tab)

◆ trim_left()

void BasicStringBufferA::trim_left ( )

剔除字符串前缀空白符(空格、换行、tab)

◆ trim_right()

void BasicStringBufferA::trim_right ( )

剔除字符串末尾空白符(空格、换行、tab)

◆ update()

void BasicStringBufferA::update ( int  pos,
char  ch 
)

更新值

鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有