Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class QString {
- private:
- NSMutableString *internalString;
- public:
- // Constructors / destructors
- QString() : internalString([[NSMutableString alloc] initWithString:@""]) {}
- QString(const char *cstr) : internalString([[NSMutableString alloc] initWithCString:cstr encoding:NSASCIIStringEncoding]) {}
- ~QString(){ [internalString release]; }
- // Quick access to the internal representation
- NSString *toNSString();
- bool isEmpty();
- bool isNull();
- };
Add Comment
Please, Sign In to add comment