5 // Created by Wincent Colaiuta on 07 June 2005.
7 // Copyright 2005-2007 Wincent Colaiuta.
8 // This program is free software: you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation, either version 3 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #import <Foundation/Foundation.h>
24 /*! This function is an alternative to NSLog that accepts the same kinds of format specifiers (including the "%@" format specifier to print object descriptions) but which omits the prelimary information that is prepended by NSLog (date, time, process name, process number). Named with a preceding underscore to avoid namespace clash with the WOLog global variable defined in the WOLogManager class of the WODebug framework. */
25 void _WOLog(NSString *format, ...);
27 /*! This function is an alternative to NSLogv that accepts the same kinds of format specifiers (including the "%@" format specifier to print object descriptions) but which omits the prelimary information that is prepended by NSLogv (date, time, process name, process number). Named with a preceding underscore for consistency with the _WOLog function. */
28 void _WOLogv(NSString *format, va_list args);
30 @interface NSString (WOTest)
32 + (NSString *)WOTest_stringWithFormat:(NSString *)format arguments:(va_list)argList;
34 /*! Convenience method that returns an NSString based on a single character of type unichar. */
35 + (NSString *)WOTest_stringWithCharacter:(unichar)character;
37 - (NSString *)WOTest_stringByConvertingToAbsolutePath;
39 /*! Returns an immutable, autoreleased string created by "collapsing" all of the whitespace in the receiver into single spaces. All newlines are converted into spaces and consecutive spaces are "collapsed" into a single space. */
40 - (NSString *)WOTest_stringByCollapsingWhitespace;
43 /*! Returns an immutable, autoreleased string created by appending a single character of type unichar to the receiver. */
44 - (NSString *)WOTest_stringByAppendingCharacter:(unichar)character;