Home | History | Annotate | Download | only in win

Lines Matching refs:str

80 CFStringRef MarshallingHelpers::BSTRToCFStringRef(BSTR str)
82 return CFStringCreateWithCharacters(0, (const UniChar*)(str ? str : TEXT("")), SysStringLen(str));
85 CFStringRef MarshallingHelpers::LPCOLESTRToCFStringRef(LPCOLESTR str)
87 return CFStringCreateWithCharacters(0, (const UniChar*)(str ? str : TEXT("")), (CFIndex)(str ? wcslen(str) : 0));
90 BSTR MarshallingHelpers::CFStringRefToBSTR(CFStringRef str)
92 if (!str)
95 const UniChar* uniChars = CFStringGetCharactersPtr(str);
97 return SysAllocStringLen((LPCTSTR)uniChars, CFStringGetLength(str));
99 CFIndex length = CFStringGetLength(str);
102 CFStringGetCharacters(str, CFRangeMake(0, length), (UniChar*)bstr);
235 BSTR str;
236 hr = ::SafeArrayGetElement(inArray, &lBound, &str);
237 items[lBound] = BSTRToCFStringRef(str);
238 SysFreeString(str);