ObjFW
|
00001 /* 00002 * Copyright (c) 2008, 2009, 2010, 2011 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 #include <stdio.h> 00018 #include <stdarg.h> 00019 00020 #import "OFString.h" 00021 00025 @interface OFMutableString: OFString 00031 - (void)setToCString: (const char*)str; 00032 00038 - (void)appendCString: (const char*)str; 00039 00046 - (void)appendCString: (const char*)str 00047 withLength: (size_t)len; 00048 00058 - (void)appendCStringWithoutUTF8Checking: (const char*)str; 00059 00070 - (void)appendCStringWithoutUTF8Checking: (const char*)str 00071 length: (size_t)len; 00072 00078 - (void)appendString: (OFString*)str; 00079 00086 - (void)appendFormat: (OFString*)fmt, ...; 00087 00095 - (void)appendFormat: (OFString*)fmt 00096 withArguments: (va_list)args; 00097 00103 - (void)prependString: (OFString*)str; 00104 00108 - (void)reverse; 00109 00113 - (void)upper; 00114 00118 - (void)lower; 00119 00126 - (void)insertString: (OFString*)str 00127 atIndex: (size_t)idx; 00128 00136 - (void)deleteCharactersFromIndex: (size_t)start 00137 toIndex: (size_t)end; 00138 00144 - (void)deleteCharactersInRange: (of_range_t)range; 00145 00154 - (void)replaceCharactersFromIndex: (size_t)start 00155 toIndex: (size_t)end 00156 withString: (OFString*)repl; 00157 00164 - (void)replaceCharactersInRange: (of_range_t)range 00165 withString: (OFString*)repl; 00166 00173 - (void)replaceOccurrencesOfString: (OFString*)str 00174 withString: (OFString*)repl; 00175 00179 - (void)deleteLeadingWhitespaces; 00180 00184 - (void)deleteTrailingWhitespaces; 00185 00189 - (void)deleteLeadingAndTrailingWhitespaces; 00190 @end