Searched defs:cfstr (Results 1 - 2 of 2) sorted by relevance

/external/webkit/Source/WebCore/platform/win/
H A DBString.cpp96 BString::BString(CFStringRef cfstr) argument
99 if (!cfstr)
102 const UniChar* uniChars = CFStringGetCharactersPtr(cfstr);
104 m_bstr = SysAllocStringLen((LPCWSTR)uniChars, CFStringGetLength(cfstr));
108 CFIndex length = CFStringGetLength(cfstr);
110 CFStringGetCharacters(cfstr, CFRangeMake(0, length), (UniChar*)m_bstr);
/external/chromium/third_party/libjingle/source/talk/base/
H A Dmacconversion.cc36 const CFStringRef cfstr, std::string& cppstr) {
40 if (NULL != cfstr) {
43 if (CFGetTypeID(cfstr) == CFStringGetTypeID()) {
45 // (The cfstr owns this buffer; it came from somewhere else,
46 // so someone else gets to take care of getting rid of the cfstr,
48 unsigned length = CFStringGetLength(cfstr);
50 if (CFStringGetCString(cfstr, buf, 1 + length, kCFStringEncodingASCII)) {
35 p_convertHostCFStringRefToCPPString( const CFStringRef cfstr, std::string& cppstr) argument

Completed in 83 milliseconds