|
sipxportlib
Version 3.3
|
Parses name value pairs from multiple lines of text. More...
#include <UtlNameValueTokenizer.h>
Public Member Functions | |
| UtlNameValueTokenizer (const char *multiLineText, int textLength=-1) | |
| Constructor. More... | |
| virtual | ~UtlNameValueTokenizer () |
| Destructor. More... | |
| UtlBoolean | getNextPair (char separator, UtlString *name, UtlString *value) |
| UtlBoolean | isAtEnd () |
| int | getProcessedIndex () |
Static Public Member Functions | |
| static int | findNextLineTerminator (const char *text, int length, int *nextLineIndex) |
| Finds the index to the next line terminator. More... | |
| static UtlBoolean | getSubField (const char *textField, int subfieldIndex, const char *subfieldSeparator, UtlString *subfieldText, int *lastCharIndex=NULL) |
| static UtlBoolean | getSubField (const char *textField, int textFieldLength, int subfieldIndex, const char *subfieldSeparators, const char *&subfieldPtr, int &subFieldLength, int *lastCharIndex) |
Parses name value pairs from multiple lines of text.
| UtlNameValueTokenizer | ( | const char * | multiLineText, |
| int | textLength = -1 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
static |
Finds the index to the next line terminator.
| [in] | text | - The char array in which to search for the terminator. |
| [in] | length | - The length of the text array. |
| [in] | nextLineIndex | - The index to the beginning of the next line. This may be -1 if the end of the string is encountered. |
|
static |
|
static |
| UtlBoolean getNextPair | ( | char | separator, |
| UtlString * | name, | ||
| UtlString * | value | ||
| ) |
| UtlBoolean isAtEnd | ( | ) |
| int getProcessedIndex | ( | ) |
1.8.11