113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
-
+
|
*
* \param str A string to initialize the OFString with
* \return A new autoreleased OFString
*/
+ stringWithString: (OFString*)str;
/**
* Creates a new OFString with the contents of the specified file.
* Creates a new OFString with the contents of the specified UTF-8 encoded file.
*
* \param path The path to the file
* \return A new autoreleased OFString
*/
+ stringWithContentsOfFile: (OFString*)path;
/**
|
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
|
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
|
+
+
+
+
+
+
+
|
/**
* Returns the hexadecimal value of the string as an intmax_t or throws an
* OFInvalidEncoding exception if the string contains any non-number characters.
*
* \return An OFNumber
*/
- (uintmax_t)hexadecimalValueAsInteger;
/**
* Writes the string into the specified file using UTF-8 encoding.
*
* \param path The path of the file to write to
*/
- (void)writeToFile: (OFString*)path;
@end
#import "OFConstString.h"
#import "OFMutableString.h"
#import "OFString+Hashing.h"
#import "OFString+URLEncoding.h"
#import "OFString+XMLEscaping.h"
#import "OFString+XMLUnescaping.h"
|