OFMutableString Class Reference

#import <OFMutableString.h>

Inheritance diagram for OFMutableString:
OFString OFObject <OFCopying> <OFMutableCopying>

List of all members.

Public Member Functions

(id) - setToCString:
(id) - appendCString:
(id) - appendCString:withLength:
(id) - appendCStringWithoutUTF8Checking:
(id) - appendCStringWithoutUTF8Checking:length:
(id) - appendString:
(id) - appendWithFormat:
(id) - appendWithFormat:arguments:
(id) - reverse
(id) - upper
(id) - lower
(id) - removeCharactersFromIndex:toIndex:
(id) - replaceOccurrencesOfString:withString:
(id) - removeLeadingWhitespaces
(id) - removeTrailingWhitespaces
(id) - removeLeadingAndTrailingWhitespaces

Detailed Description

A class for storing and modifying strings.


Member Function Documentation

- (id) appendCString: (const char*)  str  

Appends a UTF-8 encoded C string to the OFString.

Parameters:
str A UTF-8 encoded C string to append
- (id) appendCString: (const char*)  str
withLength: (size_t)  len 

Appends a UTF-8 encoded C string with the specified length to the OFString.

Parameters:
str A UTF-8 encoded C string to append
len The length of the UTF-8 encoded C string
- (id) appendCStringWithoutUTF8Checking: (const char*)  str  

Appends a UTF-8 encoded C string to the OFString without checking whether it is valid UTF-8.

Only use this if you are 100% sure the string you append is either ASCII or UTF-8!

Parameters:
str A UTF-8 encoded C string to append
- (id) appendCStringWithoutUTF8Checking: (const char*)  str
length: (size_t)  len 

Appends a UTF-8 encoded C string with the specified length to the OFString without checking whether it is valid UTF-8.

Only use this if you are 100% sure the string you append is either ASCII or UTF-8!

Parameters:
str A UTF-8 encoded C string to append
len The length of the UTF-8 encoded C string
- (id) appendString: (OFString*)  str  

Appends another OFString to the OFString.

Parameters:
str An OFString to append
- (id) appendWithFormat: (OFString*)  fmt
,   ... 

Appends a formatted UTF-8 encoded C string to the OFString. See printf for the format syntax.

Parameters:
fmt A format string which generates the string to append
- (id) appendWithFormat: (OFString*)  fmt
arguments: (va_list)  args 

Appends a formatted UTF-8 encoded C string to the OFString. See printf for the format syntax.

Parameters:
fmt A format string which generates the string to append
args The arguments used in the format string
- (id) lower  

Lower the OFString.

- (id) removeCharactersFromIndex: (size_t)  start
toIndex: (size_t)  end 

Removes the characters at the specified range.

Parameters:
start The index where the deletion should be started
end The index until which the characters should be deleted. This points BEHIND the last character!
- (id) removeLeadingAndTrailingWhitespaces  

Removes all whitespaces at the beginning and the end of a string.

- (id) removeLeadingWhitespaces  

Removes all whitespaces at the beginning of a string.

- (id) removeTrailingWhitespaces  

Removes all whitespaces at the end of a string.

- (id) replaceOccurrencesOfString: (OFString*)  str
withString: (OFString*)  repl 

Replaces all occurrences of a string with another string.

Parameters:
str The string to replace
repl The string with which it should be replaced
- (id) reverse  

Reverse the OFString.

- (id) setToCString: (const char*)  str  

Sets the OFString to the specified UTF-8 encoded C string.

Parameters:
str A UTF-8 encoded C string to set the OFString to.
- (id) upper  

Upper the OFString.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on Mon Feb 1 19:19:40 2010 for ObjFW by  doxygen 1.6.1