Created
January 14, 2017 04:47
-
-
Save samcv/0692493144a5bb6892770a8887c0176f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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