Home
last modified time | relevance | path

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

12345678910>>...126

/external/openssl/ssl/
Dssl_stat.c90 const char *str; in SSL_state_string_long() local
94 case SSL_ST_BEFORE: str="before SSL initialization"; break; in SSL_state_string_long()
95 case SSL_ST_ACCEPT: str="before accept initialization"; break; in SSL_state_string_long()
96 case SSL_ST_CONNECT: str="before connect initialization"; break; in SSL_state_string_long()
97 case SSL_ST_OK: str="SSL negotiation finished successfully"; break; in SSL_state_string_long()
98 case SSL_ST_RENEGOTIATE: str="SSL renegotiate ciphers"; break; in SSL_state_string_long()
99 case SSL_ST_BEFORE|SSL_ST_CONNECT: str="before/connect initialization"; break; in SSL_state_string_long()
100 case SSL_ST_OK|SSL_ST_CONNECT: str="ok/connect SSL initialization"; break; in SSL_state_string_long()
101 case SSL_ST_BEFORE|SSL_ST_ACCEPT: str="before/accept initialization"; break; in SSL_state_string_long()
102 case SSL_ST_OK|SSL_ST_ACCEPT: str="ok/accept SSL initialization"; break; in SSL_state_string_long()
[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()
123 test_max_len (DBusString *str, in test_max_len() argument
128 if (!_dbus_string_set_length (str, max_len - 1)) in test_max_len()
132 if (!_dbus_string_set_length (str, max_len)) in test_max_len()
135 if (_dbus_string_set_length (str, max_len + 1)) in test_max_len()
138 if (!_dbus_string_set_length (str, 0)) in test_max_len()
[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 …]
Ddbus-string.h71 dbus_bool_t _dbus_string_init (DBusString *str);
72 void _dbus_string_init_const (DBusString *str,
74 void _dbus_string_init_const_len (DBusString *str,
77 dbus_bool_t _dbus_string_init_preallocated (DBusString *str,
79 void _dbus_string_free (DBusString *str);
80 void _dbus_string_lock (DBusString *str);
81 dbus_bool_t _dbus_string_compact (DBusString *str,
84 char* _dbus_string_get_data (DBusString *str);
87 const char* _dbus_string_get_const_data (const DBusString *str);
89 char* _dbus_string_get_data_len (DBusString *str,
[all …]
Ddbus-string.c89 real_block = real->str - old_align_offset; in fixup_alignment()
94 real->str = aligned; in fixup_alignment()
105 _dbus_assert (_DBUS_ALIGN_ADDRESS (real->str, 8) == real->str); in fixup_alignment()
113 memmove (real->str - real->align_offset, in undo_alignment()
114 real->str, in undo_alignment()
117 real->str = real->str - real->align_offset; in undo_alignment()
132 _dbus_string_init_preallocated (DBusString *str, in _dbus_string_init_preallocated() argument
137 _dbus_assert (str != NULL); in _dbus_string_init_preallocated()
141 real = (DBusRealString*) str; in _dbus_string_init_preallocated()
149 real->str = dbus_malloc (_DBUS_STRING_ALLOCATION_PADDING + allocate_size); in _dbus_string_init_preallocated()
[all …]
Ddbus-marshal-basic.c208 set_2_octets (DBusString *str, in set_2_octets() argument
218 data = _dbus_string_get_data_len (str, offset, 2); in set_2_octets()
224 set_4_octets (DBusString *str, in set_4_octets() argument
234 data = _dbus_string_get_data_len (str, offset, 4); in set_4_octets()
240 set_8_octets (DBusString *str, in set_8_octets() argument
250 data = _dbus_string_get_data_len (str, offset, 8); in set_8_octets()
266 _dbus_marshal_set_uint32 (DBusString *str, in _dbus_marshal_set_uint32() argument
271 set_4_octets (str, pos, value, byte_order); in _dbus_marshal_set_uint32()
294 set_string (DBusString *str, in set_string() argument
308 _dbus_string_get_const_data_len (str, pos, 4)); in set_string()
[all …]
/external/skia/src/utils/
DSkParse.cpp49 static const char* skip_ws(const char str[]) in skip_ws() argument
51 SkASSERT(str); in skip_ws()
52 while (is_ws(*str)) in skip_ws()
53 str++; in skip_ws()
54 return str; in skip_ws()
57 static const char* skip_sep(const char str[]) in skip_sep() argument
59 SkASSERT(str); in skip_sep()
60 while (is_sep(*str)) in skip_sep()
61 str++; in skip_sep()
62 return str; in skip_sep()
[all …]
DSkDumpCanvas.cpp22 static void toString(const SkRect& r, SkString* str) { in toString() argument
23 str->printf("[%g,%g %g:%g]", in toString()
28 static void toString(const SkIRect& r, SkString* str) { in toString() argument
29 str->printf("[%d,%d %d:%d]", r.fLeft, r.fTop, r.width(), r.height()); in toString()
32 static void dumpVerbs(const SkPath& path, SkString* str) { in dumpVerbs() argument
38 str->appendf(" M%g,%g", pts[0].fX, pts[0].fY); in dumpVerbs()
41 str->appendf(" L%g,%g", pts[0].fX, pts[0].fY); in dumpVerbs()
44 str->appendf(" Q%g,%g,%g,%g", pts[1].fX, pts[1].fY, in dumpVerbs()
48 str->appendf(" C%g,%g,%g,%g,%g,%g", pts[1].fX, pts[1].fY, in dumpVerbs()
52 str->append("X"); in dumpVerbs()
[all …]
/external/stlport/test/unit/
Dnum_put_get_test.cpp70 string tmp = ostr.str(); in reset_stream()
71 ostr.str(""); in reset_stream()
82 stringstream str; in check_get_float() local
84 str << "1E+" << limits::max_exponent10; in check_get_float()
86 str >> in_val_d; in check_get_float()
87 CPPUNIT_ASSERT(!str.fail()); in check_get_float()
88 CPPUNIT_ASSERT(str.eof()); in check_get_float()
93 stringstream str; in check_get_float() local
95 str << "-1E+" << limits::max_exponent10; in check_get_float()
97 str >> in_val_d; in check_get_float()
[all …]
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_5/Regress/
Dregress-179524.js61 str = 'ABC abc';
65 actual = str.match(re);
70 actual = str.match(re, 'i');
75 actual = str.match(re, 'g', '');
80 actual = str.match(re, 'z', new Object(), new Date());
89 actual = str.search(re);
94 actual = str.search(re, 'i');
99 actual = str.search(re, 'g', '');
104 actual = str.search(re, 'z', new Object(), new Date());
113 actual = str.replace(re, 'Z');
[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/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/linux-tools-perf/util/
Dstring.c10 s64 perf_atoll(const char *str) in perf_atoll() argument
15 if (!isdigit(str[0])) in perf_atoll()
18 for (i = 1; i < strlen(str); i++) { in perf_atoll()
19 switch (str[i]) { in perf_atoll()
24 if (str[i + 1] != 'B') in perf_atoll()
29 if (str[i + 1] != 'b') in perf_atoll()
35 if (str[i + 1] != 'B') in perf_atoll()
40 if (str[i + 1] != 'b') in perf_atoll()
46 if (str[i + 1] != 'B') in perf_atoll()
51 if (str[i + 1] != 'b') in perf_atoll()
[all …]
/external/openssl/crypto/asn1/
Da_utf8.c76 int UTF8_getc(const unsigned char *str, int len, unsigned long *val) in UTF8_getc() argument
82 p = str; in UTF8_getc()
155 int UTF8_putc(unsigned char *str, int len, unsigned long value) in UTF8_putc() argument
157 if(!str) len = 6; /* Maximum we will need */ in UTF8_putc()
160 if(str) *str = (unsigned char)value; in UTF8_putc()
165 if(str) { in UTF8_putc()
166 *str++ = (unsigned char)(((value >> 6) & 0x1f) | 0xc0); in UTF8_putc()
167 *str = (unsigned char)((value & 0x3f) | 0x80); in UTF8_putc()
173 if(str) { in UTF8_putc()
174 *str++ = (unsigned char)(((value >> 12) & 0xf) | 0xe0); in UTF8_putc()
[all …]
/external/openssl/crypto/buffer/
Dbuffer.c97 int BUF_MEM_grow(BUF_MEM *str, size_t len) in BUF_MEM_grow() argument
102 if (str->length >= len) in BUF_MEM_grow()
104 str->length=len; in BUF_MEM_grow()
107 if (str->max >= len) in BUF_MEM_grow()
109 memset(&str->data[str->length],0,len-str->length); in BUF_MEM_grow()
110 str->length=len; in BUF_MEM_grow()
120 if (str->data == NULL) in BUF_MEM_grow()
123 ret=OPENSSL_realloc(str->data,n); in BUF_MEM_grow()
131 str->data=ret; in BUF_MEM_grow()
132 str->max=n; in BUF_MEM_grow()
[all …]
/external/qemu/
Dqjson.c78 QString *str; member
81 static void to_json(const QObject *obj, QString *str, int pretty, int indent);
90 qstring_append(s->str, ", "); in to_json_dict_iter()
93 qstring_append(s->str, "\n"); in to_json_dict_iter()
95 qstring_append(s->str, " "); in to_json_dict_iter()
99 to_json(QOBJECT(qkey), s->str, s->pretty, s->indent); in to_json_dict_iter()
102 qstring_append(s->str, ": "); in to_json_dict_iter()
103 to_json(obj, s->str, s->pretty, s->indent); in to_json_dict_iter()
113 qstring_append(s->str, ", "); in to_json_list_iter()
116 qstring_append(s->str, "\n"); in to_json_list_iter()
[all …]
Dhxtool6 while read -r str; do
7 case $str in
13 test $flag -eq 1 && printf "%s\n" "$str"
23 while read -r str; do
24 case "$str" in
29 echo "line $line: syntax error: expected ETEXI, found $str" >&2
36 echo "line $line: syntax error: expected STEXI, found $str" >&2
43 echo "line $line: syntax error: expected ETEXI, found $str" >&2
48 echo "$(expr "$str" : "DEFHEADING(\(.*\))")"
51 test $flag -eq 1 && echo "$str"
[all …]
/external/chromium/chrome/browser/autofill/
Dautofill_type.cc303 AutofillFieldType AutofillType::StringToFieldType(const std::string& str) { in StringToFieldType() argument
304 if (str == "NO_SERVER_DATA") in StringToFieldType()
306 if (str == "UNKNOWN_TYPE") in StringToFieldType()
308 if (str == "EMPTY_TYPE") in StringToFieldType()
310 if (str == "NAME_FIRST") in StringToFieldType()
312 if (str == "NAME_MIDDLE") in StringToFieldType()
314 if (str == "NAME_LAST") in StringToFieldType()
316 if (str == "NAME_MIDDLE_INITIAL") in StringToFieldType()
318 if (str == "NAME_FULL") in StringToFieldType()
320 if (str == "NAME_SUFFIX") in StringToFieldType()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXString.java149 return str().length() > 0; in bool()
167 public String str() in str() method in XString
184 frag.appendTextChild(str()); in rtf()
204 String str = str(); in dispatchCharactersEvents() local
206 ch.characters(str.toCharArray(), 0, str.length()); in dispatchCharactersEvents()
222 String str = str(); in dispatchAsComment() local
224 lh.comment(str.toCharArray(), 0, str.length()); in dispatchAsComment()
235 return str().length(); in length()
253 return str().charAt(index); in charAt()
279 str().getChars(srcBegin, srcEnd, dst, dstBegin); in getChars()
[all …]
/external/iproute2/lib/
Ddnet_ntop.c19 static __inline__ int do_digit(char *str, u_int16_t *addr, u_int16_t scale, size_t *pos, size_t len… in do_digit() argument
27 *str = tmp + '0'; in do_digit()
37 static const char *dnet_ntop1(const struct dn_naddr *dna, char *str, size_t len) in dnet_ntop1() argument
53 return str; in dnet_ntop1()
55 if (do_digit(str + pos, &area, 10, &pos, len, &started)) in dnet_ntop1()
56 return str; in dnet_ntop1()
58 if (do_digit(str + pos, &area, 1, &pos, len, &started)) in dnet_ntop1()
59 return str; in dnet_ntop1()
62 return str; in dnet_ntop1()
64 *(str + pos) = '.'; in dnet_ntop1()
[all …]
Dipx_ntop.c7 static __inline__ int do_digit(char *str, u_int32_t addr, u_int32_t scale, size_t *pos, size_t len) in do_digit() argument
16 *str = tmp + 'A' - 10; in do_digit()
18 *str = tmp + '0'; in do_digit()
24 static const char *ipx_ntop1(const struct ipx_addr *addr, char *str, size_t len) in ipx_ntop1() argument
30 return str; in ipx_ntop1()
33 if (do_digit(str + pos, ntohl(addr->ipx_net), i, &pos, len)) in ipx_ntop1()
34 return str; in ipx_ntop1()
37 return str; in ipx_ntop1()
39 *(str + pos) = '.'; in ipx_ntop1()
43 if (do_digit(str + pos, addr->ipx_node[i], 1, &pos, len)) in ipx_ntop1()
[all …]
/external/astl/tests/
Dtest_sstream.cpp46 string str("Get out of here and get me some money too."); in testConstructor() local
47 stringbuf buf1(str); in testConstructor()
48 stringbuf buf2(str, std::ios_base::in); in testConstructor()
49 stringbuf buf3(str, std::ios_base::out); in testConstructor()
51 EXPECT_TRUE(buf1.str() == str); in testConstructor()
52 EXPECT_TRUE(buf2.str() == str); in testConstructor()
53 EXPECT_TRUE(buf3.str() == str); in testConstructor()
60 string str("Get out of here and get me some money too."); in testInAvail() local
61 stringbuf buf1(str); in testInAvail()
62 stringbuf buf2(str, std::ios_base::in); in testInAvail()
[all …]
/external/astl/src/
Dstring.cpp130 void string::ResetTo(value_type *str) in ResetTo() argument
133 mData = str; in ResetTo()
143 void string::Constructor(const value_type *str, size_type n) in Constructor() argument
145 Constructor(str, 0, n); in Constructor()
149 void string::Constructor(const value_type *str, size_type pos, size_type n) in Constructor() argument
154 memcpy(mData, str + pos, n); in Constructor()
181 string::string(const string& str) in string() argument
183 Constructor(str.mData, str.mLength); in string()
186 string::string(const string& str, size_type pos, size_type n) in string() argument
188 if (pos < str.mLength) in string()
[all …]
/external/chromium/net/base/
Deffective_tld_names_unittest1.cc56 static inline unsigned int hash (const char *str, unsigned int len);
58 static const struct DomainRule *FindDomain (const char *str, unsigned int len);
62 Perfect_Hash_Test1::hash (register const char *str, register unsigned int len) in hash() argument
98 hval += asso_values[(unsigned char)str[10]]; in hash()
101 hval += asso_values[(unsigned char)str[9]]; in hash()
104 hval += asso_values[(unsigned char)str[8]]; in hash()
107 hval += asso_values[(unsigned char)str[7]]; in hash()
110 hval += asso_values[(unsigned char)str[6]]; in hash()
113 hval += asso_values[(unsigned char)str[5]]; in hash()
116 hval += asso_values[(unsigned char)str[4]]; in hash()
[all …]
/external/v8/test/cctest/
Dtest-flags.cc74 const char* str = in TEST() local
78 CHECK_EQ(0, FlagList::SetFlagsFromString(str, StrLength(str))); in TEST()
106 const char* str = in TEST() local
110 CHECK_EQ(0, FlagList::SetFlagsFromString(str, StrLength(str))); in TEST()
131 const char* str = "--testing_bool_flag --foo"; in TEST() local
132 CHECK_EQ(2, FlagList::SetFlagsFromString(str, StrLength(str))); in TEST()
149 const char* str = " --testing_int_flag=\"foobar\""; in TEST() local
150 CHECK_EQ(1, FlagList::SetFlagsFromString(str, StrLength(str))); in TEST()
168 const char* str = " --testing-int-flag 0 --testing_float_flag "; in TEST() local
169 CHECK_EQ(3, FlagList::SetFlagsFromString(str, StrLength(str))); in TEST()
[all …]

12345678910>>...126