|
ObjFW
|
#include "objfw-defs.h"#include <sys/types.h>#include <stdarg.h>#include <stdint.h>import "OFObject.h"import "OFJSONRepresentation.h"import "OFMessagePackRepresentation.h"import "OFConstantString.h"import "OFMutableString.h"import "OFString+CryptographicHashing.h"import "OFString+JSONParsing.h"import "OFString+PathAdditions.h"import "OFString+PercentEncoding.h"import "OFString+PropertyListParsing.h"import "OFString+XMLEscaping.h"import "OFString+XMLUnescaping.h"Go to the source code of this file.
Classes | |
| class | OFString |
| A class for handling strings. More... | |
Typedefs | |
| typedef void(^ | OFStringLineEnumerationBlock) (OFString *line, bool *stop) |
| A block for enumerating the lines of a string. | |
Enumerations | |
| enum | OFStringEncoding { OFStringEncodingUTF8 , OFStringEncodingASCII , OFStringEncodingISO8859_1 , OFStringEncodingISO8859_2 , OFStringEncodingISO8859_3 , OFStringEncodingISO8859_15 , OFStringEncodingWindows1251 , OFStringEncodingWindows1252 , OFStringEncodingCodepage437 , OFStringEncodingCodepage850 , OFStringEncodingCodepage858 , OFStringEncodingMacRoman , OFStringEncodingKOI8R , OFStringEncodingKOI8U , OFStringEncodingWindows1250 , OFStringEncodingCodepage852 , OFStringEncodingAutodetect = -1 } |
| The encoding of a string. More... | |
| enum | OFStringSearchOptions { OFStringSearchBackwards = 1 } |
| Options for searching in strings. More... | |
| enum | OFStringSeparationOptions { OFStringSkipEmptyComponents = 1 } |
| Options for separating strings. More... | |
Functions | |
| OFStringEncoding | OFStringEncodingParseName (OFString *name) |
| Parses the specified string encoding name and returns the OFStringEncoding for it. | |
| OFString * | OFStringEncodingName (OFStringEncoding encoding) |
| Returns the name of the specified OFStringEncoding. | |
| size_t | OFUTF16StringLength (const OFChar16 *string) |
| Returns the length of the specified UTF-16 string. | |
| size_t | OFUTF32StringLength (const OFChar32 *string) |
| Returns the length of the specified UTF-32 string. | |
| typedef void(^ OFStringLineEnumerationBlock) (OFString *line, bool *stop) |
A block for enumerating the lines of a string.
| line | The current line |
| stop | A pointer to a variable that can be set to true to stop the enumeration |
| enum OFStringEncoding |
The encoding of a string.
|
extern |
Returns the name of the specified OFStringEncoding.
| encoding | The encoding for which to return the name |
|
extern |
Parses the specified string encoding name and returns the OFStringEncoding for it.
Throws OFInvalidArgumentException if the specified name is not a valid encoding name.
| name | The name to parse as a string encoding |
|
extern |
Returns the length of the specified UTF-16 string.
| string | The UTF-16 string |
|
extern |
Returns the length of the specified UTF-32 string.
| string | The UTF-32 string |