Console Library 4.7.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::PartitionResult Struct Reference

字符串分区结果,包含左部分、分隔符、右部分。 More...

#include <strpp.h>

Public Attributes

std::string left
 分隔符前的子串
std::string middle
 分隔符本身
std::string right
 分隔符后的子串

Friends

std::ostream & operator<< (std::ostream &os, const PartitionResult &pr)
 输出分区结果到流,格式为 ("left", "middle", "right")。

Detailed Description

字符串分区结果,包含左部分、分隔符、右部分。

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const PartitionResult & pr )
friend

输出分区结果到流,格式为 ("left", "middle", "right")。

Parameters
os输出流。
pr分区结果对象。
Returns
std::ostream& 流引用。

Member Data Documentation

◆ left

std::string console::PartitionResult::left

分隔符前的子串

◆ middle

std::string console::PartitionResult::middle

分隔符本身

◆ right

std::string console::PartitionResult::right

分隔符后的子串


The documentation for this struct was generated from the following file: