22 #ifndef NDN_UTIL_CF_STRING_OSX_HPP 23 #define NDN_UTIL_CF_STRING_OSX_HPP 25 #include "../common.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_UTIL_CF_STRING_OSX_HPP Copyright (c) 2013-2017 Regents of the University of California.
std::string toStdString(CFStringRef cfStr)
Convert a CFString to a std::string.
CFReleaser< CFStringRef > fromStdString(const std::string &str)
Create a CFString by copying characters from a std::string.
CFReleaser< CFStringRef > fromBuffer(const uint8_t *buf, size_t buflen)
Create a CFString by copying bytes from a raw buffer.