Guest User

Untitled

a guest
Feb 19th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. class QString {
  2. private:
  3. NSMutableString *internalString;
  4. public:
  5. // Constructors / destructors
  6. QString() : internalString([[NSMutableString alloc] initWithString:@""]) {}
  7. QString(const char *cstr) : internalString([[NSMutableString alloc] initWithCString:cstr encoding:NSASCIIStringEncoding]) {}
  8. ~QString(){ [internalString release]; }
  9.  
  10. // Quick access to the internal representation
  11. NSString *toNSString();
  12.  
  13. bool isEmpty();
  14. bool isNull();
  15. };
Add Comment
Please, Sign In to add comment