/external/openssl/ssl/ |
D | ssl_stat.c | 90 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/ |
D | dbus-string-util.c | 61 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 …]
|
D | dbus-marshal-validate-util.c | 51 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 …]
|
D | dbus-string.h | 71 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 …]
|
D | dbus-string.c | 89 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 …]
|
D | dbus-marshal-basic.c | 208 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/ |
D | SkParse.cpp | 57 static const char* skip_ws(const char str[]) in skip_ws() argument 59 SkASSERT(str); in skip_ws() 60 while (is_ws(*str)) in skip_ws() 61 str++; in skip_ws() 62 return str; in skip_ws() 65 static const char* skip_sep(const char str[]) in skip_sep() argument 67 SkASSERT(str); in skip_sep() 68 while (is_sep(*str)) in skip_sep() 69 str++; in skip_sep() 70 return str; in skip_sep() [all …]
|
D | SkDumpCanvas.cpp | 15 static void toString(const SkRect& r, SkString* str) { in toString() argument 16 str->printf("[%g,%g %g:%g]", in toString() 21 static void toString(const SkIRect& r, SkString* str) { in toString() argument 22 str->printf("[%d,%d %d:%d]", r.fLeft, r.fTop, r.width(), r.height()); in toString() 25 static void dumpVerbs(const SkPath& path, SkString* str) { in dumpVerbs() argument 31 str->appendf(" M%g,%g", pts[0].fX, pts[0].fY); in dumpVerbs() 34 str->appendf(" L%g,%g", pts[0].fX, pts[0].fY); in dumpVerbs() 37 str->appendf(" Q%g,%g,%g,%g", pts[1].fX, pts[1].fY, in dumpVerbs() 41 str->appendf(" C%g,%g,%g,%g,%g,%g", pts[1].fX, pts[1].fY, in dumpVerbs() 45 str->appendf("X"); in dumpVerbs() [all …]
|
/external/stlport/test/unit/ |
D | num_put_get_test.cpp | 70 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/ |
D | regress-179524.js | 61 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/openssl/crypto/buffer/ |
D | buffer.c | 92 int BUF_MEM_grow(BUF_MEM *str, size_t len) in BUF_MEM_grow() argument 97 if (str->length >= len) in BUF_MEM_grow() 99 str->length=len; in BUF_MEM_grow() 102 if (str->max >= len) in BUF_MEM_grow() 104 memset(&str->data[str->length],0,len-str->length); in BUF_MEM_grow() 105 str->length=len; in BUF_MEM_grow() 109 if (str->data == NULL) in BUF_MEM_grow() 112 ret=OPENSSL_realloc(str->data,n); in BUF_MEM_grow() 120 str->data=ret; in BUF_MEM_grow() 121 str->max=n; in BUF_MEM_grow() [all …]
|
/external/openssl/crypto/asn1/ |
D | a_utf8.c | 76 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/bluetooth/bluez/src/ |
D | storage.c | 99 char filename[PATH_MAX + 1], str[32]; in write_discoverable_timeout() local 101 snprintf(str, sizeof(str), "%d", timeout); in write_discoverable_timeout() 107 return textfile_put(filename, "discovto", str); in write_discoverable_timeout() 112 char filename[PATH_MAX + 1], *str; in read_discoverable_timeout() local 116 str = textfile_get(filename, "discovto"); in read_discoverable_timeout() 117 if (!str) in read_discoverable_timeout() 120 if (sscanf(str, "%d", timeout) != 1) { in read_discoverable_timeout() 121 free(str); in read_discoverable_timeout() 125 free(str); in read_discoverable_timeout() 132 char filename[PATH_MAX + 1], str[32]; in write_pairable_timeout() local [all …]
|
/external/qemu/ |
D | qjson.c | 78 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 …]
|
D | hxtool | 6 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/ |
D | autofill_type.cc | 303 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/ |
D | XString.java | 149 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/ |
D | dnet_ntop.c | 19 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 …]
|
D | ipx_ntop.c | 7 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/src/ |
D | string.cpp | 130 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/astl/tests/ |
D | test_sstream.cpp | 46 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/v8/test/cctest/ |
D | test-flags.cc | 74 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 …]
|
/external/icu4c/test/intltest/ |
D | tstnorm.cpp | 67 static UnicodeString str(const char *input) in str() function 69 UnicodeString str(input, ""); // Invariant conversion in str() local 70 return str.unescape(); in str() 79 canonTests[0][0] = str("cat"); canonTests[0][1] = str("cat"); canonTests[0][2] = str("cat"); in BasicNormalizerTest() 81 …canonTests[1][0] = str("\\u00e0ardvark"); canonTests[1][1] = str("a\\u0300ardvark"); canonTest… in BasicNormalizerTest() 83 …canonTests[2][0] = str("\\u1e0a"); canonTests[2][1] = str("D\\u0307"); canonTests[2][2] = str("\\u… in BasicNormalizerTest() 85 …canonTests[3][0] = str("D\\u0307"); canonTests[3][1] = str("D\\u0307"); canonTests[3][2] = str("\… in BasicNormalizerTest() 87 …canonTests[4][0] = str("\\u1e0c\\u0307"); canonTests[4][1] = str("D\\u0323\\u0307"); canonTests[4… in BasicNormalizerTest() 89 …canonTests[5][0] = str("\\u1e0a\\u0323"); canonTests[5][1] = str("D\\u0323\\u0307"); canonTests[5… in BasicNormalizerTest() 91 …canonTests[6][0] = str("D\\u0307\\u0323"); canonTests[6][1] = str("D\\u0323\\u0307"); canonTests[… in BasicNormalizerTest() [all …]
|
/external/chromium/net/base/ |
D | effective_tld_names_unittest1.cc | 56 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/webkit/Tools/android/flex-2.5.4a/ |
D | misc.c | 99 int all_lower( str ) in all_lower() argument 100 register char *str; in all_lower() 102 while ( *str ) 104 if ( ! isascii( (Char) *str ) || ! islower( *str ) ) 106 ++str; 115 int all_upper( str ) in all_upper() argument 116 register char *str; in all_upper() 118 while ( *str ) 120 if ( ! isascii( (Char) *str ) || ! isupper( *str ) ) 122 ++str; [all …]
|