22 #ifndef NDN_DETAIL_CF_STRING_OSX_HPP 23 #define NDN_DETAIL_CF_STRING_OSX_HPP 27 #ifndef NDN_CXX_HAVE_OSX_FRAMEWORKS 28 #error "This file should not be included ..." 47 CFReleaser<CFStringRef>
54 CFReleaser<CFStringRef>
68 #endif // NDN_DETAIL_CF_STRING_OSX_HPP CFReleaser< CFStringRef > fromStdString(const std::string &str)
Create a CFString by copying characters from a std::string.
std::string toStdString(CFStringRef cfStr)
Convert a CFString to a std::string.
Common includes and macros used throughout the library.
CFReleaser< CFStringRef > fromBuffer(const uint8_t *buf, size_t buflen)
Create a CFString by copying bytes from a raw buffer.