Home
last modified time | relevance | path

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

12345678910>>...33

/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/sources/cxx-stl/llvm-libc++/libcxx/src/
Dstring.cpp28 string
29 operator+<char, char_traits<char>, allocator<char> >(char const*, string const&);
36 void throw_helper( const string& msg ) in throw_helper()
46 void throw_from_string_out_of_range( const string& func ) in throw_from_string_out_of_range()
52 void throw_from_string_invalid_arg( const string& func ) in throw_from_string_invalid_arg()
62 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) in as_integer_helper()
82 as_integer(const string& func, const S& s, size_t* idx, int base);
88 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer()
100 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer()
108 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-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/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/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.cpp28 typedef std::unordered_map<int, std::string> C; in main()
29 typedef std::pair<int, std::string> P; in main()
34 typedef std::unordered_map<int, std::string> C; in main()
35 typedef std::pair<int, std::string> P; in main()
43 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
44 min_allocator<std::pair<const int, std::string>>> C; in main()
45 typedef std::pair<int, std::string> P; in main()
50 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
51 min_allocator<std::pair<const int, std::string>>> C; in main()
52 typedef std::pair<int, std::string> P; in main()
Dload_factor.pass.cpp28 typedef std::unordered_map<int, std::string> C; in main()
29 typedef std::pair<int, std::string> P; in main()
45 typedef std::unordered_map<int, std::string> C; in main()
46 typedef std::pair<int, std::string> P; in main()
52 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
53 min_allocator<std::pair<const int, std::string>>> C; in main()
54 typedef std::pair<int, std::string> P; in main()
70 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
71 min_allocator<std::pair<const int, std::string>>> C; in main()
72 typedef std::pair<int, std::string> P; in main()
Dbucket_count.pass.cpp27 typedef std::unordered_map<int, std::string> C; in main()
29 typedef std::pair<int, std::string> P; in main()
34 typedef std::unordered_map<int, std::string> C; in main()
36 typedef std::pair<int, std::string> P; in main()
53 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
54 min_allocator<std::pair<const int, std::string>>> C; in main()
56 typedef std::pair<int, std::string> P; in main()
61 typedef std::unordered_map<int, std::string, std::hash<int>, std::equal_to<int>, in main()
62 min_allocator<std::pair<const int, std::string>>> C; in main()
64 typedef std::pair<int, std::string> P; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multimap/
Dmax_load_factor.pass.cpp28 typedef std::unordered_multimap<int, std::string> C; in main()
29 typedef std::pair<int, std::string> P; in main()
34 typedef std::unordered_multimap<int, std::string> C; in main()
35 typedef std::pair<int, std::string> P; in main()
43 typedef std::unordered_multimap<int, std::string, std::hash<int>, std::equal_to<int>, in main()
44 min_allocator<std::pair<const int, std::string>>> C; in main()
45 typedef std::pair<int, std::string> P; in main()
50 typedef std::unordered_multimap<int, std::string, std::hash<int>, std::equal_to<int>, in main()
51 min_allocator<std::pair<const int, std::string>>> C; in main()
52 typedef std::pair<int, std::string> P; in main()
Dload_factor.pass.cpp28 typedef std::unordered_multimap<int, std::string> C; in main()
29 typedef std::pair<int, std::string> P; in main()
45 typedef std::unordered_multimap<int, std::string> C; in main()
46 typedef std::pair<int, std::string> P; in main()
52 typedef std::unordered_multimap<int, std::string, std::hash<int>, std::equal_to<int>, in main()
53 min_allocator<std::pair<const int, std::string>>> C; in main()
54 typedef std::pair<int, std::string> P; in main()
70 typedef std::unordered_multimap<int, std::string, std::hash<int>, std::equal_to<int>, in main()
71 min_allocator<std::pair<const int, std::string>>> C; in main()
72 typedef std::pair<int, std::string> P; in main()
/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 …]
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/units/detail/
Dutility.hpp34 std::string
46 std::string out(realname); in demangle()
55 return std::string("demangle :: error - unable to demangle specified symbol"); in demangle()
61 std::string simplify_typename(const L& /*source*/) in simplify_typename()
63 const std::string demangled = detail::demangle(typeid(L).name()); in simplify_typename()
81 std::string
90 std::string simplify_typename(const L& /*source*/) in simplify_typename()
92 return std::string(typeid(L).name()); in simplify_typename()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.submatch/re.submatch.members/
Dcompare_string_type.pass.cpp24 typedef SM::string_type string; in main() typedef
27 assert(sm.compare(string()) == 0); in main()
32 assert(sm.compare(string()) > 0); in main()
33 assert(sm.compare(string("123")) == 0); in main()
38 typedef SM::string_type string; in main() typedef
41 assert(sm.compare(string()) == 0); in main()
46 assert(sm.compare(string()) > 0); in main()
47 assert(sm.compare(string(L"123")) == 0); in main()

12345678910>>...33