ndn::detail::cfstring Namespace Reference

Functions

CFReleaser< CFStringRef > fromBuffer (const uint8_t *buf, size_t buflen)
 Create a CFString by copying bytes from a raw buffer. More...
 
CFReleaser< CFStringRef > fromStdString (const std::string &str)
 Create a CFString by copying characters from a std::string. More...
 
std::string toStdString (CFStringRef cfStr)
 Convert a CFString to a std::string. More...
 

Function Documentation

CFReleaser< CFStringRef > ndn::detail::cfstring::fromBuffer ( const uint8_t *  buf,
size_t  buflen 
)

Create a CFString by copying bytes from a raw buffer.

Exceptions
std::runtime_errorcreation failed

Definition at line 29 of file cf-string-osx.cpp.

CFReleaser< CFStringRef > ndn::detail::cfstring::fromStdString ( const std::string &  str)

Create a CFString by copying characters from a std::string.

Exceptions
std::runtime_errorcreation failed

Definition at line 39 of file cf-string-osx.cpp.

std::string ndn::detail::cfstring::toStdString ( CFStringRef  cfStr)

Convert a CFString to a std::string.

Exceptions
std::runtime_errorconversion failed

Definition at line 49 of file cf-string-osx.cpp.