8 #ifndef META_OCEAN_BASE_STRING_APPLE_H
9 #define META_OCEAN_BASE_STRING_APPLE_H
15 #error This library is available on Apple platforms only!
18 #include <CoreFoundation/CoreFoundation.h>
21 #include <Foundation/Foundation.h>
57 static std::string
toUTF8(NSString*
object);
73 static std::string
toUTF8(CFStringRef
object);
This class provides function allowing to convert Apple-platform specific string objects.
Definition: StringApple.h:33
static NSString * toNSString(const std::wstring &value)
Converts a given string to a NSString object.
static std::wstring toWString(NSString *object)
Converts a given NSString object to a string with 32 bit character encoding.
static NSString * toNSString(const std::string &value)
Converts a given string to a NSString object.
static std::string toUTF8(NSString *object)
Converts a given NSString object to a string with UTF8 encoding.
static std::wstring toWString(CFStringRef object)
Converts a given CFStringRef object to a string with 32 bit character encoding.
static std::string toUTF8(CFStringRef object)
Converts a given CFStringRef object to a string with UTF8 encoding.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15