pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:914:   static const char hexchar[] = {    '0','1','2','3','4','5','6','7','8','9',    'a','b','c','d','e','f'   };      static const char HEXCHAR[] = {    '0','1','2','3','4','5','6','7','8','9',    'A','B','C','D','E','F'   };    - static const unsigned char hexdecode[256] = - { -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, -  -  /* '0' - '9' */ -  0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -  -  16,16,16,16,16,16,16, -  -  /* 'A' - 'F' */ -  10, 11, 12, 13, 14, 15, -  -  16,16,16,16,16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16, -  -  /* 'a' - 'f' */ -  10, 11, 12, 13, 14, 15, -  -  16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, -  16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16, - }; -  +    PMOD_EXPORT    PIKEFUN string(48..102) string2hex(string s, void|int uppercase)    efun;    optflags OPT_TRY_OPTIMIZE;   {    struct pike_string *hex;    unsigned char *p,*st = (unsigned char *)s->str;    int i, l;       if (s->size_shift)