ObjFW  Check-in [96e70bb9c4]

Overview
Comment:Add OF_STRING_ENCODING_NATIVE.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 96e70bb9c47a52b649fa001fb4793684a47aad0abb229c0dce59b96a2d512cff
User & Date: js on 2011-09-12 18:40:52
Other Links: manifest | tags
Context
2011-09-12
18:57
Add -[cStringWithEncoding:] and -[cStringLengthWithEncoding:]. check-in: 90369e9323 user: js tags: trunk
18:40
Add OF_STRING_ENCODING_NATIVE. check-in: 96e70bb9c4 user: js tags: trunk
18:26
Add OF_STRING_ENCODING_ASCII. check-in: 7920f081ec user: js tags: trunk
Changes

Modified src/OFString.h from [106ad7b993] to [24d1b609ed].

35
36
37
38
39
40
41



42
43
44
45
46
47
48
	OF_STRING_ENCODING_ASCII,
	OF_STRING_ENCODING_ISO_8859_1,
	OF_STRING_ENCODING_ISO_8859_15,
	OF_STRING_ENCODING_WINDOWS_1252,
	OF_STRING_ENCODING_AUTODETECT = 0xFF
} of_string_encoding_t;




#ifdef __cplusplus
extern "C" {
#endif
extern int of_string_check_utf8(const char*, size_t, size_t*);
extern size_t of_string_unicode_to_utf8(of_unichar_t, char*);
extern size_t of_string_utf8_to_unicode(const char*, size_t, of_unichar_t*);
extern size_t of_string_position_to_index(const char*, size_t);







>
>
>







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
	OF_STRING_ENCODING_ASCII,
	OF_STRING_ENCODING_ISO_8859_1,
	OF_STRING_ENCODING_ISO_8859_15,
	OF_STRING_ENCODING_WINDOWS_1252,
	OF_STRING_ENCODING_AUTODETECT = 0xFF
} of_string_encoding_t;

/* FIXME */
#define OF_STRING_ENCODING_NATIVE OF_STRING_ENCODING_UTF_8

#ifdef __cplusplus
extern "C" {
#endif
extern int of_string_check_utf8(const char*, size_t, size_t*);
extern size_t of_string_unicode_to_utf8(of_unichar_t, char*);
extern size_t of_string_utf8_to_unicode(const char*, size_t, of_unichar_t*);
extern size_t of_string_position_to_index(const char*, size_t);