CStrUtils Class Reference

Utility methods for NSString data. More...

#import <cstrutils.h>

List of all members.

Static Public Member Functions

(BOOL) + isBlankString:
 Check the string contains only spaces or not.
(NSMutableArray *) + separate:byCharacter:withEscape:
 Separate string by character.
(void) + replaceString:target:by:doRecursive:
 Replace target string by given substring.


Detailed Description

Utility methods for NSString data.

Description
Utility methods for NSString data.


Member Function Documentation

+ (BOOL) isBlankString: (NSString *)  src  
 

Check the string contains only spaces or not.

Returns:
True when the source string contains spaces only.
Parameters:
src Source string. If this is nil, the method returns True.
Description
Check the string contains only spaces or not.

+ (void) replaceString: (NSMutableString *)  dst
target: (NSString *)  targ
by: (NSString *)  substr
doRecursive: (BOOL)  dorec
 
 

Replace target string by given substring.

Parameters:
dst Destination mutable string.
targ Substring to be replaced.
substr Substring to replace.
dorec Replace all strings or not.
Description
Replace target string by given substring.

+ (NSMutableArray *) separate: (NSString *)  src
byCharacter: (unichar_t)  c
withEscape: (BOOL)  doesc
 
 

Separate string by character.

Parameters:
src Source string.
c Separator character.
doesc If this is true, the separator character follows back slash is not recognized as separator.
Description
Separate string by character. If doesc flag is true, the separator character follows back slash is not recognized as separator.


The documentation for this class was generated from the following files:
Generated on Mon Mar 20 18:48:15 2006 for Coconut by  doxygen 1.4.6