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
92
93
|
/**
* Creates a new OFString from a C string with the specified encoding and
* length.
*
* \param str A C string to initialize the OFString with
* \param encoding The encoding of the C string
* \param len The length of the string
* \return A new autoreleased OFString
*/
+ stringWithCString: (const char*)str
encoding: (enum of_string_encoding)encoding
length: (size_t)len;
/**
* Creates a new OFString from a UTF-8 encoded C string with the specified
* length.
*
* \param str A UTF-8 encoded C string to initialize the OFString with
* \param len The length of the string
* \return A new autoreleased OFString
*/
+ stringWithCString: (const char*)str
length: (size_t)len;
/**
* Creates a new OFString from a format string.
|
|
|
|
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
92
93
|
/**
* Creates a new OFString from a C string with the specified encoding and
* length.
*
* \param str A C string to initialize the OFString with
* \param encoding The encoding of the C string
* \param len The length of the C string
* \return A new autoreleased OFString
*/
+ stringWithCString: (const char*)str
encoding: (enum of_string_encoding)encoding
length: (size_t)len;
/**
* Creates a new OFString from a UTF-8 encoded C string with the specified
* length.
*
* \param str A UTF-8 encoded C string to initialize the OFString with
* \param len The length of the UTF-8 encoded C string
* \return A new autoreleased OFString
*/
+ stringWithCString: (const char*)str
length: (size_t)len;
/**
* Creates a new OFString from a format string.
|
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
/**
* Initializes an already allocated OFString from a C string with the specified
* encoding and length.
*
* \param str A C string to initialize the OFString with
* \param encoding The encoding of the C string
* \param len The length of the string
* \return An initialized OFString
*/
- initWithCString: (const char*)str
encoding: (enum of_string_encoding)encoding
length: (size_t)len;
/**
* Initializes an already allocated OFString from a UTF-8 encoded C string with
* the specified length.
*
* \param str A UTF-8 encoded C string to initialize the OFString with
* \param len The length of the string
* \return An initialized OFString
*/
- initWithCString: (const char*)str
length: (size_t)len;
/**
* Initializes an already allocated OFString with a format string.
|
|
|
|
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
/**
* Initializes an already allocated OFString from a C string with the specified
* encoding and length.
*
* \param str A C string to initialize the OFString with
* \param encoding The encoding of the C string
* \param len The length of the C string
* \return An initialized OFString
*/
- initWithCString: (const char*)str
encoding: (enum of_string_encoding)encoding
length: (size_t)len;
/**
* Initializes an already allocated OFString from a UTF-8 encoded C string with
* the specified length.
*
* \param str A UTF-8 encoded C string to initialize the OFString with
* \param len The length of the UTF-8 encoded C string
* \return An initialized OFString
*/
- initWithCString: (const char*)str
length: (size_t)len;
/**
* Initializes an already allocated OFString with a format string.
|
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
/**
* \return The OFString as a UTF-8 encoded C string
*/
- (const char*)cString;
/**
* \return The length of the OFString
*/
- (size_t)length;
/**
* Compares the OFString to another object.
*
* \param obj An object to compare with
* \return An integer which is the result of the comparison, see for example
* strcmp
|
|
|
|
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
/**
* \return The OFString as a UTF-8 encoded C string
*/
- (const char*)cString;
/**
* \return The length of the string which cString would return
*/
- (size_t)cStringLength;
/**
* Compares the OFString to another object.
*
* \param obj An object to compare with
* \return An integer which is the result of the comparison, see for example
* strcmp
|