![]() |
JPCRE2
10.32.01
C++ wrapper for PCRE2 library
|
Class to take a std::string modifier value with null safety. More...
#include <jpcre2.hpp>
Public Member Functions | |
Modifier () | |
Default constructor. More... | |
Modifier (std::string const &x) | |
Constructor that takes a std::string. More... | |
Modifier (char const *x) | |
Constructor that takes char const * (null safety is provided by this one) More... | |
std::string | str () const |
Returns the modifier string. More... | |
char const * | c_str () const |
Returns the c_str() of modifier string. More... | |
SIZE_T | length () const |
Returns the length of the modifier string. More... | |
char | operator[] (SIZE_T i) const |
operator[] overload to access character by index. More... | |
Class to take a std::string modifier value with null safety.
You don't need to make an instance of this class to pass modifier, just pass std::string or char const*, whatever seems feasible, implicit conversion will kick in and take care of things for you.
|
inline |
Default constructor.
|
inline |
Constructor that takes a std::string.
x | std::string as a reference. |
|
inline |
Constructor that takes char const * (null safety is provided by this one)
x | char const * |
|
inline |
Returns the c_str() of modifier string.
|
inline |
Returns the length of the modifier string.
|
inline |
operator[] overload to access character by index.
i | index |
|
inline |
Returns the modifier string.