exceptions are the substring and strip methods (strip is just a particular case of substring). To preserve the original String when calling mutator methods just duplicate the String before calling the method, for instance: myString.dup.toLower(). Method naming is close to the functions on the phobos string module
Public Member Functions | |
this () | |
Creates a new empty String. | |
this (CHAR[] str) | |
Creates a new String that contains the array passed. | |
this (String string) body | |
Copy constructor. | |
this (void *str) | |
Creates a String from a pointer to memory. | |
this (char *str, int length) | |
Create a String from a pointer to chars. | |
this (char c) | |
Creates a String from the char. | |
this (int i) | |
creates a String that is the representation of the int passed. | |
this (uint ui) | |
creates a String that is the representation of the uint passed | |
this (long l) | |
creates a String that is the representation of the long passed | |
this (double d) | |
creates a String that is the representation of the double passed | |
this (bit b) | |
Creates a string that is "0" or "1". | |
Static Public Member Functions | |
this () | |
Creates the static variables. |
|
Creates a string that is "0" or "1". This is to keep compatilility - WILL CHANGE(?) - to "false" or "true"? |
|
creates a String that is the representation of the double passed
|
|
creates a String that is the representation of the long passed
|
|
creates a String that is the representation of the uint passed
|
|
creates a String that is the representation of the int passed.
|
|
Creates a String from the char. The String will a the lengh of 1
|
|
Create a String from a pointer to chars.
|
|
Creates a String from a pointer to memory. The string length will be the length from the pointer until the next null char;
|
|
Copy constructor. The String to copy is duplicated.
|
|
Creates a new String that contains the array passed. The array is duplicated. To make a string point to an existing array create an string string and them set it with the point() method.
|
|
Creates a new empty String.
|
|
Creates the static variables.
|