35 #ifndef Foam_SubStrings_H 36 #define Foam_SubStrings_H 51 template<
class StringType>
54 public std::vector<std::sub_match<typename StringType::const_iterator>>
62 typename std::sub_match<typename StringType::const_iterator>;
66 typename StringType::const_iterator;
83 for (
const auto& elem : *
this)
92 StringType
str(
size_t pos)
const 94 return (*
this)[
pos].str();
100 const typename StringType::const_iterator&
b,
101 const typename StringType::const_iterator&
e 107 range.matched =
true;
109 this->push_back(
range);
114 auto first() const -> decltype(this->front())
116 return this->front();
121 auto last() const -> decltype(this->back())
typename std::sub_match< typename StringType::const_iterator > value_type
The element type.
auto first() const -> decltype(this->front())
Const reference to the first element, for consistency with other OpenFOAM containers.
std::string::size_type length() const
The total string length of all sub-elements.
dimensionedScalar pos(const dimensionedScalar &ds)
const dimensionedScalar e
Elementary charge.
StringType str(size_t pos) const
Retrieve element at pos, converted to a string type.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
graph_traits< Graph >::vertices_size_type size_type
auto last() const -> decltype(this->back())
Const reference to the last element, for consistency with other OpenFOAM containers.
void append(const typename StringType::const_iterator &b, const typename StringType::const_iterator &e)
Append sub-string defined by begin/end iterators.
typename StringType::const_iterator string_iterator
The const_iterator for the underlying string type.
SubStrings()=default
Default construct.