class InetProtTextUtils |
Comments :
Public Member Enumerations | |
---|---|
enum | TRemoveMode { ERemoveLeft = 0, ERemoveRight, ERemoveBoth } |
IMPORT_C TInt | ConvertDescriptorToHex | ( | const TDesC8 & | aData, |
TInt & | aHex | |||
) | [static] |
Descriptor to hex convertor. Searches the descriptor buffer for a hex number representation at the start of the buffer. The hex number is deemed to have ended when the first non-hex character is found. The numeric value of the hex number is returned along with the number characters consumed in obtaining the number. The amount of leading whitespace is included in the number of characters consumed.
IMPORT_C TInt | ConvertDescriptorToHex | ( | const TDesC16 & | aData, |
TInt & | aHex | |||
) | [static] |
Descriptor to hex convertor. Searches the descriptor buffer for a hex number representation at the start of the buffer. The hex number is deemed to have ended when the first non-hex character is found. The numeric value of the hex number is returned along with the number characters consumed in obtaining the number. The amount of leading whitespace is included in the number of characters consumed.
IMPORT_C TInt | ConvertDescriptorToInt | ( | const TDesC8 & | aData, |
TInt & | aInt | |||
) | [static] |
Converts the character representation of an integer into its numeric value. Preceeding whitespace is ignored and the integer is delimited by either the end of the data, whitespace or any other character other than 0 to 9.
IMPORT_C TInt | ConvertDescriptorToInt | ( | const TDesC16 & | aData, |
TInt & | aInt | |||
) | [static] |
Converts the character representation of an integer into its numeric value. Preceeding whitespace is ignored and the integer is delimited by either the end of the data, whitespace or any other character other than 0 to 9.
IMPORT_C void | ConvertHexToDescriptorL | ( | TInt | aHex, |
HBufC8 *& | aBuffer | |||
) | [static] |
Converts an integer to its hex representation.
IMPORT_C void | ConvertHexToDescriptorL | ( | TInt | aHex, |
HBufC16 *& | aBuffer | |||
) | [static] |
Converts an integer to its hex representation.
IMPORT_C void | ConvertIntToDescriptorL | ( | TInt | aInt, |
HBufC8 *& | aBuffer | |||
) | [static] |
Converts an integer value into its decimal character representation.
IMPORT_C void | ConvertIntToDescriptorL | ( | TInt | aInt, |
HBufC16 *& | aBuffer | |||
) | [static] |
Converts an integer value into its decimal character representation.
IMPORT_C TInt | ExtractIntegerValueL | ( | TPtrC8 & | aBuffer, |
TInt & | aIntVal, | |||
TBool | aAllowNonWsTerminator | |||
) | [static] |
Extract an integer value from the head of the supplied buffer.
IMPORT_C TInt | ExtractNextTokenFromList | ( | TPtrC8 & | aBuffer, |
TPtrC8 & | aToken, | |||
TChar | aSeparator | |||
) | [static] |
Extract a token from the head of the supplied buffer, which is assumed to be a token-list. The tokens are separated by the specified character. Any white space surrounding the token is stripped out. The number of characters consumed from the buffer are returned. The buffer is updated to not include the extracted token including the separator.
IMPORT_C TInt | ExtractNextTokenFromList | ( | TPtrC16 & | aBuffer, |
TPtrC16 & | aToken, | |||
TChar | aSeparator | |||
) | [static] |
Extract a token from the head of the supplied buffer, which is assumed to be a token-list. The tokens are separated by the specified character. Any white space surrounding the token is stripped out. The number of characters consumed from the buffer are returned. The buffer is updated to not include the extracted token including the separator.
IMPORT_C TInt | ExtractNextTokenFromList | ( | TPtrC8 & | aBuffer, |
TPtrC8 & | aToken, | |||
const TDesC8 & | aSeparators | |||
) | [static] |
Extract a token from the head of the supplied buffer, which is assumed to be a token-list. The tokens are separated by one of the specified characters. Any white space surrounding the token is stripped out. The number of characters consumed from the buffer are returned. The buffer is updated to not include the extracted token including the separator.
IMPORT_C TInt | ExtractNextTokenFromList | ( | TPtrC16 & | aBuffer, |
TPtrC16 & | aToken, | |||
const TDesC16 & | aSeparators | |||
) | [static] |
Extract a token from the head of the supplied buffer, which is assumed to be a token-list. The tokens are separated by one of the specified characters. Any white space surrounding the token is stripped out. The number of characters consumed from the buffer are returned. The buffer is updated to not include the extracted token including the separator.
IMPORT_C TInt | ExtractQuotedStringL | ( | TPtrC8 & | aBuffer, |
TPtrC8 & | aQuotedString | |||
) | [static] |
Extract a quoted string value from the head of the supplied buffer. Anything outside the quotes is discarded and the quotes themselves are not included in the returned string.
IMPORT_C TInt | ExtractQuotedStringL | ( | TPtrC16 & | aBuffer, |
TPtrC16 & | aQuotedString | |||
) | [static] |
Extract a quoted string value from the head of the supplied buffer. Anything outside the quotes is discarded and the quotes themselves are not included in the returned string.
IMPORT_C TInt | RemoveWhiteSpace | ( | TPtrC8 & | aData, |
TRemoveMode | aMode | |||
) | [static] |
Removes any contiguous whitespace at the extremes of the data, as specified by aMode. Whitespace is defined by the functions TChar::IsSpace() - white space includes spaces, tabs, and separators (e.g. new line).
TPtrC8 & aData | A descriptor pointer with the data. |
TRemoveMode aMode | The specified removal mode. |
IMPORT_C TInt | RemoveWhiteSpace | ( | TPtrC16 & | aData, |
TRemoveMode | aMode | |||
) | [static] |
Removes any contiguous whitespace at the extremes of the data, as specified by aMode. Whitespace is defined by the functions TChar::IsSpace() - white space includes spaces, tabs, and separators (e.g. new line).
TPtrC16 & aData | A descriptor pointer with the data. |
TRemoveMode aMode | The specified removal mode. |
enum TRemoveMode Enum defining whitespace removal modes.
ERemoveLeft = 0 |
Specifies removal any contiguous whitespace characters at the beginning of some data. |
ERemoveRight |
Specifies removal any contiguous whitespace characters at the end of some data. |
ERemoveBoth |
Specifies removal any contiguous whitespace characters at the beginning and end of some data. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.