ObjFW
Classes | Typedefs | Enumerations
OFString.h File Reference
#include "objfw-defs.h"
#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include "OFObject.h"
#import "OFSerialization.h"
#import "OFJSONRepresentation.h"
#import "OFMessagePackRepresentation.h"
#include "OFConstantString.h"
#include "OFMutableString.h"
#import "OFString+CryptoHashing.h"
#import "OFString+JSONParsing.h"
#import "OFString+PathAdditions.h"
#import "OFString+PropertyListParsing.h"
#import "OFString+Serialization.h"
#import "OFString+URLEncoding.h"
#import "OFString+XMLEscaping.h"
#import "OFString+XMLUnescaping.h"
Include dependency graph for OFString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OFString
 A class for handling strings. More...
 

Typedefs

typedef enum of_string_encoding_t of_string_encoding_t
 The encoding of a string.
 
typedef void(^ of_string_line_enumeration_block_t) (OFString *line, bool *stop)
 A block for enumerating the lines of a string. More...
 

Enumerations

enum  of_string_encoding_t {
  OF_STRING_ENCODING_UTF_8 , OF_STRING_ENCODING_ASCII , OF_STRING_ENCODING_ISO_8859_1 , OF_STRING_ENCODING_ISO_8859_2 ,
  OF_STRING_ENCODING_ISO_8859_3 , OF_STRING_ENCODING_ISO_8859_15 , OF_STRING_ENCODING_WINDOWS_1251 , OF_STRING_ENCODING_WINDOWS_1252 ,
  OF_STRING_ENCODING_CODEPAGE_437 , OF_STRING_ENCODING_CODEPAGE_850 , OF_STRING_ENCODING_CODEPAGE_858 , OF_STRING_ENCODING_MAC_ROMAN ,
  OF_STRING_ENCODING_KOI8_R , OF_STRING_ENCODING_KOI8_U , OF_STRING_ENCODING_AUTODETECT = 0xFF
}
 The encoding of a string. More...
 

Typedef Documentation

◆ of_string_line_enumeration_block_t

typedef void(^ of_string_line_enumeration_block_t) (OFString *line, bool *stop)

A block for enumerating the lines of a string.

Parameters
lineThe current line
stopA pointer to a variable that can be set to true to stop the enumeration

Enumeration Type Documentation

◆ of_string_encoding_t

The encoding of a string.

Enumerator
OF_STRING_ENCODING_UTF_8 

UTF-8

OF_STRING_ENCODING_ASCII 

ASCII

OF_STRING_ENCODING_ISO_8859_1 

ISO 8859-1

OF_STRING_ENCODING_ISO_8859_2 

ISO 8859-2

OF_STRING_ENCODING_ISO_8859_3 

ISO 8859-3

OF_STRING_ENCODING_ISO_8859_15 

ISO 8859-15

OF_STRING_ENCODING_WINDOWS_1251 

Windows-1251

OF_STRING_ENCODING_WINDOWS_1252 

Windows-1252

OF_STRING_ENCODING_CODEPAGE_437 

Codepage 437

OF_STRING_ENCODING_CODEPAGE_850 

Codepage 850

OF_STRING_ENCODING_CODEPAGE_858 

Codepage 858

OF_STRING_ENCODING_MAC_ROMAN 

Mac OS Roman

OF_STRING_ENCODING_KOI8_R 

KOI8-R

OF_STRING_ENCODING_KOI8_U 

KOI8-U

OF_STRING_ENCODING_AUTODETECT 

Try to automatically detect the encoding