Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // QString.mm
- // WCFakeQT
- //
- // Created by Dylan Lukes on 7/6/11.
- // Copyright 2011 Dylan Lukes. All rights reserved.
- //
- #include "QString.h"
- QString::QString() : internalString([[NSMutableString alloc] initWithString:@""]){}
- QString::QString(const char *cstr) : internalString([[NSMutableString alloc] initWithCString:cstr encoding:NSASCIIStringEncoding]){}
- QString::~QString() { [internalString release]; }
- bool QString::isEmpty() { return [internalString length] == 0; }
- bool QString::isNull() { return [internalString length] == 0; }
- NSString *QString::toNSString() { return [internalString copy]; }
Add Comment
Please, Sign In to add comment