From ae0868c1c4ea35071381319bb32721acd60f95ce Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Sun, 4 Oct 2026 09:46:49 +1300 Subject: basic PXString header --- include/Paradox/String.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/Paradox/String.h (limited to 'include/Paradox') diff --git a/include/Paradox/String.h b/include/Paradox/String.h new file mode 100644 index 0000000..ddb2261 --- /dev/null +++ b/include/Paradox/String.h @@ -0,0 +1,24 @@ +#ifndef PARADOX_STRING_H +#define PARADOX_STRING_H + +#include +#include +#include + +@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 -- cgit v1.2.3