Public Types | Public Member Functions | List of all members
SubStrings Class Reference

Sub-ranges of a string with a structure similar to std::match_results, but without the underlying regular expression matching. More...

Public Types

using value_type = typename std::sub_match< typename StringType::const_iterator >
 
using string_iterator = typename StringType::const_iterator
 

Public Member Functions

 SubStrings ()=default
 
std::string::size_type length () const
 
void append (const typename StringType::const_iterator &b, const typename StringType::const_iterator &e)
 
auto first () const -> decltype(this->front())
 
auto last () const -> decltype(this->back())
 
StringType str (size_t pos) const
 

Detailed Description

Sub-ranges of a string with a structure similar to std::match_results, but without the underlying regular expression matching.

Definition at line 57 of file CStringList.H.

Member Typedef Documentation

◆ value_type

using value_type = typename std::sub_match<typename StringType::const_iterator>

Definition at line 55 of file SubStrings.H.

◆ string_iterator

using string_iterator = typename StringType::const_iterator

Definition at line 59 of file SubStrings.H.

Constructor & Destructor Documentation

◆ SubStrings()

SubStrings ( )
default

Member Function Documentation

◆ length()

std::string::size_type length ( ) const
inline

Definition at line 72 of file SubStrings.H.

◆ append()

void append ( const typename StringType::const_iterator &  b,
const typename StringType::const_iterator &  e 
)
inline

Definition at line 86 of file SubStrings.H.

References Foam::constant::physicoChemical::b, Foam::constant::electromagnetic::e, and range.

Referenced by Foam::stringOps::split(), Foam::stringOps::splitAny(), and Foam::stringOps::splitFixed().

Here is the caller graph for this function:

◆ first()

auto first ( ) const -> decltype(this->front())
inline

Definition at line 101 of file SubStrings.H.

◆ last()

auto last ( ) const -> decltype(this->back())
inline

Definition at line 108 of file SubStrings.H.

◆ str()

StringType str ( size_t  pos) const
inline

Definition at line 114 of file SubStrings.H.

References Foam::pos().

Referenced by STARCDsurfaceFormatCore::readInpCellTable().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: