Definition at line 421 of file CPCharacterSet.j.
- (CPArray) componentsSeparatedByCharactersInSet: |
|
(CPCharacterSet) |
separator |
|
|
implementation |
Tokenizes the receiver string using the characters in a given set. For example, if the receiver is: "Baku baku to jest skład."
and the set is [CPCharacterSet whitespaceCharacterSet] the returned array would contain:
["Baku", "baku", "to", "jest", "", "skład."]
Adjacent occurrences of the separator characters produce empty strings in the result.
- Author
- Arkadiusz Młynarczyk arek@.nosp@m.tupu.nosp@m.x.com
- Parameters
-
A | character set containing the characters to use to split the receiver. Must not be nil. |
- Returns
- An CPArray object containing substrings from the receiver that have been divided by characters in separator.
Definition at line 435 of file CPCharacterSet.j.
The documentation for this category was generated from the following file: