/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->value); 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;
|
/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/dtc/tests/ |
setprop.c | 33 #define NEW_STRING "here is quite a long test string, blah blah blah" 57 err = fdt_setprop_string(fdt, 0, "prop-int", NEW_STRING); 60 NEW_STRING, fdt_strerror(err)); 62 strp = check_getprop_string(fdt, 0, "prop-int", NEW_STRING);
|
/external/v8/src/ast/ |
ast-value-factory.cc | 293 AstConsString* new_string = new (zone_) AstConsString(left, right); local 294 CHECK(new_string != nullptr); 295 AddString(new_string); 296 return new_string; 389 AstRawString* new_string = new (zone_) AstRawString( local 391 CHECK_NOT_NULL(new_string); 392 AddString(new_string); 393 entry->key = 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 | 273 String* new_string = Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); local 274 return new_string; 285 String* new_string = Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); local 286 return new_string;
|
string.cc | 146 ObjPtr<String> new_string = Alloc<true>(self, length_with_flag, allocator_type, visitor); local 147 if (UNLIKELY(new_string == nullptr)) { 151 uint8_t* new_value = new_string->GetValueCompressed(); 155 uint16_t* new_value = new_string->GetValue(); 171 return new_string.Ptr();
|
/external/dng_sdk/source/ |
dng_string.h | 125 const char *new_string,
|
dng_string.cpp | 1617 const char *new_string, 1631 uint32 len3 = strlenAsUint32 (new_string); 1637 new_string, 1646 new_string, 1682 new_string, [all...] |
/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...] |
/external/python/cpython2/Parser/ |
tokenizer.c | 134 new_string(const char *s, Py_ssize_t len) function 161 return new_string(str, strlen(str)); 238 char* r = new_string(begin, t - begin); 245 r = new_string(q, strlen(q)); 381 tok->encoding = new_string("utf-8", 5); /* resulting is in utf-8 */ 820 converted = new_string(PyString_AS_STRING(utf8), 830 tok->encoding = new_string(encoding, strlen(encoding)); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
re.py | 158 """Return a 2-tuple containing (new_string, number).
159 new_string is the string obtained by replacing the leftmost
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
re.py | 154 """Return a 2-tuple containing (new_string, number).
155 new_string is the string obtained by replacing the leftmost
|
/external/python/cpython2/Lib/ |
re.py | 158 """Return a 2-tuple containing (new_string, number). 159 new_string is the string obtained by replacing the leftmost
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
re.py | 154 """Return a 2-tuple containing (new_string, number). 155 new_string is the string obtained by replacing the leftmost
|
/prebuilts/gdb/linux-x86/lib/python2.7/ |
re.py | 154 """Return a 2-tuple containing (new_string, number). 155 new_string is the string obtained by replacing the leftmost
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
re.py | 154 """Return a 2-tuple containing (new_string, number). 155 new_string is the string obtained by replacing the leftmost
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
re.py | 154 """Return a 2-tuple containing (new_string, number). 155 new_string is the string obtained by replacing the leftmost
|
/external/webrtc/webrtc/base/ |
flags.h | 58 static FlagValue New_STRING(const char* s) {
|
/external/libpcap/ |
pcap-win32.c | 871 char *new_string; local 877 new_string = (char*)malloc(len); 878 if (new_string != NULL) 881 strcpy_s(new_string, len, p->opt.device + strlen(PCAP_SRC_IF_STRING)); 883 p->opt.device = new_string; [all...] |