/frameworks/base/tools/aapt2/compile/ |
PseudolocaleGenerator_test.cpp | 30 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( local 34 EXPECT_EQ(original_style.str, *new_string->value->str); 35 ASSERT_EQ(original_style.spans.size(), new_string->value->spans.size()); 37 EXPECT_EQ(std::string("i"), *new_string->value->spans[0].name); 38 EXPECT_EQ(std::u16string(u"H").size(), new_string->value->spans[0].first_char); 39 EXPECT_EQ(std::u16string(u"Hello worl").size(), new_string->value->spans[0].last_char); 41 EXPECT_EQ(std::string("b"), *new_string->value->spans[1].name); 42 EXPECT_EQ(std::u16string(u"He").size(), new_string->value->spans[1].first_char); 43 EXPECT_EQ(std::u16string(u"Hel").size(), new_string->value->spans[1].last_char); 45 EXPECT_EQ(std::string("b"), *new_string->value->spans[2].name) 77 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( local 99 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( local 122 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( local 163 std::unique_ptr<StyledString> new_string = local 270 String* new_string = test::GetValueForConfig<String>(table.get(), "android:string\/bar", local [all...] |
PseudolocaleGenerator.cpp | 129 std::string new_string = localizer.Start(); local 138 uint32_t new_cursor = utf8_to_utf16_length(reinterpret_cast<const uint8_t*>(new_string.data()), 139 new_string.size(), false); 162 new_string += new_substr; 189 new_string += new_substr; 201 new_string += localizer.Text(util::Utf16ToUtf8(text.substr(cursor, text.size() - cursor))); 202 new_string += localizer.End(); 205 localized.str = std::move(new_string);
|
/system/bt/osi/src/ |
allocator.cc | 33 char* new_string = static_cast<char*>( local 35 if (!new_string) return NULL; 37 memcpy(new_string, str, size); 38 return new_string; 49 char* new_string = static_cast<char*>( local 51 if (!new_string) return NULL; 53 memcpy(new_string, str, size); 54 new_string[size] = '\0'; 55 return new_string;
|
/toolchain/binutils/binutils-2.25/libiberty/ |
setenv.c | 147 char *new_string = (char *) malloc (namelen + 1 + vallen); local 148 if (new_string == NULL) 153 *ep = new_string;
|
/art/runtime/mirror/ |
string-inl.h | 277 String* new_string = Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); local 278 return new_string; 289 String* new_string = Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); local 290 return new_string;
|
string.cc | 143 ObjPtr<String> new_string = Alloc<true>(self, length_with_flag, allocator_type, visitor); local 144 if (UNLIKELY(new_string == nullptr)) { 148 uint8_t* new_value = new_string->GetValueCompressed(); 152 uint16_t* new_value = new_string->GetValue(); 168 return new_string.Ptr();
|
/external/ltp/testcases/kernel/fs/inode/ |
inode01.c | 308 char new_string[PATH_STRING_LENGTH + 1]; local 328 snp_ret = snprintf(new_string, sizeof(new_string), 330 if (snp_ret < 0 || snp_ret >= sizeof(new_string)) { 331 tst_resm(TBROK, "snprintf(new_string,..) " 352 file_id = creat(new_string, FILE_MODE); 356 new_string, errno); 360 printf("%d %s F\n", level, new_string); 369 len = strlen(new_string); 372 write(file_id, new_string, len) [all...] |
inode02.c | 411 char new_string[PATH_STRING_LENGTH + 1]; local 431 snp_ret = snprintf(new_string, sizeof(new_string), 433 if (snp_ret < 0 || snp_ret >= sizeof(new_string)) { 434 tst_resm(TBROK, "snprintf(new_string,..) " 455 file_id = creat(new_string, FILE_MODE); 459 new_string, errno); 464 new_string); 473 len = strlen(new_string); 476 write(file_id, new_string, len) [all...] |
/external/v8/src/ast/ |
ast-value-factory.cc | 257 AstConsString* new_string = new (zone_) AstConsString(left, right); local 258 CHECK(new_string != nullptr); 259 AddString(new_string); 260 return new_string; 387 AstRawString* new_string = new (zone_) AstRawString( local 389 CHECK_NOT_NULL(new_string); 390 AddString(new_string); 391 entry->key = new_string;
|
/toolchain/binutils/binutils-2.25/bfd/ |
hash.c | 483 char *new_string; local 485 new_string = (char *) objalloc_alloc ((struct objalloc *) table->memory, 487 if (!new_string) 492 memcpy (new_string, string, len + 1); 493 string = new_string;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/ |
tokenizer.c | 134 new_string(const char *s, Py_ssize_t len)
function 161 return new_string(str, strlen(str));
237 char* r = new_string(begin, t - begin);
241 r = new_string(q, strlen(q));
377 tok->encoding = new_string("utf-8", 5); /* resulting is in utf-8 */
816 converted = new_string(PyString_AS_STRING(utf8),
826 tok->encoding = new_string(encoding, strlen(encoding));
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/ |
tokenizer.c | 134 new_string(const char *s, Py_ssize_t len)
function 161 return new_string(str, strlen(str));
237 char* r = new_string(begin, t - begin);
241 r = new_string(q, strlen(q));
363 tok->encoding = new_string("utf-8", 5); /* resulting is in utf-8 */
796 converted = new_string(PyString_AS_STRING(utf8),
806 tok->encoding = new_string(encoding, strlen(encoding));
[all...] |
/art/runtime/ |
debugger.cc | 1282 mirror::String* new_string = mirror::String::AllocFromModifiedUtf8(self, str.c_str()); local [all...] |
/external/v8/src/ |
code-stub-assembler.cc | 3379 Node* new_string = local [all...] |