Searched defs:hex (Results 1 - 25 of 72) sorted by relevance

123

/external/webkit/LayoutTests/fast/encoding/resources/
H A Dchar-decoding-utils.js1 function hex(number) function
4 var hex = hexDigit.substr(number & 0xf, 1);
7 hex = hexDigit.substr(number & 15, 1) + hex;
9 return hex;
26 var code = hex(decodedText.charCodeAt(i));
/external/icu4c/test/intltest/
H A Dtestutil.cpp30 UnicodeString TestUtility::hex(UChar32 ch) { function in class:TestUtility
36 UnicodeString TestUtility::hex(const UnicodeString& s) { function in class:TestUtility
37 return hex(s, 44 /*,*/);
40 UnicodeString TestUtility::hex(const UnicodeString& s, UChar sep) { function in class:TestUtility
54 UnicodeString TestUtility::hex(const uint8_t* bytes, int32_t len) { function in class:TestUtility
/external/openssl/apps/
H A Dprime.c63 int hex=0; local
81 if(!strcmp(*argv,"-hex"))
82 hex=1;
134 s=hex ? BN_bn2hex(bn) : BN_bn2dec(bn);
140 if(hex)
157 BIO_printf(bio_err,"%-14s hex\n","-hex");
H A Drand.c72 * -hex - hex encode output
85 int hex = 0; local
135 else if (strcmp(argv[i], "-hex") == 0)
137 if (!hex)
138 hex = 1;
157 if (hex && base64)
173 BIO_printf(bio_err, "-hex - hex encode output\n");
223 if (!hex)
[all...]
/external/v8/test/mjsunit/
H A Dunicode-test.js9138 function hex(x) { function
9155 out += "\\x" + hex(c >> 4) + hex(c);
9157 out += "\\u" + hex(c >> 12) + hex(c >> 8) + hex(c >> 4) + hex(c);
/external/chromium/chrome/browser/sync/util/
H A Dcrypto_helpers.cc47 string hex = base::HexEncode(reinterpret_cast<char*>(&bin_digest_.front()), local
49 StringToLowerASCII(&hex);
50 return hex;
/external/openssl/crypto/x509/
H A Dx509_obj.c75 static const char hex[17]="0123456789ABCDEF"; local
190 *(p++)=hex[(n>>4)&0x0f];
191 *(p++)=hex[n&0x0f];
202 *(p++)=hex[(n>>4)&0x0f];
203 *(p++)=hex[n&0x0f];
/external/bluetooth/bluez/src/
H A Dsdp-xml.c47 int i, hex; local
233 hex = 0;
238 hex = 1;
254 if (hex) {
255 appender(data, "encoding=\"hex\" ");
262 hex encoded data */
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/sec/
H A DSECNamedCurves.java19 String hex)
21 return new BigInteger(1, Hex.decode(hex));
18 fromHex( String hex) argument
/external/dbus/dbus/
H A Ddbus-address.c292 DBusString hex; local
300 "In D-Bus address, percent character was not followed by two hex digits");
309 _dbus_string_init_const (&hex, buf);
311 if (!_dbus_string_hex_decode (&hex, 0, &hex_end,
319 "In D-Bus address, percent character was followed by characters other than hex digits");
/external/ppp/pppd/plugins/radius/
H A Davpair.c164 unsigned char hex[3]; /* For hex string conversion. */ local
199 sprintf (hex, "%2.2X", *x_ptr);
200 strcat (buffer, hex);
/external/qemu/android/utils/
H A Dmisc.c173 hex2int( const uint8_t* hex, int len ) argument
177 int c = hexdigit(*hex++);
188 int2hex( uint8_t* hex, int len, int val ) argument
192 *hex++ = hexchars[(val >> (len*4)) & 15];
/external/skia/src/animator/
H A DSkMemberInfo.cpp220 char hex = poundPos[4]; local
221 if (is_hex(hex) == false) {
/external/skia/src/utils/
H A DSkParseColor.cpp467 uint32_t hex; local
468 const char* end = SkParse::FindHex(value + 1, &hex);
474 unsigned a = len == 4 ? nib2byte(hex >> 12) : oldAlpha;
475 unsigned r = nib2byte((hex >> 8) & 0xF);
476 unsigned g = nib2byte((hex >> 4) & 0xF);
477 unsigned b = nib2byte(hex & 0xF);
482 hex |= oldAlpha << 24;
483 *colorPtr = hex;
/external/stlport/src/
H A Dios.cpp48 const ios_base::fmtflags ios_base::hex; member in class:ios_base
213 ptr = __write_integer(buffer+strlen(buffer), ios_base::hex, __STATIC_CAST(unsigned long,_M_iostate));
215 ptr = __write_integer(buffer+strlen(buffer), ios_base::hex, __STATIC_CAST(unsigned long,_M_exception_mask));
/external/stlport/test/unit/
H A Dnum_put_get_test.cpp725 CHECK(short, 0, hex, "0")
726 CHECK(short, 12345, hex, "3039")
728 CHECK(short, -1, hex, "ffff")
729 CHECK(short, -12345, hex, "cfc7")
732 CHECK(unsigned short, 0, hex, "0")
733 CHECK(unsigned short, 12345, hex, "3039")
735 CHECK(int, 0, hex, "0")
736 CHECK(int, 12345678, hex, "bc614e")
738 CHECK(int, -1, hex, "ffffffff")
739 CHECK(int, -12345678, hex, "ff439eb
1010 s << hex << 0; local
[all...]
/external/tcpdump/
H A Dprint-esp.c103 static u_int hexdigit(netdissect_options *ndo, char hex) argument
105 if (hex >= '0' && hex <= '9')
106 return (hex - '0');
107 else if (hex >= 'A' && hex <= 'F')
108 return (hex - 'A' + 10);
109 else if (hex >= 'a' && hex <= 'f')
110 return (hex
[all...]
/external/wpa_supplicant/wpa_gui/
H A Dnetworkconfig.ui.h110 "or 64 hex digit PSK");
259 bool hex; local
267 * Assume hex key if only hex characters are present and length matches
277 hex = true;
281 hex = false;
286 if (hex && len != 10 && len != 26 && len != 32)
287 hex = false;
289 setNetworkParam(network_id, buf, txt, !hex);
/external/wpa_supplicant/wpa_gui-qt4/
H A Dnetworkconfig.cpp141 "or 64 hex digit PSK");
297 bool hex; local
305 * Assume hex key if only hex characters are present and length matches
315 hex = true;
320 hex = false;
325 if (hex && len != 10 && len != 26 && len != 32)
326 hex = false;
328 setNetworkParam(network_id, buf, txt, !hex);
/external/wpa_supplicant_6/wpa_supplicant/src/utils/
H A Dcommon.c32 static int hex2byte(const char *hex) argument
35 a = hex2num(*hex++);
38 b = hex2num(*hex++);
74 * hexstr2bin - Convert ASCII hex string into binary data
75 * @hex: ASCII hex string (e.g., "01ab")
77 * @len: Length of the text to convert in bytes (of buf); hex will be double
79 * Returns: 0 on success, -1 on failure (invalid hex string)
81 int hexstr2bin(const char *hex, u8 *buf, size_t len) argument
85 const char *ipos = hex;
[all...]
/external/wpa_supplicant_6/wpa_supplicant/wpa_gui/
H A Dnetworkconfig.ui.h110 "or 64 hex digit PSK");
262 bool hex; local
270 * Assume hex key if only hex characters are present and length matches
280 hex = true;
284 hex = false;
289 if (hex && len != 10 && len != 26 && len != 32)
290 hex = false;
292 setNetworkParam(network_id, buf, txt, !hex);
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dcommon.c32 int hex2byte(const char *hex) argument
35 a = hex2num(*hex++);
38 b = hex2num(*hex++);
128 * hexstr2bin - Convert ASCII hex string into binary data
129 * @hex: ASCII hex string (e.g., "01ab")
131 * @len: Length of the text to convert in bytes (of buf); hex will be double
133 * Returns: 0 on success, -1 on failure (invalid hex string)
135 int hexstr2bin(const char *hex, u8 *buf, size_t len) argument
139 const char *ipos = hex;
[all...]
/external/wpa_supplicant_8/src/utils/
H A Dcommon.c32 int hex2byte(const char *hex) argument
35 a = hex2num(*hex++);
38 b = hex2num(*hex++);
128 * hexstr2bin - Convert ASCII hex string into binary data
129 * @hex: ASCII hex string (e.g., "01ab")
131 * @len: Length of the text to convert in bytes (of buf); hex will be double
133 * Returns: 0 on success, -1 on failure (invalid hex string)
135 int hexstr2bin(const char *hex, u8 *buf, size_t len) argument
139 const char *ipos = hex;
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dcommon.c32 int hex2byte(const char *hex) argument
35 a = hex2num(*hex++);
38 b = hex2num(*hex++);
128 * hexstr2bin - Convert ASCII hex string into binary data
129 * @hex: ASCII hex string (e.g., "01ab")
131 * @len: Length of the text to convert in bytes (of buf); hex will be double
133 * Returns: 0 on success, -1 on failure (invalid hex string)
135 int hexstr2bin(const char *hex, u8 *buf, size_t len) argument
139 const char *ipos = hex;
[all...]
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui/
H A Dnetworkconfig.ui.h110 "or 64 hex digit PSK");
262 bool hex; local
270 * Assume hex key if only hex characters are present and length matches
280 hex = true;
284 hex = false;
289 if (hex && len != 10 && len != 26 && len != 32)
290 hex = false;
292 setNetworkParam(network_id, buf, txt, !hex);

Completed in 1417 milliseconds

123