Home
last modified time | relevance | path

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

12345678910>>...37

/ndk/tests/abcc/jni/host/
DAbcc_host.h37 std::string mIn;
38 std::string mOut;
39 std::string mNDKDir; // empty string if standalone mode
40 std::string mPlatform;
41 std::string mToolchainBinPath; // Used at ndk mode to prevent tedious path issue
42 std::map<std::string, std::string> mRuntimePath; // mappings of library name and full path
45 …HostBitcodeCompiler(const std::string &abi, const std::string &sysroot, const std::string &toolcha…
46 … const std::string &input, const std::string &output, const std::string &working_dir,
47 const std::string &platform, const bool savetemps, bool bit32 = true);
48 …HostBitcodeCompiler(const std::string &abi, const std::string &sysroot, const std::string &ndk_dir…
[all …]
DAbcc_host.cpp23 …itcodeCompiler::HostBitcodeCompiler(const std::string &abi, const std::string &sysroot, const std:… in HostBitcodeCompiler()
24 … const std::string &input, const std::string &output, const std::string &working_dir, in HostBitcodeCompiler()
25 … const std::string &platform, const bool savetemps, bool bit32) in HostBitcodeCompiler()
31 …::HostBitcodeCompiler(const std::string &abi, const std::string &sysroot, const std::string &ndk_d… in HostBitcodeCompiler()
32 … const std::string &input, const std::string &output, const std::string &working_dir, in HostBitcodeCompiler()
33 … const std::string &platform, const bool savetemps, bool bit32) in HostBitcodeCompiler()
50 const std::string HostBitcodeCompiler::getRuntimePath(const std::string &libname) { in getRuntimePath()
57 int HostBitcodeCompiler::parseLDFlags(BitcodeInfo &info, const std::string &orig_str) { in parseLDFlags()
62 std::string str; in parseLDFlags()
64 if (str.find("--sysroot") != std::string::npos) { in parseLDFlags()
[all …]
Dmain.cpp23 std::string &abi, std::string &ndk_dir, std::string &sysroot, in parseArguments()
24 … std::string &input, std::string &output, std::string &platform, bool &savetemps) { in parseArguments()
28 std::string arg = argv[idx++]; in parseArguments()
29 if (arg.find("--abi=") != std::string::npos) { in parseArguments()
33 if (arg.find("--ndk-dir=") != std::string::npos) { in parseArguments()
37 if (arg.find("--sysroot=") != std::string::npos) { in parseArguments()
41 if (arg.find("--platform=") != std::string::npos) { in parseArguments()
45 if (arg.find("--file") != std::string::npos) { in parseArguments()
68 std::string this_bin = argv[0]; in main()
69 std::string cwd; in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.traits/
Dlookup_collatename.pass.cpp34 test("NUL", std::string("\x00", 1)); in main()
35 test("alert", std::string("\x07")); in main()
36 test("backspace", std::string("\x08")); in main()
37 test("tab", std::string("\x09")); in main()
38 test("carriage-return", std::string("\x0D")); in main()
39 test("newline", std::string("\x0A")); in main()
40 test("vertical-tab", std::string("\x0B")); in main()
41 test("form-feed", std::string("\x0C")); in main()
42 test("space", std::string(" ")); in main()
43 test("exclamation-mark", std::string("!")); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.regex/re.regex.construct/
Dstring_flg.pass.cpp32 test(std::string("\\(a\\)"), std::regex_constants::basic, 1); in main()
33 test(std::string("\\(a[bc]\\)"), std::regex_constants::basic, 1); in main()
34 test(std::string("\\(a\\([bc]\\)\\)"), std::regex_constants::basic, 2); in main()
35 test(std::string("(a([bc]))"), std::regex_constants::basic, 0); in main()
37 test(std::string("\\(a\\)"), std::regex_constants::extended, 0); in main()
38 test(std::string("\\(a[bc]\\)"), std::regex_constants::extended, 0); in main()
39 test(std::string("\\(a\\([bc]\\)\\)"), std::regex_constants::extended, 0); in main()
40 test(std::string("(a([bc]))"), std::regex_constants::extended, 2); in main()
42 test(std::string("\\(a\\)"), std::regex_constants::ECMAScript, 0); in main()
43 test(std::string("\\(a[bc]\\)"), std::regex_constants::ECMAScript, 0); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.replace/
Dtest3.pass.cpp27 std::string phone_book("555-1234, 555-2345, 555-3456"); in main()
28 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
29 std::string("123-$&")); in main()
34 std::string phone_book("555-1234, 555-2345, 555-3456"); in main()
35 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
36 std::string("123-$&"), in main()
42 std::string phone_book("555-1234, 555-2345, 555-3456"); in main()
43 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
44 std::string("123-&"), in main()
50 std::string phone_book("555-1234, 555-2345, 555-3456"); in main()
[all …]
Dtest5.pass.cpp28 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
29 std::string("123-$&")); in main()
35 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
36 std::string("123-$&"), in main()
43 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
44 std::string("123-&"), in main()
51 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
52 std::string("123-$&"), in main()
59 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
60 std::string("123-$&"), in main()
[all …]
Dtest4.pass.cpp26 std::string phone_book("555-1234, 555-2345, 555-3456"); in main()
27 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
33 std::string phone_book("555-1234, 555-2345, 555-3456"); in main()
34 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
41 std::string phone_book("555-1234, 555-2345, 555-3456"); in main()
42 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
49 std::string phone_book("555-1234, 555-2345, 555-3456"); in main()
50 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
57 std::string phone_book("555-1234, 555-2345, 555-3456"); in main()
58 std::string r = std::regex_replace(phone_book, phone_numbers, in main()
[all …]
/ndk/sources/third_party/googletest/googletest/test/
Dgtest-filepath_test.cc103 EXPECT_EQ(GTEST_PATH_SEP_, cwd.string());
123 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST()
129 FilePath("afile").RemoveDirectoryName().string()); in TEST()
135 FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().string()); in TEST()
141 FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().string()); in TEST()
147 FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().string()); in TEST()
154 .RemoveDirectoryName().string()); in TEST()
164 EXPECT_EQ("afile", FilePath("/afile").RemoveDirectoryName().string()); in TEST()
169 EXPECT_EQ("", FilePath("adir/").RemoveDirectoryName().string()); in TEST()
174 EXPECT_EQ("afile", FilePath("adir/afile").RemoveDirectoryName().string()); in TEST()
[all …]
Dgtest-options_test.cc81 EXPECT_EQ(GetAbsolutePathOf(FilePath("test_detail.xml")).string(), in TEST()
87 EXPECT_EQ(GetAbsolutePathOf(FilePath("filename.abc")).string(), in TEST()
93 const std::string expected_output_file = in TEST()
95 FilePath(std::string("path") + GTEST_PATH_SEP_ + in TEST()
96 GetCurrentExecutableName().string() + ".xml")).string(); in TEST()
97 const std::string& output_file = in TEST()
107 const std::string exe_str = GetCurrentExecutableName().string(); in TEST()
133 EXPECT_NE(original_working_dir_.string(), in SetUp()
134 FilePath::GetCurrentDir().string()); in SetUp()
138 posix::ChDir(original_working_dir_.string().c_str()); in TearDown()
[all …]
/ndk/tests/abcc/jni/
DAbcc.h62 TargetAbi(const std::string &abi);
110 typedef std::map<std::string/*soname*/, BitcodeInfo> SONameMap;
115 BitcodeInfo(const std::string &bc);
121 std::string mBCPath;
122 std::string mTargetBCPath;
123 std::string mObjPath;
124 std::string mOutPath;
125 std::string mSOName;
126 std::string mLDFlags; // --no-undefined, ...
127 std::string mLDLocalLibsStr; // i.e.: ./obj/local/.../libxxx.a
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/
Dstring.cpp31 string
32 operator+<char, char_traits<char>, allocator<char> >(char const*, string const&);
39 void throw_helper( const string& msg ) in throw_helper()
50 void throw_from_string_out_of_range( const string& func ) in throw_from_string_out_of_range()
56 void throw_from_string_invalid_arg( const string& func ) in throw_from_string_invalid_arg()
66 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) in as_integer_helper()
86 as_integer(const string& func, const S& s, size_t* idx, int base);
92 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer()
104 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer()
112 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/
Dput2.pass.cpp49 std::string ex(str, iter.base()); in main()
54 std::string ex(str, iter.base()); in main()
59 std::string ex(str, iter.base()); in main()
64 std::string ex(str, iter.base()); in main()
69 std::string ex(str, iter.base()); in main()
74 std::string ex(str, iter.base()); in main()
79 std::string ex(str, iter.base()); in main()
84 std::string ex(str, iter.base()); in main()
89 std::string ex(str, iter.base()); in main()
94 std::string ex(str, iter.base()); in main()
[all …]
/ndk/tests/device/test-stlport/unit/
Dstring_test.cpp140 static string func(const string& par) { in func()
141 string tmp( par ); in func()
152 string s( "qyweyuewunfkHBUKGYUGL,wehbYGUW^(@T@H!BALWD:h^&@#*@(#:JKHWJ:CND" ); in f()
155 string sx = func( s ); in f()
173 string s((size_t)-1, 'a'); in constructor()
187 string s( "message" ); in trivial_char_compare()
195 string s; in reserve()
256 string const ref_short_str1("str1"), ref_short_str2("str2"); in short_string()
257 string short_str1(ref_short_str1), short_str2(ref_short_str2); in short_string()
258 string const ref_long_str1("str 1"); in short_string()
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dstring_test.cpp140 static string func(const string& par) { in func()
141 string tmp( par ); in func()
152 string s( "qyweyuewunfkHBUKGYUGL,wehbYGUW^(@T@H!BALWD:h^&@#*@(#:JKHWJ:CND" ); in f()
155 string sx = func( s ); in f()
173 string s((size_t)-1, 'a'); in constructor()
187 string s( "message" ); in trivial_char_compare()
195 string s; in reserve()
256 string const ref_short_str1("str1"), ref_short_str2("str2"); in short_string()
257 string short_str1(ref_short_str1), short_str2(ref_short_str2); in short_string()
258 string const ref_long_str1("str 1"); in short_string()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.virtuals/
Doverflow.pass.cpp25 assert(sb.str() == std::string("1bc")); in main()
27 assert(sb.str() == std::string("12c")); in main()
29 assert(sb.str() == std::string("123")); in main()
31 assert(sb.str() == std::string("1234")); in main()
33 assert(sb.str() == std::string("12345")); in main()
35 assert(sb.str() == std::string("123456")); in main()
37 assert(sb.str() == std::string("1234567")); in main()
39 assert(sb.str() == std::string("12345678")); in main()
41 assert(sb.str() == std::string("123456789")); in main()
43 assert(sb.str() == std::string("1234567890")); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.map/
Dmax_load_factor.pass.cpp32 typedef std::unordered_map<int, std::string> C; in main()
33 typedef std::pair<int, std::string> P; in main()
38 typedef std::unordered_map<int, std::string> C; in main()
39 typedef std::pair<int, std::string> P; in main()
47 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
48 min_allocator<std::pair<const int, std::string>>> C; in main()
49 typedef std::pair<int, std::string> P; in main()
54 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
55 min_allocator<std::pair<const int, std::string>>> C; in main()
56 typedef std::pair<int, std::string> P; in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multimap/
Dmax_load_factor.pass.cpp32 typedef std::unordered_multimap<int, std::string> C; in main()
33 typedef std::pair<int, std::string> P; in main()
38 typedef std::unordered_multimap<int, std::string> C; in main()
39 typedef std::pair<int, std::string> P; in main()
47 typedef std::unordered_multimap<int, std::string, std::hash<int>, std::equal_to<int>, in main()
48 min_allocator<std::pair<const int, std::string>>> C; in main()
49 typedef std::pair<int, std::string> P; in main()
54 typedef std::unordered_multimap<int, std::string, std::hash<int>, std::equal_to<int>, in main()
55 min_allocator<std::pair<const int, std::string>>> C; in main()
56 typedef std::pair<int, std::string> P; in main()
[all …]
/ndk/tests/abcc/jni/device/
DAbcc_device.cpp41 DeviceBitcodeCompiler::DeviceBitcodeCompiler(const std::string &working_dir, const std::string &sys… in DeviceBitcodeCompiler()
46 std::string cmd("echo "); in cleanupPost()
63 int DeviceBitcodeCompiler::parseLDFlags(BitcodeInfo &info, const std::string &orig_str) { in parseLDFlags()
65 std::string str; in parseLDFlags()
67 if (str.find("--sysroot") != std::string::npos) { in parseLDFlags()
100 std::vector<std::string> bc_files,lib_files; in getBitcodeFiles()
109 std::string filename(entry->d_name); in getBitcodeFiles()
110 std::string full_path = mWorkingDir + "/" + filename; in getBitcodeFiles()
114 std::string libpath = mSysroot + "/usr/lib/" + filename.substr(0, filename.rfind('.')) + ".so"; in getBitcodeFiles()
154 for (std::vector<std::string>::const_iterator i = lib_files.begin(), in getBitcodeFiles()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/
Dput_double.pass.cpp42 virtual std::string do_grouping() const {return std::string("\1\2\3");} in do_grouping()
70 std::string ex(str, iter.base()); in test1()
78 std::string ex(str, iter.base()); in test1()
86 std::string ex(str, iter.base()); in test1()
94 std::string ex(str, iter.base()); in test1()
104 std::string ex(str, iter.base()); in test1()
112 std::string ex(str, iter.base()); in test1()
120 std::string ex(str, iter.base()); in test1()
128 std::string ex(str, iter.base()); in test1()
141 std::string ex(str, iter.base()); in test1()
[all …]
Dput_long_double.pass.cpp42 virtual std::string do_grouping() const {return std::string("\1\2\3");} in do_grouping()
70 std::string ex(str, iter.base()); in test1()
78 std::string ex(str, iter.base()); in test1()
86 std::string ex(str, iter.base()); in test1()
94 std::string ex(str, iter.base()); in test1()
104 std::string ex(str, iter.base()); in test1()
112 std::string ex(str, iter.base()); in test1()
120 std::string ex(str, iter.base()); in test1()
128 std::string ex(str, iter.base()); in test1()
141 std::string ex(str, iter.base()); in test1()
[all …]
/ndk/sources/host-tools/sed-4.2.1/testsuite/
Dtst-rxspencer.c168 check_match (regmatch_t *rm, int idx, const char *string, in check_match() argument
193 if (strncmp (string + rm[idx].rm_so, match + 1, strlen (match + 1) in check_match()
203 || strncmp (string + rm[idx].rm_so, match, in check_match()
214 test (const char *pattern, int cflags, const char *string, int eflags, in test() argument
238 if (strcmp (string, codes[i].name)) in test()
241 fail, codes[i].name, string); in test()
264 if (strcmp (string, "EMPTY") == 0) in test()
271 if (regexec (&re, string, 10, rm, eflags)) in test()
291 ret = check_match (rm, 0, string, expect, fail); in test()
305 ret = check_match (rm, n, string, matches ? matches : "-", fail); in test()
[all …]
Dtst-boost.c85 char *pattern, *string; in main() local
150 string = p + strspn (p, " \t"); in main()
151 if (*string == '\0') in main()
153 if (*string == '"') in main()
155 string++; in main()
156 p = strchr (string, '"'); in main()
163 p = string + strcspn (string, " \t"); in main()
164 if (*string == '!') in main()
165 string = NULL; in main()
173 if (string != NULL) in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.submatch/re.submatch.op/
Dcompare.pass.cpp223 typedef std::basic_string<CharT> string; in test() typedef
224 typedef std::sub_match<typename string::const_iterator> sub_match; in test()
263 assert((x[0] == sm2) == (string(1, x[0]) == y)); in test()
264 assert((x[0] != sm2) == (string(1, x[0]) != y)); in test()
265 assert((x[0] < sm2) == (string(1, x[0]) < y)); in test()
266 assert((x[0] > sm2) == (string(1, x[0]) > y)); in test()
267 assert((x[0] <= sm2) == (string(1, x[0]) <= y)); in test()
268 assert((x[0] >= sm2) == (string(1, x[0]) >= y)); in test()
269 assert((sm1 == y[0]) == (x == string(1, y[0]))); in test()
270 assert((sm1 != y[0]) == (x != string(1, y[0]))); in test()
[all …]
/ndk/sources/host-tools/make-3.81/glob/
Dfnmatch.c103 # define IS_CHAR_CLASS(string) __wctype (string) argument
105 # define IS_CHAR_CLASS(string) wctype (string) argument
110 # define IS_CHAR_CLASS(string) \ argument
111 (STREQ (string, "alpha") || STREQ (string, "upper") \
112 || STREQ (string, "lower") || STREQ (string, "digit") \
113 || STREQ (string, "alnum") || STREQ (string, "xdigit") \
114 || STREQ (string, "space") || STREQ (string, "print") \
115 || STREQ (string, "punct") || STREQ (string, "graph") \
116 || STREQ (string, "cntrl") || STREQ (string, "blank"))
153 static int internal_fnmatch __P ((const char *pattern, const char *string,
[all …]

12345678910>>...37