|
Console Library 8.0.0
A header-only library that makes C++ simple
|
字符串分区结果,包含左部分、分隔符、右部分。 More...
#include <strpp.h>
Public Types | |
| using | string_type = std::basic_string<CharT, Traits, Allocator> |
Public Attributes | |
| string_type | left |
| 分隔符前的子串 | |
| string_type | middle |
| 分隔符本身 | |
| string_type | right |
| 分隔符后的子串 | |
Friends | |
| std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &os, const BasicPartitionResult &pr) |
| 输出分区结果到流,格式为 ("left", "middle", "right")。 | |
字符串分区结果,包含左部分、分隔符、右部分。
| CharT | 字符类型。 |
| Traits | 字符特征类型。 |
| Allocator | 内存分配器类型。 |
| using console::BasicPartitionResult< CharT, Traits, Allocator >::string_type = std::basic_string<CharT, Traits, Allocator> |
|
friend |
输出分区结果到流,格式为 ("left", "middle", "right")。
| os | 输出流。 |
| pr | 分区结果对象。 |
| string_type console::BasicPartitionResult< CharT, Traits, Allocator >::left |
分隔符前的子串
| string_type console::BasicPartitionResult< CharT, Traits, Allocator >::middle |
分隔符本身
| string_type console::BasicPartitionResult< CharT, Traits, Allocator >::right |
分隔符后的子串