Home
last modified time | relevance | path

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

12345678910>>...227

/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
Diter_iter_iter_iter.pass.cpp37 const char* str = "12345678901234567890"; variable
42 test(S(""), 0, 0, str, str+0, S("")); in test0()
43 test(S(""), 0, 0, str, str+0, S("")); in test0()
44 test(S(""), 0, 0, str, str+1, S("1")); in test0()
45 test(S(""), 0, 0, str, str+2, S("12")); in test0()
46 test(S(""), 0, 0, str, str+4, S("1234")); in test0()
47 test(S(""), 0, 0, str, str+5, S("12345")); in test0()
48 test(S(""), 0, 0, str, str+0, S("")); in test0()
49 test(S(""), 0, 0, str, str+1, S("1")); in test0()
50 test(S(""), 0, 0, str, str+5, S("12345")); in test0()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/
Dget_long.pass.cpp50 const char str[] = "123"; in main() local
55 f.get(input_iterator<const char*>(str), in main()
56 input_iterator<const char*>(str+sizeof(str)), in main()
58 assert(iter.base() == str+3); in main()
63 const char str[] = "-123"; in main() local
68 f.get(input_iterator<const char*>(str), in main()
69 input_iterator<const char*>(str+sizeof(str)), in main()
71 assert(iter.base() == str+4); in main()
76 const char str[] = "123"; in main() local
80 f.get(input_iterator<const char*>(str), in main()
[all …]
Dget_long_double.pass.cpp41 const char str[] = "123"; in main() local
46 f.get(input_iterator<const char*>(str), in main()
47 input_iterator<const char*>(str+sizeof(str)), in main()
49 assert(iter.base() == str+sizeof(str)-1); in main()
54 const char str[] = "-123"; in main() local
57 f.get(input_iterator<const char*>(str), in main()
58 input_iterator<const char*>(str+sizeof(str)), in main()
60 assert(iter.base() == str+sizeof(str)-1); in main()
65 const char str[] = "123.5"; in main() local
68 f.get(input_iterator<const char*>(str), in main()
[all …]
Dget_double.pass.cpp56 const char str[] = "123"; in main() local
61 f.get(input_iterator<const char*>(str), in main()
62 input_iterator<const char*>(str+sizeof(str)), in main()
64 assert(iter.base() == str+sizeof(str)-1); in main()
69 const char str[] = "-123"; in main() local
72 f.get(input_iterator<const char*>(str), in main()
73 input_iterator<const char*>(str+sizeof(str)), in main()
75 assert(iter.base() == str+sizeof(str)-1); in main()
80 const char str[] = "123.5"; in main() local
83 f.get(input_iterator<const char*>(str), in main()
[all …]
Dget_float.pass.cpp41 const char str[] = "123"; in main() local
46 f.get(input_iterator<const char*>(str), in main()
47 input_iterator<const char*>(str+sizeof(str)), in main()
49 assert(iter.base() == str+sizeof(str)-1); in main()
54 const char str[] = "-123"; in main() local
57 f.get(input_iterator<const char*>(str), in main()
58 input_iterator<const char*>(str+sizeof(str)), in main()
60 assert(iter.base() == str+sizeof(str)-1); in main()
65 const char str[] = "123.5"; in main() local
68 f.get(input_iterator<const char*>(str), in main()
[all …]
Dget_bool.pass.cpp60 const char str[] = "1"; in main() local
64 f.get(input_iterator<const char*>(str), in main()
65 input_iterator<const char*>(str+sizeof(str)), in main()
67 assert(iter.base() == str+sizeof(str)-1); in main()
72 const char str[] = "0"; in main() local
76 f.get(input_iterator<const char*>(str), in main()
77 input_iterator<const char*>(str+sizeof(str)), in main()
79 assert(iter.base() == str+sizeof(str)-1); in main()
84 const char str[] = "12"; in main() local
88 f.get(input_iterator<const char*>(str), in main()
[all …]
/external/dbus/dbus/
Ddbus-string-util.c61 ap = real_a->str + (real_a->len - c_str_len); in _dbus_string_ends_with_c_str()
63 a_end = real_a->str + real_a->len; in _dbus_string_ends_with_c_str()
90 _dbus_string_find_byte_backward (const DBusString *str, in _dbus_string_find_byte_backward() argument
96 DBUS_CONST_STRING_PREAMBLE (str); in _dbus_string_find_byte_backward()
104 if (real->str[i] == byte) in _dbus_string_find_byte_backward()
228 DBusString str; in _dbus_string_test() local
241 if (!_dbus_string_init (&str)) in _dbus_string_test()
244 if (!_dbus_string_set_length (&str, lens[i])) in _dbus_string_test()
250 _dbus_assert (_dbus_string_get_length (&str) == j); in _dbus_string_test()
253 _dbus_string_shorten (&str, 1); in _dbus_string_test()
[all …]
Ddbus-marshal-validate-util.c51 DBusString str; in run_validity_tests() local
54 _dbus_string_init_const (&str, tests[i].data); in run_validity_tests()
56 v = (*func) (&str, 0, _dbus_string_get_length (&str)); in run_validity_tests()
108 DBusString str; in _dbus_marshal_validate_test() local
243 _dbus_string_init_const (&str, valid_paths[i]); in _dbus_marshal_validate_test()
245 if (!_dbus_validate_path (&str, 0, in _dbus_marshal_validate_test()
246 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test()
258 _dbus_string_init_const (&str, invalid_paths[i]); in _dbus_marshal_validate_test()
260 if (_dbus_validate_path (&str, 0, in _dbus_marshal_validate_test()
261 _dbus_string_get_length (&str))) in _dbus_marshal_validate_test()
[all …]
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_stacktrace_printer_test.cc20 InternalScopedString str(128); in TEST() local
21 RenderSourceLocation(&str, "/dir/file.cc", 10, 5, false, ""); in TEST()
22 EXPECT_STREQ("/dir/file.cc:10:5", str.data()); in TEST()
24 str.clear(); in TEST()
25 RenderSourceLocation(&str, "/dir/file.cc", 11, 0, false, ""); in TEST()
26 EXPECT_STREQ("/dir/file.cc:11", str.data()); in TEST()
28 str.clear(); in TEST()
29 RenderSourceLocation(&str, "/dir/file.cc", 0, 0, false, ""); in TEST()
30 EXPECT_STREQ("/dir/file.cc", str.data()); in TEST()
32 str.clear(); in TEST()
[all …]
/external/skia/src/utils/
DSkParse.cpp51 static const char* skip_ws(const char str[]) in skip_ws() argument
53 SkASSERT(str); in skip_ws()
54 while (is_ws(*str)) in skip_ws()
55 str++; in skip_ws()
56 return str; in skip_ws()
59 static const char* skip_sep(const char str[]) in skip_sep() argument
61 SkASSERT(str); in skip_sep()
62 while (is_sep(*str)) in skip_sep()
63 str++; in skip_sep()
64 return str; in skip_sep()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/
Dput_long_double_fr_FR.pass.cpp66 char str[100]; in main() local
67 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
69 std::string ex(str, iter.base()); in main()
74 char str[100]; in main() local
75 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
77 std::string ex(str, iter.base()); in main()
82 char str[100]; in main() local
83 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
85 std::string ex(str, iter.base()); in main()
90 char str[100]; in main() local
[all …]
Dput_long_double_en_US.pass.cpp64 char str[100]; in main() local
65 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
67 std::string ex(str, iter.base()); in main()
72 char str[100]; in main() local
73 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
75 std::string ex(str, iter.base()); in main()
80 char str[100]; in main() local
81 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
83 std::string ex(str, iter.base()); in main()
88 char str[100]; in main() local
[all …]
Dput_long_double_zh_CN.pass.cpp67 char str[100]; in main() local
68 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
70 std::string ex(str, iter.base()); in main()
75 char str[100]; in main() local
76 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
78 std::string ex(str, iter.base()); in main()
83 char str[100]; in main() local
84 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
86 std::string ex(str, iter.base()); in main()
91 char str[100]; in main() local
[all …]
Dput_long_double_ru_RU.pass.cpp72 char str[100]; in main() local
73 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
75 std::string ex(str, iter.base()); in main()
80 char str[100]; in main() local
81 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
83 std::string ex(str, iter.base()); in main()
88 char str[100]; in main() local
89 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
91 std::string ex(str, iter.base()); in main()
96 char str[100]; in main() local
[all …]
Dput_string_en_US.pass.cpp64 char str[100]; in main() local
65 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
67 std::string ex(str, iter.base()); in main()
72 char str[100]; in main() local
73 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
75 std::string ex(str, iter.base()); in main()
80 char str[100]; in main() local
81 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main()
83 std::string ex(str, iter.base()); in main()
88 char str[100]; in main() local
[all …]
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/
Dput2.pass.cpp36 char str[200]; in main() local
50 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'A'); in main()
51 std::string ex(str, iter.base()); in main()
55 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'a'); in main()
56 std::string ex(str, iter.base()); in main()
60 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'B'); in main()
61 std::string ex(str, iter.base()); in main()
65 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'b'); in main()
66 std::string ex(str, iter.base()); in main()
70 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'C'); in main()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/closure/string/
Dstring.js42 goog.string.startsWith = function(str, prefix) { argument
43 return str.lastIndexOf(prefix, 0) == 0;
53 goog.string.endsWith = function(str, suffix) { argument
54 var l = str.length - suffix.length;
55 return l >= 0 && str.indexOf(suffix, l) == l;
66 goog.string.caseInsensitiveStartsWith = function(str, prefix) { argument
68 prefix, str.substr(0, prefix.length)) == 0;
79 goog.string.caseInsensitiveEndsWith = function(str, suffix) { argument
81 suffix, str.substr(str.length - suffix.length, suffix.length)) == 0;
93 goog.string.subs = function(str, var_args) { argument
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
DStringExtensions.cs42 public static char charAt( string str, int index ) in charAt() argument
44 return str[index]; in charAt()
48 public static bool endsWith( string str, string value ) in endsWith() argument
50 return str.EndsWith( value ); in endsWith()
54 public static int indexOf( string str, char value ) in indexOf() argument
56 return str.IndexOf( value ); in indexOf()
60 public static int indexOf( string str, char value, int startIndex ) in indexOf() argument
62 return str.IndexOf( value, startIndex ); in indexOf()
66 public static int indexOf( string str, string value ) in indexOf() argument
68 return str.IndexOf( value ); in indexOf()
[all …]
/external/deqp/framework/egl/
DegluStrUtil.cpp30 std::ostream& operator<< (std::ostream& str, const ConfigAttribValueFmt& attribFmt) in operator <<() argument
35 return str << getColorBufferTypeStr(attribFmt.value); in operator <<()
38 return str << getConfigCaveatStr(attribFmt.value); in operator <<()
42 return str << getAPIBitsStr(attribFmt.value); in operator <<()
45 return str << getSurfaceBitsStr(attribFmt.value); in operator <<()
49 return str << "EGL_NONE"; in operator <<()
51 return str << tcu::toHex(attribFmt.value); in operator <<()
54 return str << getTransparentTypeStr(attribFmt.value); in operator <<()
59 return str << getBoolDontCareStr(attribFmt.value); in operator <<()
79 return str << (int)attribFmt.value; in operator <<()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DStringExtensions.cs43 public static char charAt( this string str, int index ) in charAt() argument
45 return str[index]; in charAt()
49 public static bool endsWith( this string str, string value ) in endsWith() argument
51 return str.EndsWith( value ); in endsWith()
55 public static int indexOf( this string str, char value ) in indexOf() argument
57 return str.IndexOf( value ); in indexOf()
61 public static int indexOf( this string str, char value, int startIndex ) in indexOf() argument
63 return str.IndexOf( value, startIndex ); in indexOf()
67 public static int indexOf( this string str, string value ) in indexOf() argument
69 return str.IndexOf( value ); in indexOf()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/
Dput_double.pass.cpp47 char str[200]; in test1() local
69 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
70 std::string ex(str, iter.base()); in test1()
77 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
78 std::string ex(str, iter.base()); in test1()
85 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
86 std::string ex(str, iter.base()); in test1()
93 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
94 std::string ex(str, iter.base()); in test1()
103 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
[all …]
Dput_long_double.pass.cpp52 char str[200]; in test1() local
74 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
75 std::string ex(str, iter.base()); in test1()
82 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
83 std::string ex(str, iter.base()); in test1()
90 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
91 std::string ex(str, iter.base()); in test1()
98 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
99 std::string ex(str, iter.base()); in test1()
108 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
[all …]
/external/ltrace/
Dread_config_file.c70 char **str,
76 char **str, struct param **extra_param,
81 char **str, struct param **extra_param,
85 char **str, struct arg_type_info **retp, int *ownp);
136 eat_spaces(char **str) { in eat_spaces() argument
137 while (**str == ' ') { in eat_spaces()
138 (*str)++; in eat_spaces()
143 xstrndup(char *str, size_t len) { in xstrndup() argument
149 strncpy(ret, str, len); in xstrndup()
155 parse_ident(struct locus *loc, char **str) in parse_ident() argument
[all …]
/external/deqp/framework/opengl/
DgluStrUtil.cpp33 std::ostream& operator<< (std::ostream& str, const BooleanPointerFmt& fmt) in operator <<() argument
37 str << "{ "; in operator <<()
41 str << ", "; in operator <<()
42 str << getBooleanStr(fmt.value[ndx]); in operator <<()
44 str << " }"; in operator <<()
45 return str; in operator <<()
48 return str << "(null)"; in operator <<()
52 std::ostream& operator<< (std::ostream& str, const EnumPointerFmt& fmt) in operator <<() argument
56 str << "{ "; in operator <<()
60 str << ", "; in operator <<()
[all …]
/external/pdfium/core/src/fxcrt/
Dfx_basic_gcc.cpp15 T FXSYS_StrToInt(const FX_CHAR* str) { in FXSYS_StrToInt() argument
17 if (!str) in FXSYS_StrToInt()
20 if (*str == '-') { in FXSYS_StrToInt()
22 str++; in FXSYS_StrToInt()
25 while (*str && std::isdigit(*str)) { in FXSYS_StrToInt()
29 num = num * 10 + FXSYS_toDecimalDigit(*str); in FXSYS_StrToInt()
30 str++; in FXSYS_StrToInt()
36 T FXSYS_StrToInt(const FX_WCHAR* str) { in FXSYS_StrToInt() argument
38 if (!str) in FXSYS_StrToInt()
41 if (*str == '-') { in FXSYS_StrToInt()
[all …]

12345678910>>...227