stew

a monorepo of some sort
git clone git://git.nsmpr.xyz/stew.git
Log | Files | Refs

proquint.h (555B)


      1 /*
      2 Convert between proquint, hex, and decimal strings.
      3 
      4 Four-bits as a consonant:
      5 	0 1 2 3 4 5 6 7 8 9 A B C D E F
      6 	b d f g h j k l m n p r s t v z
      7 
      8 Two-bits as a vowel:
      9 	0 1 2 3
     10 	a i o u
     11 
     12 Whole 16-bit word, where "con" = consonant, "vo" = vowel.
     13 	0 1 2 3 4 5 6 7 8 9 A B C D E F
     14 	+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     15 	|con0   |vo1|con2   |vo3|con4   |
     16 	+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     17 	|-Hex0--|-Hex1--|-Hex2--|-Hex3--|
     18 	+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     19 */
     20 
     21 void uint2quint(char *quint /*output*/, u32int i, int sepChar);
     22 u32int quint2uint(char *quint);