ObjFW
src/OFMutableString.h
00001 /*
00002  * Copyright (c) 2008, 2009, 2010, 2011, 2012
00003  *   Jonathan Schleifer <js@webkeks.org>
00004  *
00005  * All rights reserved.
00006  *
00007  * This file is part of ObjFW. It may be distributed under the terms of the
00008  * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
00009  * the packaging of this file.
00010  *
00011  * Alternatively, it may be distributed under the terms of the GNU General
00012  * Public License, either version 2 or 3, which can be found in the file
00013  * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
00014  * file.
00015  */
00016 
00017 #import "OFString.h"
00018 
00022 @interface OFMutableString: OFString
00029 - (void)setCharacter: (of_unichar_t)character
00030              atIndex: (size_t)index;
00031 
00037 - (void)appendUTF8String: (const char*)UTF8String;
00038 
00046 - (void)appendUTF8String: (const char*)UTF8String
00047               withLength: (size_t)UTF8StringLength;
00048 
00055 - (void)appendCString: (const char*)cString
00056          withEncoding: (of_string_encoding_t)encoding;
00057 
00066 - (void)appendCString: (const char*)cString
00067          withEncoding: (of_string_encoding_t)encoding
00068                length: (size_t)cStringLength;
00069 
00075 - (void)appendString: (OFString*)string;
00076 
00085 - (void)appendFormat: (OFConstantString*)format, ...;
00086 
00096 - (void)appendFormat: (OFConstantString*)format
00097        withArguments: (va_list)arguments;
00098 
00104 - (void)prependString: (OFString*)string;
00105 
00109 - (void)reverse;
00110 
00114 - (void)upper;
00115 
00119 - (void)lower;
00120 
00127 - (void)insertString: (OFString*)string
00128              atIndex: (size_t)index;
00129 
00135 - (void)deleteCharactersInRange: (of_range_t)range;
00136 
00143 - (void)replaceCharactersInRange: (of_range_t)range
00144                       withString: (OFString*)replacement;
00145 
00152 - (void)replaceOccurrencesOfString: (OFString*)string
00153                         withString: (OFString*)replacement;
00154 
00163 - (void)replaceOccurrencesOfString: (OFString*)string
00164                         withString: (OFString*)replacement
00165                            inRange: (of_range_t)range;
00166 
00170 - (void)deleteLeadingWhitespaces;
00171 
00175 - (void)deleteTrailingWhitespaces;
00176 
00180 - (void)deleteEnclosingWhitespaces;
00181 
00185 - (void)makeImmutable;
00186 @end
 All Classes Functions Variables Properties