blob: ddb22610f9cbd0c52713974e562b3e349605b36b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef PARADOX_STRING_H
#define PARADOX_STRING_H
#include <objc/objc.h>
#include <objc/runtime.h>
#include <Paradox/Object.h>
@interface PXString : PXObject {
char *_bytes;
size_t _length;
}
/* init/lifecycle */
+ (instancetype)stringWithCString:(const char *)cstring;
- (instancetype)initWithCString:(const char *)cstring;
/* getters */
- (const char *)UTF8String;
- (size_t)length;
- (BOOL)isEqual:(PXString *)string;
@end
#endif
|