ObjFW  Diff

Differences From Artifact [0e3e3b6f7d]:

To Artifact [9dcf63a10a]:


9
10
11
12
13
14
15



16
17
18
19
20
21







22




23




24






25







26
27
 * the packaging of this file.
 */

#import <wchar.h>
#import <stddef.h>
#import "OFString.h"




@interface OFConstWideCString: OFString
{
	const wchar_t *string;
	size_t	      length;
}








- initAsConstWideCString: (const wchar_t*)wstr;




- (const wchar_t*)wcString;




- (size_t)length;






- (OFString*)clone;







- (int)compareTo: (OFString*)str;
@end







>
>
>






>
>
>
>
>
>
>

>
>
>
>

>
>
>
>

>
>
>
>
>
>

>
>
>
>
>
>
>


9
10
11
12
13
14
15
16
17
18
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
 * the packaging of this file.
 */

#import <wchar.h>
#import <stddef.h>
#import "OFString.h"

/**
 * An OFString using a constant wide C string as internal storage.
 */
@interface OFConstWideCString: OFString
{
	const wchar_t *string;
	size_t	      length;
}

/**
 * Initializes an already allocated OFConstWideCString.
 * 
 * \param str A constant wide C string to initialize the OFConstWideCString
 * 	  with.
 * \returns An initialized OFConstWideCString
 */
- initAsConstWideCString: (const wchar_t*)wstr;

/**
 * \return The OFConstWideCString as a constant wide C string.
 */
- (const wchar_t*)wcString;

/**
 * \return The length of the OFConstWideCString.
 */
- (size_t)length;

/**
 * Clones the OFConstWideCString, creating a new one.
 * 
 * \return A copy of the OFConstWideCString
 */
- (OFString*)clone;

/**
 * Compares the OFConstWideCString to another OFString.
 *
 * \param str An OFString in a compatible type to compare with
 * \return An integer which is the result of the comparison, see wcscmp.
 */
- (int)compareTo: (OFString*)str;
@end