Home
last modified time | relevance | path

Searched refs:strs (Results 1 – 25 of 25) sorted by relevance

/external/stlport/test/unit/
Dcollate_facets_test.cpp58 string strs[] = {"abdd", "ab�d", "abbd", "abcd"}; in collate_facet() local
62 transformed[i] = col.transform(strs[i].data(), strs[i].data() + strs[i].size()); in collate_facet()
65 sort(strs, strs + 4, loc); in collate_facet()
66 CPPUNIT_ASSERT( strs[0] == "abbd" ); in collate_facet()
67 CPPUNIT_ASSERT( strs[1] == "abcd" ); in collate_facet()
68 CPPUNIT_ASSERT( strs[2] == "ab�d" ); in collate_facet()
69 CPPUNIT_ASSERT( strs[3] == "abdd" ); in collate_facet()
73 …CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data() + strs[0].size()) == transformed[0] ); in collate_facet()
74 …CPPUNIT_ASSERT( col.transform(strs[1].data(), strs[1].data() + strs[1].size()) == transformed[1] ); in collate_facet()
75 …CPPUNIT_ASSERT( col.transform(strs[2].data(), strs[2].data() + strs[2].size()) == transformed[2] ); in collate_facet()
[all …]
Dmvctor_test.cpp625 vector<string> strs; in vector_test() local
630 strs.push_back(it->front()); in vector_test()
639 CPPUNIT_ASSERT( strs.size() == 10 * 10 ); in vector_test()
640 vector<string>::iterator it(strs.begin()), itEnd(strs.end()); in vector_test()
654 vector<string> strs; in vector_test() local
659 strs.push_back(it->front()); in vector_test()
668 CPPUNIT_ASSERT( strs.size() == 10 * 10 ); in vector_test()
669 vector<string>::iterator it(strs.begin()), itEnd(strs.end()); in vector_test()
678 vector<string> strs; in vector_test() local
683 strs.push_back(it->front()); in vector_test()
[all …]
/external/chromium_org/third_party/icu/source/tools/toolutil/
Ddbgutil.cpp23 static UnicodeString **strs = NULL; variable
36 if(strs != NULL) { in udbg_cleanup()
38 delete [] strs[t]; in udbg_cleanup()
40 delete[] strs; in udbg_cleanup()
41 strs = NULL; in udbg_cleanup()
57 if(strs == NULL) { in udbg_setup()
71 strs = newStrs; in udbg_setup()
78 if(strs == NULL ) { in udbg_enumString()
85 return strs[UDBG_ENUM_COUNT][0]; in udbg_enumString()
91 return strs[type][count]; in udbg_enumString()
[all …]
/external/icu4c/tools/toolutil/
Ddbgutil.cpp23 static UnicodeString **strs = NULL; variable
36 if(strs != NULL) { in udbg_cleanup()
38 delete [] strs[t]; in udbg_cleanup()
40 delete[] strs; in udbg_cleanup()
41 strs = NULL; in udbg_cleanup()
57 if(strs == NULL) { in udbg_setup()
71 strs = newStrs; in udbg_setup()
78 if(strs == NULL ) { in udbg_enumString()
85 return strs[UDBG_ENUM_COUNT][0]; in udbg_enumString()
91 return strs[type][count]; in udbg_enumString()
[all …]
/external/marisa-trie/tests/
Dtrie-test.cc168 std::vector<std::string> strs; in TestTrie() local
169 ASSERT(trie.predict("a", &ids, &strs) == 3); in TestTrie()
174 ASSERT(strs[0] == "app"); in TestTrie()
175 ASSERT(strs[1] == "apple"); in TestTrie()
176 ASSERT(strs[2] == "and"); in TestTrie()
353 std::vector<std::string> strs; in TestPrefixTrie() local
354 ASSERT(trie.predict("ca", &ids, &strs, 1) == 1); in TestPrefixTrie()
357 ASSERT(strs.size() == 1); in TestPrefixTrie()
358 ASSERT(strs[0] == "car"); in TestPrefixTrie()
360 ASSERT(trie.predict_callback("", PredictCallback(&ids, &strs)) == 4); in TestPrefixTrie()
[all …]
/external/marisa-trie/v0_1_5/tests/
Dtrie-test.cc170 std::vector<std::string> strs; in TestTrie() local
171 ASSERT(trie.predict("a", &ids, &strs) == 3); in TestTrie()
176 ASSERT(strs[0] == "app"); in TestTrie()
177 ASSERT(strs[1] == "apple"); in TestTrie()
178 ASSERT(strs[2] == "and"); in TestTrie()
355 std::vector<std::string> strs; in TestPrefixTrie() local
356 ASSERT(trie.predict("ca", &ids, &strs, 1) == 1); in TestPrefixTrie()
359 ASSERT(strs.size() == 1); in TestPrefixTrie()
360 ASSERT(strs[0] == "car"); in TestPrefixTrie()
362 ASSERT(trie.predict_callback("", PredictCallback(&ids, &strs)) == 4); in TestPrefixTrie()
[all …]
/external/smack/src/org/jivesoftware/smackx/workgroup/util/
DModelUtil.java151 public static final String concat(String[] strs) { in concat() argument
152 return concat(strs, " "); //NOTRANS in concat()
163 public static final String concat(String[] strs, String delim) { in concat() argument
164 if (strs != null) { in concat()
166 final int n = strs.length; in concat()
168 final String str = strs[i]; in concat()
/external/dropbear/libtomcrypt/testprof/
Dder_tests.c23 unsigned char strs[10][10], outbuf[128]; in der_set_test() local
41 LTC_SET_ASN1(list, 0, LTC_ASN1_BIT_STRING, strs[1], sizeof(strs[1])); in der_set_test()
43 LTC_SET_ASN1(list, 2, LTC_ASN1_OCTET_STRING, strs[0], sizeof(strs[0])); in der_set_test()
51 if (memcmp(strs[0], oct_str, sizeof(oct_str))) { in der_set_test()
56 if (memcmp(strs[1], bin_str, sizeof(bin_str))) { in der_set_test()
66 strcpy((char*)strs[0], "one"); in der_set_test()
67 strcpy((char*)strs[1], "one2"); in der_set_test()
68 strcpy((char*)strs[2], "two"); in der_set_test()
69 strcpy((char*)strs[3], "aaa"); in der_set_test()
70 strcpy((char*)strs[4], "aaaa"); in der_set_test()
[all …]
/external/clang/test/CodeGenCXX/
Dnoinline-template.cpp14 Vector<int> strs; in foo() local
15 strs.growStorageBy(); in foo()
/external/marisa-trie/v0_1_5/lib/marisa_alpha/
Dtrie-build.cc277 Vector<String> strs; in build_next() local
278 strs.resize(keys.size()); in build_next()
279 for (UInt32 i = 0; i < strs.size(); ++i) { in build_next()
280 strs[i] = keys[i].str(); in build_next()
282 tail_.build(strs, terminals, progress.tail()); in build_next()
300 Vector<String> strs; in build_next() local
301 strs.resize(rkeys.size()); in build_next()
302 for (UInt32 i = 0; i < strs.size(); ++i) { in build_next()
303 strs[i] = String(rkeys[i].str().ptr(), rkeys[i].str().length()); in build_next()
305 tail_.build(strs, terminals, progress.tail()); in build_next()
/external/marisa-trie/lib/marisa/
Dtrie-build.cc263 Vector<String> strs; in build_next() local
264 strs.resize(keys.size()); in build_next()
265 for (UInt32 i = 0; i < strs.size(); ++i) { in build_next()
266 strs[i] = keys[i].str(); in build_next()
268 tail_.build(strs, terminals, progress.tail()); in build_next()
286 Vector<String> strs; in build_next() local
287 strs.resize(rkeys.size()); in build_next()
288 for (UInt32 i = 0; i < strs.size(); ++i) { in build_next()
289 strs[i] = String(rkeys[i].str().ptr(), rkeys[i].str().length()); in build_next()
291 tail_.build(strs, terminals, progress.tail()); in build_next()
/external/clang/tools/arcmt-test/
Darcmt-test.cpp251 SmallVector<StringRef, 8> strs; in verifyTransformedFiles() local
252 inputBuf->getBuffer().split(strs, "\n", /*MaxSplit=*/-1, /*KeepEmpty=*/false); in verifyTransformedFiles()
254 if (strs.empty()) { in verifyTransformedFiles()
258 if (strs.size() % 2 != 0) { in verifyTransformedFiles()
263 for (unsigned i = 0, e = strs.size(); i != e; i += 2) { in verifyTransformedFiles()
264 StringRef inputOrigFname = strs[i]; in verifyTransformedFiles()
265 StringRef inputResultFname = strs[i+1]; in verifyTransformedFiles()
/external/llvm/test/CodeGen/X86/
Dreverse_branches.ll18 %strs = alloca [1000 x [1001 x i8]], align 16
33 %arraydecay = getelementptr inbounds [1000 x [1001 x i8]]* %strs, i64 0, i64 %indvars.iv50, i64 0
35 …%add.ptr = getelementptr inbounds [1000 x [1001 x i8]]* %strs, i64 0, i64 %indvars.iv50, i64 %indv…
65 %arraydecay24 = getelementptr inbounds [1000 x [1001 x i8]]* %strs, i64 0, i64 %indvars.iv, i64 0
82 …%add.ptr30 = getelementptr inbounds [1000 x [1001 x i8]]* %strs, i64 0, i64 %indvars.iv, i64 %indv…
/external/chromium_org/chrome/third_party/chromevox/chromevox/background/mathmaps/
Dmath_map.js174 var strs = cvox.MathMap.loadFiles(files);
176 return [].concat.apply([], strs.map(
/external/clang/test/CodeGen/
Dstaticinit.c14 static char* strs[] = { "one", "two", "three", "four" }; in f() local
/external/chromium_org/chromeos/dbus/
Dshill_client_unittest_base.cc213 std::vector<std::string> strs; in ExpectArrayOfStringsArgument() local
214 ASSERT_TRUE(reader->PopArrayOfStrings(&strs)); in ExpectArrayOfStringsArgument()
215 EXPECT_EQ(expected_strings, strs); in ExpectArrayOfStringsArgument()
/external/chromium_org/third_party/icu/source/common/
Duloc.c2273 char **strs; in uloc_acceptLanguageFromHTTP() local
2377 strs = uprv_malloc((size_t)(sizeof(strs[0])*n)); in uloc_acceptLanguageFromHTTP()
2379 if (strs == NULL) { in uloc_acceptLanguageFromHTTP()
2388 strs[i]=j[i].locale; in uloc_acceptLanguageFromHTTP()
2391 (const char**)strs, n, availableLocales, status); in uloc_acceptLanguageFromHTTP()
2393 uprv_free(strs[i]); in uloc_acceptLanguageFromHTTP()
2395 uprv_free(strs); in uloc_acceptLanguageFromHTTP()
/external/icu4c/common/
Duloc.cpp2251 char **strs; in uloc_acceptLanguageFromHTTP() local
2355 strs = static_cast<char **>(uprv_malloc((size_t)(sizeof(strs[0])*n))); in uloc_acceptLanguageFromHTTP()
2357 if (strs == NULL) { in uloc_acceptLanguageFromHTTP()
2366 strs[i]=j[i].locale; in uloc_acceptLanguageFromHTTP()
2369 (const char**)strs, n, availableLocales, status); in uloc_acceptLanguageFromHTTP()
2371 uprv_free(strs[i]); in uloc_acceptLanguageFromHTTP()
2373 uprv_free(strs); in uloc_acceptLanguageFromHTTP()
/external/elfutils/libcpu/
Di386_parse.y890 static void *strs[3]; variable
925 if (tfind (&search, &strs[i], compare_argstring) == NULL) in find_numbers()
930 if (tsearch (newp, &strs[i], compare_argstring) == NULL) in find_numbers()
1178 twalk (strs[i], print_op_str); in instrtable_out()
1183 twalk (strs[i], print_op_str_idx); in instrtable_out()
1220 struct argstring **res = tfind (&search, &strs[i], in instrtable_out()
Di386_parse.c2492 static void *strs[3]; variable
2527 if (tfind (&search, &strs[i], compare_argstring) == NULL) in find_numbers()
2532 if (tsearch (newp, &strs[i], compare_argstring) == NULL) in find_numbers()
2780 twalk (strs[i], print_op_str); in instrtable_out()
2785 twalk (strs[i], print_op_str_idx); in instrtable_out()
2822 struct argstring **res = tfind (&search, &strs[i], in instrtable_out()
/external/valgrind/main/coregrind/m_debuginfo/
Dreadmacho.c846 UChar *strs; in ML_() local
863 strs = (UChar *)(ii.macho_img + symcmd->stroff); in ML_()
883 strs, symcmd->strsize); in ML_()
888 strs, symcmd->strsize); in ML_()
/external/chromium_org/third_party/icu/source/test/intltest/
Ddtfmttst.cpp3225 UnicodeString strf, strl, strm, strs; in Test6726() local
3246 strs = fmts->format(dt, strs); in Test6726()
3261 logln("strs.charAt(10)=%04X wanted 0x20\n", strs.charAt(8)); in Test6726()
3262 if (strs.charAt(8) != UChar(0x0020)) { in Test6726()
3263 errln((UnicodeString)"FAIL: Improper formatted date: " + strs); in Test6726()
/external/icu4c/test/intltest/
Ddtfmttst.cpp3517 UnicodeString strf, strl, strm, strs; in Test6726() local
3538 strs = fmts->format(dt, strs); in Test6726()
3545 logln("strs.charAt(10)=%04X wanted 0x20\n", strs.charAt(8)); in Test6726()
3546 if (strs.charAt(10) != UChar(0x0020)) { in Test6726()
3547 errln((UnicodeString)"FAIL: Improper formatted date: " + strs); in Test6726()
/external/chromium_org/third_party/sqlite/src/src/
Dtest_osinst.c1111 static const char *strs[] = { "annotate", "finalize", "new", "register", 0 }; in test_vfslog() local
1119 if( Tcl_GetIndexFromObj(interp, objv[1], strs, "sub-command", 0, &iSub) ){ in test_vfslog()
/external/llvm/test/Transforms/InstSimplify/
Dcompare.ll714 %strs = alloca [1000 x [1001 x i8]], align 16
715 %x = getelementptr inbounds [1000 x [1001 x i8]]* %strs, i64 0, i64 %a, i64 %b