39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
- (QString)qString
{
static_assert(sizeof(char16_t) == sizeof(QChar),
"char16_t and QChar have a different size!");
void *pool = objc_autoreleasePoolPush();
QString ret = QString((QChar *)[self UTF16String]);
objc_autoreleasePoolPop(pool);
return ret;
}
@end
|
|
|
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
- (QString)qString
{
static_assert(sizeof(char16_t) == sizeof(QChar),
"char16_t and QChar have a different size!");
void *pool = objc_autoreleasePoolPush();
QString ret = QString((QChar *)self.UTF16String);
objc_autoreleasePoolPop(pool);
return ret;
}
@end
|