ObjFW
 All Classes Functions Variables
List of all members
OFConstantString Class Reference

A class for storing constant strings using the @"" literal. More...

#import <OFConstantString.h>

Inheritance diagram for OFConstantString:
OFString OFObject <OFCopying> <OFMutableCopying> <OFComparing> <OFSerialization> <OFJSONRepresentation> <OFObject> <OFObject>

Additional Inherited Members

- Instance Methods inherited from OFString
(id) - initWithUTF8String:
 Initializes an already allocated OFString from a UTF-8 encoded C string.
 
(id) - initWithUTF8String:length:
 Initializes an already allocated OFString from a UTF-8 encoded C string with the specified length.
 
(id) - initWithUTF8StringNoCopy:freeWhenDone:
 Initializes an already allocated OFString from an UTF-8 encoded C string without copying it, if possible.
 
(id) - initWithCString:encoding:
 Initializes an already allocated OFString from a C string with the specified encoding.
 
(id) - initWithCString:encoding:length:
 Initializes an already allocated OFString from a C string with the specified encoding and length.
 
(id) - initWithString:
 Initializes an already allocated OFString with another string.
 
(id) - initWithUnicodeString:
 Initializes an already allocated OFString with a unicode string.
 
(id) - initWithUnicodeString:byteOrder:
 Initializes an already allocated OFString with a unicode string, assuming the specified byte order if no BOM is found.
 
(id) - initWithUnicodeString:length:
 Initializes an already allocated OFString with a unicode string with the specified length.
 
(id) - initWithUnicodeString:byteOrder:length:
 Initializes an already allocated OFString with a unicode string with the specified length, assuming the specified byte order if no BOM is found.
 
(id) - initWithUTF16String:
 Initializes an already allocated OFString with a UTF-16 string.
 
(id) - initWithUTF16String:byteOrder:
 Initializes an already allocated OFString with a UTF-16 string, assuming the specified byte order if no BOM is found.
 
(id) - initWithUTF16String:length:
 Initializes an already allocated OFString with a UTF-16 string with the specified length.
 
(id) - initWithUTF16String:byteOrder:length:
 Initializes an already allocated OFString with a UTF-16 string with the specified length, assuming the specified byte order if no BOM is found.
 
(id) - initWithFormat:
 Initializes an already allocated OFString with a format string.
 
(id) - initWithFormat:arguments:
 Initializes an already allocated OFString with a format string.
 
(id) - initWithPath:
 Initializes an already allocated OFString with the constructed specified path.
 
(id) - initWithPath:arguments:
 Initializes an already allocated OFString with the constructed specified path.
 
(id) - initWithContentsOfFile:
 Initializes an already allocated OFString with the contents of the specified file in the specified encoding.
 
(id) - initWithContentsOfFile:encoding:
 Initializes an already allocated OFString with the contents of the specified file in the specified encoding.
 
(id) - initWithContentsOfURL:
 Initializes an already allocated OFString with the contents of the specified URL.
 
(id) - initWithContentsOfURL:encoding:
 Initializes an already allocated OFString with the contents of the specified URL in the specified encoding.
 
(const char *) - OF_RETURNS_INNER_POINTER
 Returns the OFString as a UTF-8 encoded C string.
 
(const char *) - cStringWithEncoding:
 Returns the OFString as a C string in the specified encoding.
 
(size_t) - length
 Returns the length of the string in Unicode characters.
 
(size_t) - UTF8StringLength
 Returns the number of bytes the string needs in UTF-8 encoding.
 
(size_t) - cStringLengthWithEncoding:
 Returns the number of bytes the string needs in the specified encoding.
 
(of_comparison_result_t) - caseInsensitiveCompare:
 Compares the OFString to another OFString without caring about the case.
 
(of_unichar_t) - characterAtIndex:
 Returns the Unicode character at the specified index.
 
(void) - getCharacters:inRange:
 Copies the Unicode characters in the specified range to the specified buffer.
 
(of_range_t- rangeOfString:
 Returns the range of the first occurrence of the string.
 
(of_range_t- rangeOfString:options:
 Returns the range of the string.
 
(of_range_t- rangeOfString:options:range:
 Returns the range of the string in the specified range.
 
(BOOL) - containsString:
 Returns whether the string contains the specified string.
 
(OFString *) - substringWithRange:
 Creates a substring with the specified range.
 
(OFString *) - stringByAppendingString:
 Creates a new string by appending another string.
 
(OFString *) - stringByAppendingPathComponent:
 Creates a new string by appending a path component.
 
(OFString *) - stringByPrependingString:
 Creates a new string by prepending another string.
 
(OFString *) - stringByReplacingOccurrencesOfString:withString:
 Creates a new string by replacing the occurrences of the specified string with the specified replacement.
 
(OFString *) - stringByReplacingOccurrencesOfString:withString:options:range:
 Creates a new string by replacing the occurrences of the specified string in the specified range with the specified replacement.
 
(OFString *) - uppercaseString
 Returns the string in uppercase.
 
(OFString *) - lowercaseString
 Returns the string in lowercase.
 
(OFString *) - capitalizedString
 Returns the string capitalized.
 
(OFString *) - stringByDeletingLeadingWhitespaces
 Creates a new string by deleting leading whitespaces.
 
(OFString *) - stringByDeletingTrailingWhitespaces
 Creates a new string by deleting trailing whitespaces.
 
(OFString *) - stringByDeletingEnclosingWhitespaces
 Creates a new string by deleting leading and trailing whitespaces.
 
(BOOL) - hasPrefix:
 Checks whether the string has the specified prefix.
 
(BOOL) - hasSuffix:
 Checks whether the string has the specified suffix.
 
(OFArray *) - componentsSeparatedByString:
 Separates an OFString into an OFArray of OFStrings.
 
(OFArray *) - componentsSeparatedByString:options:
 Separates an OFString into an OFArray of OFStrings.
 
(OFArray *) - pathComponents
 Returns the components of the path.
 
(OFString *) - lastPathComponent
 Returns the last component of the path.
 
(OFString *) - stringByDeletingLastPathComponent
 Returns the directory name of the path.
 
(intmax_t) - decimalValue
 Returns the decimal value of the string as an intmax_t.
 
(uintmax_t) - hexadecimalValue
 Returns the hexadecimal value of the string as an uintmax_t.
 
(float) - floatValue
 Returns the float value of the string as a float.
 
(double) - doubleValue
 Returns the double value of the string as a double.
 
(const of_unichar_t *) - OF_RETURNS_INNER_POINTER
 Returns the string as an array of Unicode characters.
 
(const uint16_t *) - OF_RETURNS_INNER_POINTER
 Returns the string in big endian UTF-16 encoding.
 
(void) - writeToFile:
 Writes the string into the specified file using UTF-8 encoding.
 
(OFString *) - MD5Hash
 Returns the MD5 hash of the string as an autoreleased OFString.
 
(OFString *) - SHA1Hash
 Returns the SHA1 hash of the string as an autoreleased OFString.
 
(id) - JSONValue
 Creates an object from the JSON value of the string.
 
(id) - objectByDeserializing
 Deserializes the receiver into an object.
 
(OFString *) - stringByURLEncoding
 Encodes a string for use in a URL.
 
(OFString *) - stringByURLDecoding
 Decodes a string used in a URL.
 
(OFString *) - stringByXMLEscaping
 Escapes a string for use in an XML document.
 
(OFString *) - stringByXMLUnescaping
 Unescapes XML in the string.
 
(OFString *) - stringByXMLUnescapingWithDelegate:
 Unescapes XML in the string and uses the specified delegate for unknown entities.
 
- Class Methods inherited from OFString
(instancetype) + string
 Creates a new OFString.
 
(instancetype) + stringWithUTF8String:
 Creates a new OFString from a UTF-8 encoded C string.
 
(instancetype) + stringWithUTF8String:length:
 Creates a new OFString from a UTF-8 encoded C string with the specified length.
 
(instancetype) + stringWithCString:encoding:
 Creates a new OFString from a C string with the specified encoding.
 
(instancetype) + stringWithCString:encoding:length:
 Creates a new OFString from a C string with the specified encoding and length.
 
(instancetype) + stringWithString:
 Creates a new OFString from another string.
 
(instancetype) + stringWithUnicodeString:
 Creates a new OFString from a unicode string.
 
(instancetype) + stringWithUnicodeString:byteOrder:
 Creates a new OFString from a unicode string, assuming the specified byte order if no BOM is found.
 
(instancetype) + stringWithUnicodeString:length:
 Creates a new OFString from a unicode string with the specified length.
 
(instancetype) + stringWithUnicodeString:byteOrder:length:
 Creates a new OFString from a unicode string with the specified length, assuming the specified byte order if no BOM is found.
 
(instancetype) + stringWithUTF16String:
 Creates a new OFString from a UTF-16 encoded string.
 
(instancetype) + stringWithUTF16String:byteOrder:
 Creates a new OFString from a UTF-16 encoded string, assuming the specified byte order if no BOM is found.
 
(instancetype) + stringWithUTF16String:length:
 Creates a new OFString from a UTF-16 encoded string with the specified length.
 
(instancetype) + stringWithUTF16String:byteOrder:length:
 Creates a new OFString from a UTF-16 encoded string with the specified length, assuming the specified byte order if no BOM is found.
 
(instancetype) + stringWithFormat:
 Creates a new OFString from a format string.
 
(instancetype) + stringWithPath:
 Creates a new OFString containing the constructed specified path.
 
(instancetype) + stringWithContentsOfFile:
 Creates a new OFString with the contents of the specified UTF-8 encoded file.
 
(instancetype) + stringWithContentsOfFile:encoding:
 Creates a new OFString with the contents of the specified file in the specified encoding.
 
(instancetype) + stringWithContentsOfURL:
 Creates a new OFString with the contents of the specified URL.
 
(instancetype) + stringWithContentsOfURL:encoding:
 Creates a new OFString with the contents of the specified URL in the specified encoding.
 

Detailed Description

A class for storing constant strings using the @"" literal.


The documentation for this class was generated from the following file: