Home
last modified time | relevance | path

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

12345678910>>...270

/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
Diter_iter_iter_iter.pass.cpp56 const char* str = "12345678901234567890"; variable
61 test(S(""), 0, 0, str, str+0, S("")); in test0()
62 test(S(""), 0, 0, str, str+0, S("")); in test0()
63 test(S(""), 0, 0, str, str+1, S("1")); in test0()
64 test(S(""), 0, 0, str, str+2, S("12")); in test0()
65 test(S(""), 0, 0, str, str+4, S("1234")); in test0()
66 test(S(""), 0, 0, str, str+5, S("12345")); in test0()
67 test(S(""), 0, 0, str, str+0, S("")); in test0()
68 test(S(""), 0, 0, str, str+1, S("1")); in test0()
69 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.cpp42 const char str[] = "123"; in main() local
47 f.get(input_iterator<const char*>(str), in main()
48 input_iterator<const char*>(str+sizeof(str)), in main()
50 assert(iter.base() == str+sizeof(str)-1); in main()
55 const char str[] = "-123"; in main() local
58 f.get(input_iterator<const char*>(str), in main()
59 input_iterator<const char*>(str+sizeof(str)), in main()
61 assert(iter.base() == str+sizeof(str)-1); in main()
66 const char str[] = "123.5"; in main() local
69 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.cpp42 const char str[] = "123"; in main() local
47 f.get(input_iterator<const char*>(str), in main()
48 input_iterator<const char*>(str+sizeof(str)), in main()
50 assert(iter.base() == str+sizeof(str)-1); in main()
55 const char str[] = "-123"; in main() local
58 f.get(input_iterator<const char*>(str), in main()
59 input_iterator<const char*>(str+sizeof(str)), in main()
61 assert(iter.base() == str+sizeof(str)-1); in main()
66 const char str[] = "123.5"; in main() local
69 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/protobuf/src/google/protobuf/util/internal/
Djson_stream_parser_test.cc145 StringPiece str = "true"; in TEST_F() local
146 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
148 DoTest(str, i); in TEST_F()
153 StringPiece str = "false"; in TEST_F() local
154 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
156 DoTest(str, i); in TEST_F()
161 StringPiece str = "null"; in TEST_F() local
162 for (int i = 0; i <= str.length(); ++i) { in TEST_F()
164 DoTest(str, i); in TEST_F()
170 StringPiece str = "{}"; in TEST_F() local
[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.cpp50 static const char* skip_ws(const char str[]) in skip_ws() argument
52 SkASSERT(str); in skip_ws()
53 while (is_ws(*str)) in skip_ws()
54 str++; in skip_ws()
55 return str; in skip_ws()
58 static const char* skip_sep(const char str[]) in skip_sep() argument
60 SkASSERT(str); in skip_sep()
61 while (is_sep(*str)) in skip_sep()
62 str++; in skip_sep()
63 return str; in skip_sep()
[all …]
/external/python/cpython2/Python/
Dmystrtoul.c95 PyOS_strtoul(register char *str, char **ptr, int base) in PyOS_strtoul() argument
102 while (*str && isspace(Py_CHARMASK(*str))) in PyOS_strtoul()
103 ++str; in PyOS_strtoul()
108 if (*str == '0') { in PyOS_strtoul()
109 ++str; in PyOS_strtoul()
110 if (*str == 'x' || *str == 'X') { in PyOS_strtoul()
112 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 16) { in PyOS_strtoul()
114 *ptr = str; in PyOS_strtoul()
117 ++str; in PyOS_strtoul()
119 } else if (*str == 'o' || *str == 'O') { in PyOS_strtoul()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/
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_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_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_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_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.cpp34 char str[200]; in main() local
48 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'A'); in main()
49 std::string ex(str, iter.base()); in main()
53 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'a'); in main()
54 std::string ex(str, iter.base()); in main()
58 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'B'); in main()
59 std::string ex(str, iter.base()); in main()
63 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'b'); in main()
64 std::string ex(str, iter.base()); in main()
68 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'C'); in main()
[all …]
/external/pdfium/core/fxcrt/
Dfx_basic_gcc.cpp15 IntType FXSYS_StrToInt(const CharType* str) { in FXSYS_StrToInt() argument
16 if (!str) in FXSYS_StrToInt()
20 bool neg = *str == '-'; in FXSYS_StrToInt()
21 if (neg || *str == '+') in FXSYS_StrToInt()
22 str++; in FXSYS_StrToInt()
25 while (*str && FXSYS_isDecimalDigit(*str)) { in FXSYS_StrToInt()
26 IntType val = FXSYS_toDecimalDigit(*str); in FXSYS_StrToInt()
40 str++; in FXSYS_StrToInt()
49 STR_T FXSYS_IntToStr(T value, STR_T str, int radix) { in FXSYS_IntToStr() argument
51 str[0] = 0; in FXSYS_IntToStr()
[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.cpp50 char str[200]; in test1() local
72 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
73 std::string ex(str, iter.base()); in test1()
80 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
81 std::string ex(str, iter.base()); in test1()
88 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
89 std::string ex(str, iter.base()); in test1()
96 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
97 std::string ex(str, iter.base()); in test1()
106 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
[all …]
Dput_long_double.pass.cpp55 char str[200]; in test1() local
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()
101 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
102 std::string ex(str, iter.base()); in test1()
111 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
[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/libxml2/python/tests/
Dserialize.py12 str = doc.serialize() variable
13 if str != """<?xml version="1.0"?>
18 str = doc.serialize("iso-8859-1") variable
19 if str != """<?xml version="1.0" encoding="iso-8859-1"?>
24 str = doc.serialize(format=1) variable
25 if str != """<?xml version="1.0"?>
32 str = doc.serialize("iso-8859-1", 1) variable
33 if str != """<?xml version="1.0" encoding="iso-8859-1"?>
45 str = root.serialize() variable
46 if str != """<root><foo>hello</foo></root>""":
[all …]
/external/python/cpython2/Lib/idlelib/
DPyParse.py10 sys.__stdout__.write(" ".join(map(str, stuff)) + "\n")
118 def set_str(self, str): argument
119 assert len(str) == 0 or str[-1] == '\n'
120 if type(str) is UnicodeType:
127 uniphooey = str
128 str = []
129 push = str.append
132 str = "".join(str)
133 self.str = str
149 str, pos = self.str, None
[all …]

12345678910>>...270