NSString(ECStringUtils)


Abstract

Enhances NSString wrt. to some utility methods

Methods

-splitStringUsingDelimiter:
Splits the string into multiple parts. These parts are encountered by the given delimiter

splitStringUsingDelimiter:


Splits the string into multiple parts. These parts are encountered by the given delimiter

- (NSArray *) splitStringUsingDelimiter: (NSString *) delimiter;
Parameter Descriptions
delimiter
method result
array containing the substrings. Result may never equal nil
Discussion

if the string does not contain the delimiter then the whole original string will be returned as the first element of the array.

The order of the elements (substrings) of the array corresponds to the order in which the substrings occur.

Adds an empty string for each empty substring. A substring is empty, if the content between delimiters or between a delimiter an the beginning or ending of the string does not contain any character.

(Last Updated August 27, 2006)