ObjFW
 All Classes Functions Variables
OFMutableString.h
1 /*
2  * Copyright (c) 2008, 2009, 2010, 2011, 2012
3  * Jonathan Schleifer <js@webkeks.org>
4  *
5  * All rights reserved.
6  *
7  * This file is part of ObjFW. It may be distributed under the terms of the
8  * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
9  * the packaging of this file.
10  *
11  * Alternatively, it may be distributed under the terms of the GNU General
12  * Public License, either version 2 or 3, which can be found in the file
13  * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
14  * file.
15  */
16 
17 #import "OFString.h"
18 
29 - (void)setCharacter: (of_unichar_t)character
30  atIndex: (size_t)index;
31 
37 - (void)appendUTF8String: (const char*)UTF8String;
38 
46 - (void)appendUTF8String: (const char*)UTF8String
47  length: (size_t)UTF8StringLength;
48 
55 - (void)appendCString: (const char*)cString
56  encoding: (of_string_encoding_t)encoding;
57 
66 - (void)appendCString: (const char*)cString
67  encoding: (of_string_encoding_t)encoding
68  length: (size_t)cStringLength;
69 
75 - (void)appendString: (OFString*)string;
76 
85 - (void)appendFormat: (OFConstantString*)format, ...;
86 
96 - (void)appendFormat: (OFConstantString*)format
97  arguments: (va_list)arguments;
98 
104 - (void)prependString: (OFString*)string;
105 
109 - (void)reverse;
110 
114 - (void)uppercase;
115 
119 - (void)lowercase;
120 
128 - (void)capitalize;
129 
136 - (void)insertString: (OFString*)string
137  atIndex: (size_t)index;
138 
144 - (void)deleteCharactersInRange: (of_range_t)range;
145 
152 - (void)replaceCharactersInRange: (of_range_t)range
153  withString: (OFString*)replacement;
154 
161 - (void)replaceOccurrencesOfString: (OFString*)string
162  withString: (OFString*)replacement;
163 
174 - (void)replaceOccurrencesOfString: (OFString*)string
175  withString: (OFString*)replacement
176  options: (int)options
177  range: (of_range_t)range;
178 
183 
188 
193 
197 - (void)makeImmutable;
198 @end