API  0.9.10
CPString(CPCharacterSetAdditions) Category Reference

Instance Methods

(CPArray) - componentsSeparatedByCharactersInSet:
 
(id) - stringByTrimmingCharactersInSet:
 

Detailed Description

Definition at line 421 of file CPCharacterSet.j.

Method Documentation

◆ componentsSeparatedByCharactersInSet:()

- (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 [email protected][email protected]tupu[email protected]x.com
Parameters
Acharacter 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.

Extends class CPString.

Definition at line 435 of file CPCharacterSet.j.

◆ stringByTrimmingCharactersInSet:()

- (id) stringByTrimmingCharactersInSet: (CPCharacterSet set
implementation

Extends class CPString.

Definition at line 462 of file CPCharacterSet.j.


The documentation for this category was generated from the following file: