Home
last modified time | relevance | path

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

12345678910>>...30

/ndk/sources/cxx-stl/llvm-libc++/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++/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++/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/cxx-stl/llvm-libc++/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++/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++/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++/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/sources/cxx-stl/llvm-libc++/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()
/ndk/sources/cxx-stl/llvm-libc++/test/input.output/iostreams.base/ios.base/ios.types/ios_failure/
Dctor_string_error_code.pass.cpp23 std::string what_arg("io test message"); in main()
26 std::string what_message(se.what()); in main()
27 assert(what_message.find(what_arg) != std::string::npos); in main()
28 assert(what_message.find("Is a directory") != std::string::npos); in main()
31 std::string what_arg("io test message"); in main()
34 std::string what_message(se.what()); in main()
35 assert(what_message.find(what_arg) != std::string::npos); in main()
37 (std::io_errc::stream))) != std::string::npos); in main()
Dctor_char_pointer_error_code.pass.cpp23 std::string what_arg("io test message"); in main()
26 std::string what_message(se.what()); in main()
27 assert(what_message.find(what_arg) != std::string::npos); in main()
28 assert(what_message.find("Is a directory") != std::string::npos); in main()
31 std::string what_arg("io test message"); in main()
34 std::string what_message(se.what()); in main()
35 assert(what_message.find(what_arg) != std::string::npos); in main()
37 (std::io_errc::stream))) != std::string::npos); in main()
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_numpunct.h51 typedef string string_type;
58 string grouping() const { return do_grouping(); } in grouping()
59 string truename() const { return do_truename(); } in truename()
60 string falsename() const { return do_falsename(); } in falsename()
69 virtual string do_grouping() const;
70 virtual string do_truename() const;
71 virtual string do_falsename() const;
87 string grouping() const { return do_grouping(); } in grouping()
98 virtual string do_grouping() const;
110 typedef string string_type;
[all …]
D_stdexcept.h34 logic_error(const string& __s) : __Named_exception(__s) {} in logic_error()
42 runtime_error(const string& __s) : __Named_exception(__s) {} in runtime_error()
50 domain_error(const string& __arg) : logic_error(__arg) {} in domain_error()
58 invalid_argument(const string& __arg) : logic_error(__arg) {} in invalid_argument()
66 length_error(const string& __arg) : logic_error(__arg) {} in length_error()
74 out_of_range(const string& __arg) : logic_error(__arg) {} in out_of_range()
82 range_error(const string& __arg) : runtime_error(__arg) {} in range_error()
90 overflow_error(const string& __arg) : runtime_error(__arg) {} in overflow_error()
98 underflow_error(const string& __arg) : runtime_error(__arg) {} in underflow_error()
/ndk/sources/cxx-stl/llvm-libc++/src/
Dsystem_error.cpp44 string
47 return string(strerror(ev)); in message()
55 virtual string message(int ev) const;
64 string
69 return string("unspecified generic_category error"); in message()
86 virtual string message(int ev) const;
96 string
101 return string("unspecified system_category error"); in message()
125 string
133 string
[all …]
/ndk/sources/cxx-stl/stlport/src/
Dnumpunct.cpp28 string numpunct<char>::do_grouping() const { return string();} in do_grouping()
29 string numpunct<char>::do_truename() const { return "true";} in do_truename()
30 string numpunct<char>::do_falsename() const { return "false"; } in do_falsename()
36 string numpunct<wchar_t>::do_grouping() const { return string(); } in do_grouping()
/ndk/sources/cxx-stl/llvm-libc++/test/re/re.badexp/
Dregex_error.pass.cpp29 … assert(e.what() == std::string("The expression contained an invalid collating element name.")); in main()
34 … assert(e.what() == std::string("The expression contained an invalid character class name.")); in main()
39 … assert(e.what() == std::string("The expression contained an invalid escaped character, or a " in main()
45 assert(e.what() == std::string("The expression contained an invalid back reference.")); in main()
50 assert(e.what() == std::string("The expression contained mismatched [ and ].")); in main()
55 assert(e.what() == std::string("The expression contained mismatched ( and ).")); in main()
60 assert(e.what() == std::string("The expression contained mismatched { and }.")); in main()
65 … assert(e.what() == std::string("The expression contained an invalid range in a {} expression.")); in main()
70 assert(e.what() == std::string("The expression contained an invalid character range, " in main()
76 … assert(e.what() == std::string("There was insufficient memory to convert the expression into " in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/
Dput_string_en_US.pass.cpp48 std::string loc_name(LOCALE_en_US_UTF_8); in main()
61 std::string v = "0"; in main()
65 std::string ex(str, iter.base()); in main()
69 std::string v = "-1"; in main()
73 std::string ex(str, iter.base()); in main()
77 std::string v = "123456789"; in main()
81 std::string ex(str, iter.base()); in main()
85 std::string v = "-123456789"; in main()
89 std::string ex(str, iter.base()); in main()
93 std::string v = "0"; in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/re/re.results/re.results.acc/
Dstr.pass.cpp25 assert(m.str() == std::string(m[0])); in test()
26 assert(m.str(0) == std::string(m[0])); in test()
27 assert(m.str(1) == std::string(m[1])); in test()
28 assert(m.str(2) == std::string(m[2])); in test()
29 assert(m.str(3) == std::string(m[3])); in test()
30 assert(m.str(4) == std::string(m[4])); in test()

12345678910>>...30