/external/webrtc/webrtc/base/ |
macutils.cc | 23 bool ToUtf8(const CFStringRef str16, std::string* str8) { 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) { 39 if (NULL == str16) { 42 *str16 = CFStringCreateWithBytes(kCFAllocatorDefault, 46 return NULL != *str16;
|
macutils.h | 27 bool ToUtf8(const CFStringRef str16, std::string* str8); 28 bool ToUtf16(const std::string& str8, CFStringRef* str16);
|
/frameworks/base/tools/aapt2/xml/ |
XmlDom.cpp | 229 const char16_t* str16 = parser->getAttributeNamespace(i, &len); local 230 if (str16) { 231 attr.namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); 234 str16 = parser->getAttributeName(i, &len); 235 if (str16) { 236 attr.name = util::Utf16ToUtf8(StringPiece16(str16, len)); 239 str16 = parser->getAttributeStringValue(i, &len); 240 if (str16) { 241 attr.value = util::Utf16ToUtf8(StringPiece16(str16, len)); 280 const char16_t* str16 = tree.getNamespacePrefix(&len) local 307 const char16_t* str16 = tree.getElementNamespace(&len); local 333 const char16_t* str16 = tree.getText(&len); local [all...] |
/frameworks/base/packages/services/PacProcessor/jni/ |
com_android_pacprocessor_PacNative.cpp | 51 String16 str16(reinterpret_cast<const char16_t*>(str), 54 return str16;
|
/frameworks/base/tools/aapt2/ |
ResourceUtils.cpp | 460 std::u16string str16 = util::Utf8ToUtf16(str); local 462 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { 471 std::u16string str16 = util::Utf8ToUtf16(trimmed_str); local 473 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { 487 std::u16string str16 = util::Utf8ToUtf16(trimmed_str); local 489 if (android::ResTable::stringToInt(str16.data(), str16.size(), &value)) { 515 std::u16string str16 = util::Utf8ToUtf16(util::TrimWhitespace(str)) local 524 std::u16string str16 = util::Utf8ToUtf16(util::TrimWhitespace(str)); local [all...] |
/external/libchrome/base/ |
pickle_unittest.cc | 466 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));
|
/frameworks/base/core/jni/ |
android_util_Process.cpp | 113 const jchar* str16 = env->GetStringCritical(name, 0); local 115 if (str16) { 116 name8 = String8(reinterpret_cast<const char16_t*>(str16), 118 env->ReleaseStringCritical(name, str16); 145 const jchar* str16 = env->GetStringCritical(name, 0); local 147 if (str16) { 148 name8 = String8(reinterpret_cast<const char16_t*>(str16), 150 env->ReleaseStringCritical(name, str16); [all...] |
android_util_AssetManager.cpp | 1496 const char16_t* str16 = pool->stringAt(value.data, &strLen); local [all...] |
/frameworks/base/tools/aapt/ |
XMLNode.cpp | 101 const String16& str16) 103 const char16_t* str = str16.string(); 105 const char16_t* end = str + str16.size(); [all...] |
/frameworks/base/libs/androidfw/ |
ResourceTypes.cpp | 838 const char16_t *str16 = stringAt(idx, &len); local 839 if (str16 != NULL) { 840 return String8(str16, len); 7023 const char16_t* str16 = pkg->header->values.stringAt( local [all...] |
/external/v8/benchmarks/ |
regexp.js | [all...] |