In my Native Library I used to have this function to return a NSString
out of a std::string
:
- (NSString*)return_my_cpp_string {
NSString* result = [NSString stringWithCString:my_cpp_string.c_str() encoding:[NSString defaultCStringEncoding]];
return result;
}
I now need to update this function so that it rather returns a NSString
out of an std::u16string
but I can't find any obvious way to do so.