#include <Pt/Regex.h>
Result of a regular expression match.
Public Member Functions | |
| RegexSMatch () | |
| Default Constructor. | |
| RegexSMatch (const RegexSMatch &other) | |
| Copy constructor. | |
| ~RegexSMatch () | |
| Destructor. | |
| bool | empty () const |
| Returns true if no match. | |
| Pt::String | format (const Pt::String &str) const |
| Formats a string according to a format specifier. More... | |
| std::size_t | length (std::size_t n=0) const |
| Returns the size of the nth match. | |
| std::size_t | maxSize () const |
| Returns the max number of matches the implementation allows. | |
| RegexSMatch & | operator= (const RegexSMatch &other) |
| Assignment operator. | |
| std::size_t | position (std::size_t n=0) const |
| Returns the position of the nth match. | |
| std::size_t | size () const |
| Returns the number of matches. | |
| Pt::String | str (std::size_t n=0) const |
| Returns the nth match. | |
| Pt::String format | ( | const Pt::String & | str | ) | const |
Each occurance of $N in the format specifying string str is replaced with the N-th element of the match.