C++ Builder 参考手册 ➙ System::Sysutils ➙ TrimRight
返回把字符串后面空白字符去掉的字符串
头文件:#include <System.SysUtils.hpp>
命名空间:System::Sysutils
函数原型:
System::UnicodeString __fastcall TrimRight(const System::UnicodeString S);
参数:
- S:字符串;
返回值:
- 返回把字符串 S 后面空白字符去掉的字符串,空白字符即编码值在 0x01 到 0x20 之间的字符,包括空格、回车、换行、制表符等控制符,字符串前面和中间的空白字符不处理。例如 TrimRight(L" ab cd ") 返回 L" ab cd"
相关:
- System::Sysutils::Trim
- System::Sysutils::TrimLeft
- System::Sysutils::TrimRight
- System::Sysutils
- System::UnicodeString::Trim
- System::UnicodeString::TrimLeft
- System::UnicodeString::TrimRight
- System::AnsiStringBase::Trim
- System::AnsiStringBase::TrimLeft
- System::AnsiStringBase::TrimRight
- System::AnsiStringT::Trim
- System::AnsiStringT::TrimLeft
- System::AnsiStringT::TrimRight
- System
C++ Builder 参考手册 ➙ System::Sysutils ➙ TrimRight