Searched refs:str16 (Results 1 - 3 of 3) sorted by relevance

/external/webrtc/webrtc/base/
H A Dmacutils.cc23 bool ToUtf8(const CFStringRef str16, std::string* str8) { argument
24 if ((NULL == str16) || (NULL == str8)) {
27 size_t maxlen = CFStringGetMaximumSizeForEncoding(CFStringGetLength(str16),
30 if (!buffer || !CFStringGetCString(str16, buffer.get(), maxlen,
38 bool ToUtf16(const std::string& str8, CFStringRef* str16) { argument
39 if (NULL == str16) {
42 *str16 = CFStringCreateWithBytes(kCFAllocatorDefault,
46 return NULL != *str16;
H A Dmacutils.h27 bool ToUtf8(const CFStringRef str16, std::string* str8);
28 bool ToUtf16(const std::string& str8, CFStringRef* str16);
/external/libchrome/base/
H A Dpickle_unittest.cc466 string16 str16; local
467 EXPECT_FALSE(iter.ReadString16(&str16));
470 str16 = (wchar_t) 'A';
472 EXPECT_TRUE(str16_pickle.WriteString16(str16));
474 EXPECT_TRUE(iter.ReadString16(&str16));
475 EXPECT_EQ(1U, str16.length());
482 EXPECT_FALSE(iter.ReadString16(&str16));

Completed in 83 milliseconds