YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
函数 | |
template<class _tString > | |
_tString & | ystdex::ltrim (_tString &&str, typename string_traits< _tString >::const_pointer t=&to_array< typename string_traits< _tString >::value_type >("\n\r\t\v ")[0]) |
删除字符串中指定的连续前缀字符。 | |
template<class _tString > | |
_tString & | ystdex::rtrim (_tString &&str, typename string_traits< _tString >::const_pointer t=&to_array< typename string_traits< _tString >::value_type >("\n\r\t\v ")[0]) |
删除字符串中指定的连续后缀字符。 | |
template<class _tString > | |
_tString & | ystdex::trim (_tString &&str, typename string_traits< _tString >::const_pointer t=&to_array< typename string_traits< _tString >::value_type >("\n\r\t\v ")[0]) |
删除字符串中指定的连续前缀与后缀字符。 | |
template<typename _fPred , typename _fInsert , typename _tIn > | |
_tIn | ystdex::split (_tIn b, _tIn e, _fPred is_delim, _fInsert insert) |
以指定字符分割字符序列。 | |
template<typename _fPred , typename _fInsert , typename _tRange > | |
void | ystdex::split (_tRange &&c, _fPred is_delim, _fInsert insert) |
以指定字符分割范围指定的字符串。 | |
template<typename _tString > | |
_tString | ystdex::get_mid (const _tString &str, typename _tString::size_type l=1) |
取删除前缀和后缀的子字符串。 | |
template<typename _tString > | |
_tString | ystdex::get_mid (const _tString &str, typename _tString::size_type l, typename _tString::size_type r) |
|
inline |
取删除前缀和后缀的子字符串。
在文件 string.hpp 第 111 行定义.
参考 yassume.
参考自 Deliteralize().
|
inline |
在文件 string.hpp 第 119 行定义.
参考 yassume.
|
inline |
删除字符串中指定的连续前缀字符。
在文件 string.hpp 第 70 行定义.
参考自 ShlReader::LoadBookmarks() , 以及 ystdex::trim().
|
inline |
_tIn ystdex::split | ( | _tIn | b, |
_tIn | e, | ||
_fPred | is_delim, | ||
_fInsert | insert | ||
) |
以指定字符分割字符序列。
在文件 string.hpp 第 135 行定义.
参考自 Decompose(),ShlReader::LoadBookmarks() , 以及 ystdex::split().
|
inline |
以指定字符分割范围指定的字符串。
在文件 string.hpp 第 159 行定义.
参考 YSLib::begin(),YSLib::end() , 以及 ystdex::split().
|
inline |
删除字符串中指定的连续前缀与后缀字符。
在文件 string.hpp 第 96 行定义.
参考 ystdex::ltrim() , 以及 ystdex::rtrim().
参考自 Decompose().