259 std::size_t
length(std::size_t n = 0)
const;
275 pt_regmatch_t* _match;
~InvalidRegex()
Destructor.
Definition Regex.h:55
InvalidRegex(const char *msg)
Construct with message.
Result of a regular expression match.
Definition Regex.h:226
std::size_t maxSize() const
Returns the max number of matches the implementation allows.
std::size_t position(std::size_t n=0) const
Returns the position of the nth match.
Pt::String str(std::size_t n=0) const
Returns the nth match.
std::size_t length(std::size_t n=0) const
Returns the size of the nth match.
bool empty() const
Returns true if no match.
RegexSMatch & operator=(const RegexSMatch &other)
Assignment operator.
RegexSMatch(const RegexSMatch &other)
Copy constructor.
Pt::String format(const Pt::String &str) const
Formats a string according to a format specifier.
RegexSMatch()
Default Constructor.
~RegexSMatch()
Destructor.
std::size_t size() const
Returns the number of matches.
bool match(const Pt::String &str, RegexSMatch &sm) const
Matches the regular experession to a string.
bool match(const Char *str) const
Returns true if string matches.
Regex(const Pt::String &ex)
Construct from regex string.
Regex & operator=(const Regex &other)
Assignment operator.
Regex(const Pt::Char *ex)
Construct from regex string.
bool match(const Char *str, RegexSMatch &sm) const
Matches the regular experession to a string.
Regex(const Regex &other)
Copy constructor.
bool match(const Pt::String &str) const
Returns true if string matches.
Regex()
Default Constructor.
Unicode capable basic_string.
Definition Api-String.h:67
Core module.
Definition Allocator.h:33
Unicode character type.
Definition String.h:67