keys.h File Reference

Parser :: Fast 32-bit Header Field Name Parser -- keys . More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

Parser definitions

 * a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z  :  ' ' -
 * 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 3a 20  2d

A quick way to generate the hex string is: perl -e '$_=lc shift; print "0x".unpack("H*",reverse)."\n";' 4_char_str or to generate the define list: perl -e '$s=lc shift; $s.=" "x(4-(length $s)4); print map("#define _". reverse ."_ 0x". (unpack "H*")."\n", reverse unpack("(a[4])*", reverse $s));' string Note that some editing is still needed (replace spaces and account for ':'). Test manually/visually if dword is intended string using: awk '/^define/ {printf("%s \"cccc" ... s
", $3,strtonum("0x" substr($3,9,2)),strtonum("0x" substr($3,7,2)),strtonum("0x" substr($3,5,2)),strtonum("0x" substr($3,3,2)),$5)}' keys.h


Detailed Description

Definition in file keys.h.