Skip to content

Instantly share code, notes, and snippets.

@samcv
Created January 14, 2017 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samcv/0692493144a5bb6892770a8887c0176f to your computer and use it in GitHub Desktop.
Save samcv/0692493144a5bb6892770a8887c0176f to your computer and use it in GitHub Desktop.
#include <stdio.h>
struct binary_prop_bitfield {
unsigned int Any :1;
unsigned int Bidi_Class :1;
unsigned int Bidi_Mirrored :1;
unsigned int NFC_QC :1;
unsigned int NFD_QC :1;
unsigned int NFG_QC :1;
unsigned int NFKD_QC :1;
};
typedef struct binary_prop_bitfield binary_prop_bitfield;
static const binary_prop_bitfield mybitfield[20589] = {
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{0,0,0,0,0,0,0},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{0,0,0,0,0,0,0},
{1,1,0,1,1,1,1},
{1,1,0,1,1,1,1},
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,0},
};
int main (void) {
printf("U+0000 Bidi_Mirrored: %i NFG_QC: %i\n", mybitfield[0].Bidi_Mirrored, mybitfield[0].NFG_QC);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment