An immutable sequence of characters/code units. More...
#include <IString.h>

Public Member Functions | |
| virtual int32 | length ()=0 |
| Returns the size of this string. More... | |
| virtual GString | trim ()=0 |
| Copies this string removing white space characters from the beginning and end of the string. More... | |
| virtual unichar | charAt (int32 index)=0 |
| Returns the character at the specified offset in this string. More... | |
| virtual int32 | indexOf (char seperator)=0 |
| Searches in this string for the first index of the specified character. More... | |
| virtual int32 | indexOf (char seperator, int32 start)=0 |
| Searches in this string for the first index of the specified character. More... | |
| virtual int32 | indexOf (const GString &str)=0 |
| Searches in this string for the index of the specified string. More... | |
| virtual int32 | indexOf (const char *str, int32 start)=0 |
| Searches in this string for the index of the specified string. More... | |
| virtual int32 | indexOf (const GString &str, int32 start)=0 |
| Searches in this string for the index of the specified string. More... | |
| virtual int32 | lastIndexOf (char seperator)=0 |
| Returns the last index of the code point c, or -1. More... | |
| virtual GString | append (const char *str)=0 |
| Appends the string to current string and returns new string. More... | |
| virtual GString | append (const GString &str)=0 |
| This method is provided for convenience. More... | |
| virtual bool | startsWith (const char *prefix)=0 |
| Compares the specified string to this string to determine if the specified string is a prefix. More... | |
| virtual bool | startsWith (const GString &prefix)=0 |
| Compares the specified string to this string to determine if the specified string is a prefix. More... | |
| virtual bool | endsWith (const char *suffix)=0 |
| Compares the specified string to this string to determine if the specified string is a suffix. More... | |
| virtual bool | endsWith (const GString &suffix)=0 |
| This method is provided for convenience. More... | |
| virtual GArray< GString >::ptr | split (const char *separator)=0 |
| Splits this string using the supplied str. More... | |
| virtual GArray< GString >::ptr | split (const GString &str)=0 |
| This method is provided for convenience. More... | |
| virtual GString | replace (const char *target, const char *replacement)=0 |
| Copies this string replacing occurrences of the specified target sequence with another sequence. More... | |
| virtual GString | replace (const GString &target, const GString &replacement)=0 |
| This method is provided for convenience. More... | |
| virtual GString | toLowerCase ()=0 |
| Converts this string to lower case, using the rules of the user's default locale. More... | |
| virtual bool | equals (const char *str)=0 |
| Compares the specified string to this string and returns true if they are equal. More... | |
| virtual bool | equals (const GString &str)=0 |
| This method is provided for convenience. More... | |
| virtual bool | equals (const GCommon &obj)=0 |
| This method is provided for convenience. More... | |
| virtual bool | equalsIgnoreCase (const char *str)=0 |
| Compares the specified string to this string ignoring the case of the characters and returns true if they are equal. More... | |
| virtual bool | equalsIgnoreCase (const GString &str)=0 |
| This method is provided for convenience. More... | |
| virtual int32 | compareTo (const GString &str)=0 |
| Compares the specified string to this string using the Unicode values of the characters. More... | |
| virtual const char * | getBytes ()=0 |
| Provides access to the array containing the characters of this string. More... | |
| virtual const char * | toCharArray ()=0 |
| This method is provided for convenience. More... | |
Public Member Functions inherited from Glympse::ICommon | |
| virtual int32 | retain ()=0 |
| Add a reference to our object in a COM-like way. | |
| virtual int32 | release ()=0 |
| Release a reference to our object in a COM-like way. | |
| virtual int32 | hold ()=0 |
| Add a reference to our object in a COM-like way. | |
| virtual int32 | unhold ()=0 |
| Release a reference to our object in a COM-like way. | |
| virtual int32 | hashCode ()=0 |
| Returns an integer hash code for this object. | |
| virtual GString | toString ()=0 |
| Returns a string containing a concise, human-readable description of this object. More... | |
| virtual void | attachObject (const GCommon &obj)=0 |
| Asociates arbitrary object with the instance. | |
| virtual GCommon | extractObject ()=0 |
| Extracts associated object or NULL if no association is established. | |
Additional Inherited Members | |
Protected Member Functions inherited from Glympse::ICommon | |
| virtual | ~ICommon () |
| Destructor is protected to deny explicit object deallocation. More... | |
An immutable sequence of characters/code units.
A string is represented by array of UTF-8 values.
|
pure virtual |
Appends the string to current string and returns new string.
| str | the string to append to current string. |
This method is provided for convenience.
See append(const char*) for more details.
|
pure virtual |
Returns the character at the specified offset in this string.
| index | the zero-based index in this string. |
|
pure virtual |
Compares the specified string to this string using the Unicode values of the characters.
Returns 0 if the strings contain the same characters in the same order. Returns a negative integer if the first non-equal character in this string has a Unicode value which is less than the Unicode value of the character at the same position in the specified string, or if this string is a prefix of the specified string. Returns a positive integer if the first non-equal character in this string has a Unicode value which is greater than the Unicode value of the character at the same position in the specified string, or if the specified string is a prefix of this string.
| str | the string to compare. |
|
pure virtual |
Compares the specified string to this string to determine if the specified string is a suffix.
| suffix | the suffix to look for. |
|
pure virtual |
This method is provided for convenience.
See endsWith(const char*) for more details.
|
pure virtual |
Compares the specified string to this string and returns true if they are equal.
| str | the string to compare. |
|
pure virtual |
This method is provided for convenience.
See equals(const char*) for more details.
|
pure virtual |
This method is provided for convenience.
See equals(const char*) for more details.
Implements Glympse::ICommon.
|
pure virtual |
Compares the specified string to this string ignoring the case of the characters and returns true if they are equal.
| str | the string to compare. |
|
pure virtual |
This method is provided for convenience.
See equalsIgnoreCase(const char*) for more details.
|
pure virtual |
Provides access to the array containing the characters of this string.
The array contains string representation in UTF-8 encoding.
You should never modify contents of the returned array.
|
pure virtual |
Searches in this string for the first index of the specified character.
The search for the character starts at the beginning and moves towards the end of this string.
| seperator | the character to find. |
|
pure virtual |
Searches in this string for the first index of the specified character.
The search for the character starts at the beginning and moves towards the end of this string.
| seperator | the character to find. |
| start | the starting offset. |
|
pure virtual |
Searches in this string for the index of the specified string.
The search for the string starts at the beginning and moves towards the end of this string.
| str | the string to find. |
|
pure virtual |
Searches in this string for the index of the specified string.
The search for the string starts at the specified offset and moves towards the end of this string.
| str | the string to find. |
| start | the starting offset. |
|
pure virtual |
Searches in this string for the index of the specified string.
The search for the string starts at the specified offset and moves towards the end of this string.
| str | the string to find. |
| start | the starting offset. |
|
pure virtual |
Returns the last index of the code point c, or -1.
The search for the character starts at the end and moves towards the beginning of this string.
| seperator | the character to find. |
|
pure virtual |
Returns the size of this string.
For strings having unicode characters, it returns a number of bytes occupied by a string representation in UTF-8 encoding.
|
pure virtual |
Copies this string replacing occurrences of the specified target sequence with another sequence.
The string is processed from the beginning to the end.
| target | the sequence to replace. |
| replacement | the replacement sequence. |
|
pure virtual |
This method is provided for convenience.
See replace(const char*, const char*) for more details.
Splits this string using the supplied str.
This method is provided for convenience.
See split(const char*) for more details.
|
pure virtual |
Compares the specified string to this string to determine if the specified string is a prefix.
| prefix | the prefix to look for. |
|
pure virtual |
Compares the specified string to this string to determine if the specified string is a prefix.
| prefix | the prefix to look for. |
|
pure virtual |
This method is provided for convenience.
See getBytes() for more details.
|
pure virtual |
Converts this string to lower case, using the rules of the user's default locale.
|
pure virtual |
Copies this string removing white space characters from the beginning and end of the string.
1.8.4