This class stores information about matching region. More...
#include <cel_string.h>
Public Member Functions | |
virtual size_t | getCount () const =0 |
virtual size_t | getPos (size_t n=0) const =0 |
virtual size_t | getEndPos (size_t n=0) const =0 |
virtual size_t | getLength (size_t n=0) const =0 |
virtual const UChar1 * | getPtr (size_t n=0) const =0 |
virtual const UChar1 * | getEndPtr (size_t n=0) const =0 |
virtual const UChar1 * | getBufferPtr () const =0 |
virtual const UChar1 * | getBufferEndPtr () const =0 |
virtual const UChar1 * | getRangePtr () const =0 |
virtual const UChar1 * | getRangeEndPtr () const =0 |
virtual void | lockString (const String &inString)=0 |
Public Member Functions inherited from Celartem::Referable | |
Referable () | |
void | addRef () const |
void | releaseRef () const |
size_t | getReferenceCount () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
This class stores information about matching region.
Usually, 0th elements are the target range and the other elements are the parts that matches to the sets in the regular expression pattern. This class is used by RegEx class.
|
pure virtual |
This method returns the pointer to the end of the input string.
|
pure virtual |
This method returns the pointer to the input string.
|
pure virtual |
This method obtains the number of elements.
|
pure virtual |
This method returns the end position of the matching string as string index. If the element is "cde"
in the "abcdefg"
, this method returns 5.
n | An element index. |
|
pure virtual |
This method returns the pointer to the end of matching portion. If the element is "cde"
in the "abcdefg"
, this method returns the pointer to "fg"
.
n | An element index. |
|
pure virtual |
This method returns the length of the matching string. If the element is "cde"
in the "abcdefg"
, this method returns 3.
n | An element index. |
|
pure virtual |
This method returns the beginning position of the matching string as string index. If the element is "cde"
in the "abcdefg"
, this method returns 2.
n | An element index. |
|
pure virtual |
This method returns the pointer to the matching portion. If the element is "cde"
in the "abcdefg"
, this method returns the pointer to "cdefg"
.
n | An element index. |
|
pure virtual |
This method return the pointer to the end of the search range in the input string.
|
pure virtual |
This method return the pointer to the beginning of the search range in the input string.
|
pure virtual |
NOTE: This function is for internal use only.
This function is used to lock the referred string and ensure that the pointers used in this instance is valid for the lifetime of the instance.
inString | A String instance to be locked. |