Guest User

Untitled

a guest
Feb 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. //
  2. // QString.mm
  3. // WCFakeQT
  4. //
  5. // Created by Dylan Lukes on 7/6/11.
  6. // Copyright 2011 Dylan Lukes. All rights reserved.
  7. //
  8.  
  9. #include "QString.h"
  10.  
  11. QString::QString() : internalString([[NSMutableString alloc] initWithString:@""]){}
  12. QString::QString(const char *cstr) : internalString([[NSMutableString alloc] initWithCString:cstr encoding:NSASCIIStringEncoding]){}
  13.  
  14. QString::~QString() { [internalString release]; }
  15.  
  16. bool QString::isEmpty() { return [internalString length] == 0; }
  17. bool QString::isNull() { return [internalString length] == 0; }
  18.  
  19. NSString *QString::toNSString() { return [internalString copy]; }
Add Comment
Please, Sign In to add comment