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

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.

Arkadiusz Młynarczyk [email protected][email protected]tupu[email protected]x.com
Acharacter set containing the characters to use to split the receiver. Must not be nil.
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

Extends class CPString.

Definition at line 462 of file CPCharacterSet.j.

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