19
20
21
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
|
char *string;
size_t length;
BOOL is_utf8;
}
/**
* Creates a new OFString.
*
* \return An initialized OFString
*/
+ new;
/**
* Creates a new OFString from a C string.
*
* \param str A C string to initialize the OFString with
* \return A new OFString
*/
+ newFromCString: (const char*)str;
/**
* Initializes an already allocated OFString.
*
* \return An initialized OFString
*/
- init;
/**
* Initializes an already allocated OFString from a C string.
*
* \param str A C string to initialize the OFString with
* \return An initialized OFString
*/
- initFromCString: (const char*)str;
/**
* \return The OFString as a wide C string
*/
- (const char*)cString;
/**
* \return The length of the OFString
*/
- (size_t)length;
/**
* Clones the OFString, creating a new one.
*
* \return A copy of the OFString
*/
- (OFString*)clone;
/**
* Frees the OFString and sets it to the specified OFString.
*
|
|
|
|
|
|
19
20
21
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
|
char *string;
size_t length;
BOOL is_utf8;
}
/**
* Creates a new OFString.
*
* \return An initialized OFString
*/
+ new;
/**
* Creates a new OFString from a C string.
*
* \param str A C string to initialize the OFString with
* \return A new OFString
*/
+ newFromCString: (const char*)str;
/**
* Initializes an already allocated OFString.
*
* \return An initialized OFString
*/
- init;
/**
* Initializes an already allocated OFString from a C string.
*
* \param str A C string to initialize the OFString with
* \return An initialized OFString
*/
- initFromCString: (const char*)str;
/**
* \return The OFString as a wide C string
*/
- (const char*)cString;
/**
* \return The length of the OFString
*/
- (size_t)length;
/**
* Clones the OFString, creating a new one.
*
* \return A copy of the OFString
*/
- (OFString*)clone;
/**
* Frees the OFString and sets it to the specified OFString.
*
|