Searched refs:hex (Results 1 - 25 of 82) sorted by relevance

1234

/external/icu4c/test/intltest/
H A Dtestutil.h23 static UnicodeString hex(UChar ch);
25 static UnicodeString hex(const UnicodeString& s);
27 static UnicodeString hex(const UnicodeString& s, UChar sep);
H A Dtestutil.cpp16 UnicodeString TestUtility::hex(UChar ch) { function in class:TestUtility
25 UnicodeString TestUtility::hex(const UnicodeString& s) { function in class:TestUtility
26 return hex(s, 44 /*,*/);
29 UnicodeString TestUtility::hex(const UnicodeString& s, UChar sep) { function in class:TestUtility
31 UnicodeString result = hex(s.charAt(0));
34 result.append(hex(s.charAt(i)));
H A Dtstnorm.h77 static UnicodeString hex(UChar ch);
78 static UnicodeString hex(const UnicodeString& str);
H A Dtstnorm.cpp316 errln("FAIL: " + hex(a) + " x DECOMP_COMPAT => " +
317 hex(b) + " x COMPOSE => " +
318 hex(c));
320 logln("Ok: " + hex(a) + " x DECOMP_COMPAT => " +
321 hex(b) + " x COMPOSE => " +
322 hex(c));
357 logln((UnicodeString)"Ok: " + hex(a) + " x COMPOSE_COMPAT => " + hex(b));
359 errln((UnicodeString)"FAIL: " + hex(a) + " x COMPOSE_COMPAT => " + hex(
471 UnicodeString BasicNormalizerTest::hex(UChar ch) { function in class:BasicNormalizerTest
476 UnicodeString BasicNormalizerTest::hex(const UnicodeString& s) { function in class:BasicNormalizerTest
[all...]
/external/webkit/WebCore/inspector/front-end/
H A DColor.js45 var hex = this.hex;
46 if (hex.charAt(0) === hex.charAt(1) && hex.charAt(2) === hex.charAt(3) && hex.charAt(4) === hex.charAt(5))
47 this._short = hex.charAt(0) + hex
[all...]
/external/qemu/android/utils/
H A Dmisc.h59 /* decodes a sequence of 'len' hexadecimal chars from 'hex' into
62 extern int hex2int( const uint8_t* hex, int len );
64 /* encodes an integer 'val' into 'len' hexadecimal charaters into 'hex' */
65 extern void int2hex( uint8_t* hex, int len, int val );
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/webkit/JavaScriptCore/tests/mozilla/ecma/GlobalObject/
H A D15.1.2.5-2.js129 var hex = new Array();
136 hex[index] = Math.floor( n / Math.pow(16,mag) );
140 hex[hex.length] = n % 16;
144 for ( var index = 0 ; index < hex.length ; index++ ) {
145 switch ( hex[index] ) {
165 string += hex[index];
H A D15.1.2.5-3.js152 var hex = new Array();
159 hex[index] = Math.floor( n / Math.pow(16,mag) );
163 hex[hex.length] = n % 16;
167 for ( var index = 0 ; index < hex.length ; index++ ) {
168 switch ( hex[index] ) {
188 string += hex[index];
H A D15.1.2.4.js151 var hex = new Array();
158 hex[index] = Math.floor( n / Math.pow(16,mag) );
162 hex[hex.length] = n % 16;
166 for ( var index = 0 ; index < hex.length ; index++ ) {
167 switch ( hex[index] ) {
187 string += hex[index];
H A D15.1.2.5-1.js117 // unicode chars represented by two hex digits
151 var hex = new Array();
158 hex[index] = Math.floor( n / Math.pow(16,mag) );
162 hex[hex.length] = n % 16;
166 for ( var index = 0 ; index < hex.length ; index++ ) {
167 switch ( hex[index] ) {
187 string += hex[index];
/external/qemu/telephony/
H A Dgsm.h34 /* try to convert a hex string into a byte string, assumes 'dst' is properly sized, and hexlen is even.
36 extern int gsm_hex_to_bytes ( cbytes_t hex, int hexlen, bytes_t dst );
38 /* convert a hex string into a byte string, assumes 'dst' is properly sized, and hexlen is even.
40 extern void gsm_hex_to_bytes0 ( cbytes_t hex, int hexlen, bytes_t dst );
42 /* convert a byte string into a hex string, assumes 'hex' is properly sized */
43 extern void gsm_hex_from_bytes( char* hex, cbytes_t src, int srclen );
51 /* convert a 2-char hex value into an int, returns -1 on error */
52 extern int gsm_hex2_to_byte( const char* hex );
54 /* convert a 2-char hex valu
[all...]
H A Dgsm.c128 gsm_hex2_to_byte( const char* hex )
130 int hi = gsm_hexchar_to_int(hex[0]);
131 int lo = gsm_hexchar_to_int(hex[1]);
140 gsm_hex4_to_short( const char* hex )
142 int hi = gsm_hex2_to_byte(hex);
143 int lo = gsm_hex2_to_byte(hex+2);
152 gsm_hex2_to_byte0( const char* hex )
154 int hi = gsm_hexchar_to_int0(hex[0]);
155 int lo = gsm_hexchar_to_int0(hex[1]);
161 gsm_hex_from_byte( char* hex, in argument
170 gsm_hex_from_short( char* hex, int val ) argument
181 gsm_hex_to_bytes0( cbytes_t hex, int hexlen, bytes_t dst ) argument
194 gsm_hex_to_bytes( cbytes_t hex, int hexlen, bytes_t dst ) argument
210 gsm_hex_from_bytes( char* hex, cbytes_t src, int srclen ) argument
[all...]
H A Dsms.h56 extern int sms_address_from_hex ( SmsAddress address, const char* hex, int hexlen );
57 extern int sms_address_to_hex ( SmsAddress address, char* hex, int hexsize );
71 extern SmsPDU smspdu_create_from_hex( const char* hex, int hexlen );
73 extern int smspdu_to_hex( SmsPDU pdu, char* hex, int hexsize );
/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/openssl/apps/
H A Dprime.c63 int hex=0; local
78 if(!strcmp(*argv,"-hex"))
79 hex=1;
111 if(hex)
127 BIO_printf(bio_err,"%-14s hex\n","-hex");
H A Drand.c72 * -hex - hex encode output
88 int hex = 0; local
138 else if (strcmp(argv[i], "-hex") == 0)
140 if (!hex)
141 hex = 1;
160 if (hex && base64)
176 BIO_printf(bio_err, "-hex - hex encode output\n");
226 if (!hex)
[all...]
/external/clearsilver/cs/
H A Dtest_numbers.cs35 CORRECT: 0x15 (hex) == 21
37 ERROR: 0x15 (hex) should equal 21
/external/ipsec-tools/src/racoon/
H A Dprsa_tok.l52 hex [0-9a-fA-F]
53 word6 {hex}{0,4}
/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/openssl/crypto/x509/
H A Dx509_obj.c75 static 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/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/astl/tests/
H A Dtest_iomanip.cpp61 EXPECT_TRUE(s.flags() == (ios_base::hex | ios_base::skipws));
/external/astl/include/
H A Diomanip75 params.base == 16 ? ios_base::hex :

Completed in 751 milliseconds

1234