hex
{ i.setf(ios::dec, ios::dec|ios::hex|ios::oct); return i; }
{ i.setf(ios::hex, ios::dec|ios::hex|ios::oct); return i; }
{ i.setf(ios::oct, ios::dec|ios::hex|ios::oct); return i; }
extern char* hex(long, int=0);
extern char* hex(int, int=0);
extern char* hex(unsigned long, int=0);
extern char* hex(unsigned int, int=0);
basefield=dec+oct+hex,
sstream << std::hex << keyCode;
strchr(hex, tolower(p[3])) &&
strchr(hex, tolower(p[4]))) {
char c = (strchr(hex, tolower(p[3])) - hex) << 4 |
(strchr(hex, tolower(p[4])) - hex);
const char *hex = "0123456789ABCDEF";
*d++ = hex[(*(unsigned char *)p >> 4) & 0x0F];
*d++ = hex[(*(unsigned char *)p) & 0x0F];
const char *hex = "0123456789abcdef";
os << "Tag: " << hex << (int)tag << '\n';
os << "version: " << hex << version << '\n';
os << "operation_id: " << hex << operation_id << '\n';
os << "request_id: " << hex << request_id << '\n';
ss.flags(std::ios::hex | std::ios::showbase);
ss.flags(std::ios::hex | std::ios::showbase);
char* hex;
if (_GetHexFromData(data, dataSize, &hex, &hexSize) < B_OK)
Insert(hex, hexSize);
free(hex);
char* hex = (char*)malloc(inSize * 3 + 1);
if (hex == NULL)
char* out = hex;
*_hex = hex;
*_hexSize = out + 1 - hex;
char* hex;
if (_GetHexFromData((const uint8*)Text(), TextLength(), &hex, &hexSize)
SetText(hex, hexSize);
free(hex);
char* hex;
if (_GetHexFromData(data, dataSize, &hex, &hexSize) < B_OK)
SetText(hex, hexSize);
free(hex);
char hex[20];
snprintf(hex, sizeof(hex), "0x%x", value);
rendered += hex;
static const char hex[]="0123456789abcdef";
buf[i+i] = hex[digest[i] >> 4];
buf[i+i+1] = hex[digest[i] & 0x0f];
BString hex;
char* buffer = hex.LockBuffer(length * 2);
hex.UnlockBuffer();
return hex;
cout << "0x" << hex << type;
cout << hex << setfill('0') << setw(2) << (uint16) iconData[i];
from_hex(char hex)
if (isdigit(hex))
return hex - '0';
return tolower(hex) - 'a' + 10;
hexToChar(char hex)
if ('0' <= hex && hex <= '9') {
return hex - '0';
} else if ('a' <= hex && hex <= 'f') {
return hex - 'a' + 10;
} else if ('A' <= hex && hex <= 'F') {
return hex - 'A' + 10;
throw new Err(std::string("Sniffer parser error: invalid hex digit '") + hex
| ios::dec | ios::oct | ios::hex | ios::showbase | ios::showpoint
b = ios::hex; break;
else if ((stream.flags() & ios::basefield) == ios::hex)
else if ((stream.flags() & ios::basefield) == ios::hex) { // Hex
if (n < 0 && (flags() & (ios::oct|ios::hex)) == 0)
if (n < 0 && (flags() & (ios::oct|ios::hex)) == 0)
if (n < 0 && (flags() & (ios::oct|ios::hex)) == 0)
fromHex(const char* hex, uint8* outBuffer, size_t outBufferLength)
if (hex[0] == '\0' || outBufferLength == 0)
while (hex[i] != '\0' && hex[i + 1] != '\0') {
const uint8 char1 = hex[i];
const uint8 char2 = hex[i + 1];
using std::hex;
cout << endl << "DecodeResult() -- " "0x" << hex << result << " (" << dec << result << ") == " << str << endl;