22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
/**
* \brief A class for storing and modifying strings.
*/
@interface OFMutableString: OFString
/**
* \brief Sets the OFMutableString to the specified UTF-8 encoded C string.
*
* \param string A UTF-8 encoded C string to set the OFMutableString to.
*/
- (void)setToCString: (const char*)string;
/**
* \brief Appends a UTF-8 encoded C string to the OFMutableString.
*
* \param string A UTF-8 encoded C string to append
*/
- (void)appendCString: (const char*)string;
/**
* \brief Appends a UTF-8 encoded C string with the specified length to the
* OFMutableString.
*
* \param string A UTF-8 encoded C string to append
* \param length The length of the UTF-8 encoded C string
*/
- (void)appendCString: (const char*)string
withLength: (size_t)length;
/**
* \brief Appends a C string with the specified encoding and length to the
* OFMutableString.
*
* \param string A C string to append
* \param encoding The encoding of the C string
* \param length The length of the UTF-8 encoded C string
*/
- (void)appendCString: (const char*)string
withEncoding: (of_string_encoding_t)encoding
length: (size_t)length;
/**
* \brief Appends a UTF-8 encoded C string to the OFMutableString without
* checking whether it is valid UTF-8.
*
* Only use this if you are 100% sure the string you append is either ASCII or
* UTF-8!
*
* \param string A UTF-8 encoded C string to append
*/
- (void)appendCStringWithoutUTF8Checking: (const char*)string;
/**
* \brief Appends a UTF-8 encoded C string with the specified length to the
* OFMutableString without checking whether it is valid UTF-8.
*
* Only use this if you are 100% sure the string you append is either ASCII or
* UTF-8!
*
* \param string A UTF-8 encoded C string to append
* \param length The length of the UTF-8 encoded C string
*/
- (void)appendCStringWithoutUTF8Checking: (const char*)string
length: (size_t)length;
/**
* \brief Appends another OFString to the OFMutableString.
*
* \param string An OFString to append
*/
- (void)appendString: (OFString*)string;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
/**
* \brief A class for storing and modifying strings.
*/
@interface OFMutableString: OFString
/**
* \brief Sets the OFMutableString to the specified UTF-8 encoded C string.
*
* \param newCString A UTF-8 encoded C string to set the OFMutableString to.
*/
- (void)setToCString: (const char*)newCString;
/**
* \brief Appends a UTF-8 encoded C string to the OFMutableString.
*
* \param cString A UTF-8 encoded C string to append
*/
- (void)appendCString: (const char*)cString;
/**
* \brief Appends a UTF-8 encoded C string with the specified length to the
* OFMutableString.
*
* \param cString A UTF-8 encoded C string to append
* \param cStringLength The length of the UTF-8 encoded C string
*/
- (void)appendCString: (const char*)cString
withLength: (size_t)cStringLength;
/**
* \brief Appends a C string with the specified encoding and length to the
* OFMutableString.
*
* \param cString A C string to append
* \param encoding The encoding of the C string
* \param cStringLength The length of the UTF-8 encoded C string
*/
- (void)appendCString: (const char*)cString
withEncoding: (of_string_encoding_t)encoding
length: (size_t)cStringLength;
/**
* \brief Appends a UTF-8 encoded C string to the OFMutableString without
* checking whether it is valid UTF-8.
*
* Only use this if you are 100% sure the string you append is either ASCII or
* UTF-8!
*
* \param cString A UTF-8 encoded C string to append
*/
- (void)appendCStringWithoutUTF8Checking: (const char*)cString;
/**
* \brief Appends a UTF-8 encoded C string with the specified length to the
* OFMutableString without checking whether it is valid UTF-8.
*
* Only use this if you are 100% sure the string you append is either ASCII or
* UTF-8!
*
* \param cString A UTF-8 encoded C string to append
* \param cStringLength The length of the UTF-8 encoded C string
*/
- (void)appendCStringWithoutUTF8Checking: (const char*)cString
length: (size_t)cStringLength;
/**
* \brief Appends another OFString to the OFMutableString.
*
* \param string An OFString to append
*/
- (void)appendString: (OFString*)string;
|