/* Generated by re2c */
#line 1 "encodings/unicode_group_Nd_8.re"
// re2c $INPUT -o $OUTPUT -8
#include <stdint.h>
#include <stdio.h>
#include "utf8.h"
#define YYCTYPE uint8_t

bool scan(const YYCTYPE* start, const YYCTYPE* const limit) {
	__attribute__((unused)) const YYCTYPE* YYMARKER;
#define YYCURSOR start
Nd:

#line 15 "encodings/unicode_group_Nd_8.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	switch (yych) {
		case '0':
		case '1':
		case '2':
		case '3':
		case '4':
		case '5':
		case '6':
		case '7':
		case '8':
		case '9': goto yy3;
		case 0xD9: goto yy4;
		case 0xDB: goto yy5;
		case 0xDF: goto yy6;
		case 0xE0: goto yy7;
		case 0xE1: goto yy8;
		case 0xEA: goto yy9;
		case 0xEF: goto yy10;
		case 0xF0: goto yy11;
		default: goto yy1;
	}
yy1:
	++YYCURSOR;
yy2:
#line 15 "encodings/unicode_group_Nd_8.re"
	{ return YYCURSOR - 1 == limit; }
#line 45 "encodings/unicode_group_Nd_8.c"
yy3:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Nd_8.re"
	{ goto Nd; }
#line 50 "encodings/unicode_group_Nd_8.c"
yy4:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xA0:
		case 0xA1:
		case 0xA2:
		case 0xA3:
		case 0xA4:
		case 0xA5:
		case 0xA6:
		case 0xA7:
		case 0xA8:
		case 0xA9: goto yy3;
		default: goto yy2;
	}
yy5:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB0:
		case 0xB1:
		case 0xB2:
		case 0xB3:
		case 0xB4:
		case 0xB5:
		case 0xB6:
		case 0xB7:
		case 0xB8:
		case 0xB9: goto yy3;
		default: goto yy2;
	}
yy6:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x80:
		case 0x81:
		case 0x82:
		case 0x83:
		case 0x84:
		case 0x85:
		case 0x86:
		case 0x87:
		case 0x88:
		case 0x89: goto yy3;
		default: goto yy2;
	}
yy7:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0xA5:
		case 0xA7:
		case 0xA9:
		case 0xAB:
		case 0xAD:
		case 0xAF:
		case 0xB1:
		case 0xB3:
		case 0xB5:
		case 0xB7: goto yy12;
		case 0xB9:
		case 0xBB: goto yy14;
		case 0xBC: goto yy15;
		default: goto yy2;
	}
yy8:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x81: goto yy16;
		case 0x82:
		case 0xA0:
		case 0xA7:
		case 0xAD: goto yy14;
		case 0x9F: goto yy15;
		case 0xA5: goto yy17;
		case 0xAA:
		case 0xB1: goto yy18;
		case 0xAE: goto yy19;
		default: goto yy2;
	}
yy9:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x98: goto yy15;
		case 0xA3:
		case 0xA9: goto yy14;
		case 0xA4: goto yy16;
		case 0xA7: goto yy20;
		case 0xAF: goto yy19;
		default: goto yy2;
	}
yy10:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0xBC: goto yy14;
		default: goto yy2;
	}
yy11:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x90: goto yy21;
		case 0x91: goto yy22;
		case 0x96: goto yy23;
		case 0x9C: goto yy24;
		case 0x9D: goto yy25;
		case 0x9E: goto yy26;
		case 0x9F: goto yy27;
		default: goto yy2;
	}
yy12:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xA6:
		case 0xA7:
		case 0xA8:
		case 0xA9:
		case 0xAA:
		case 0xAB:
		case 0xAC:
		case 0xAD:
		case 0xAE:
		case 0xAF: goto yy3;
		default: goto yy13;
	}
yy13:
	YYCURSOR = YYMARKER;
	goto yy2;
yy14:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x90:
		case 0x91:
		case 0x92:
		case 0x93:
		case 0x94:
		case 0x95:
		case 0x96:
		case 0x97:
		case 0x98:
		case 0x99: goto yy3;
		default: goto yy13;
	}
yy15:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xA0:
		case 0xA1:
		case 0xA2:
		case 0xA3:
		case 0xA4:
		case 0xA5:
		case 0xA6:
		case 0xA7:
		case 0xA8:
		case 0xA9: goto yy3;
		default: goto yy13;
	}
yy16:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x80:
		case 0x81:
		case 0x82:
		case 0x83:
		case 0x84:
		case 0x85:
		case 0x86:
		case 0x87:
		case 0x88:
		case 0x89: goto yy3;
		default: goto yy13;
	}
yy17:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x86:
		case 0x87:
		case 0x88:
		case 0x89:
		case 0x8A:
		case 0x8B:
		case 0x8C:
		case 0x8D:
		case 0x8E:
		case 0x8F: goto yy3;
		default: goto yy13;
	}
yy18:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x80:
		case 0x81:
		case 0x82:
		case 0x83:
		case 0x84:
		case 0x85:
		case 0x86:
		case 0x87:
		case 0x88:
		case 0x89:
		case 0x90:
		case 0x91:
		case 0x92:
		case 0x93:
		case 0x94:
		case 0x95:
		case 0x96:
		case 0x97:
		case 0x98:
		case 0x99: goto yy3;
		default: goto yy13;
	}
yy19:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB0:
		case 0xB1:
		case 0xB2:
		case 0xB3:
		case 0xB4:
		case 0xB5:
		case 0xB6:
		case 0xB7:
		case 0xB8:
		case 0xB9: goto yy3;
		default: goto yy13;
	}
yy20:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x90:
		case 0x91:
		case 0x92:
		case 0x93:
		case 0x94:
		case 0x95:
		case 0x96:
		case 0x97:
		case 0x98:
		case 0x99:
		case 0xB0:
		case 0xB1:
		case 0xB2:
		case 0xB3:
		case 0xB4:
		case 0xB5:
		case 0xB6:
		case 0xB7:
		case 0xB8:
		case 0xB9: goto yy3;
		default: goto yy13;
	}
yy21:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x92: goto yy15;
		case 0xB4: goto yy19;
		case 0xB5: goto yy16;
		default: goto yy13;
	}
yy22:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x81: goto yy12;
		case 0x83:
		case 0x8B:
		case 0x9C:
		case 0xAF: goto yy19;
		case 0x84: goto yy28;
		case 0x87:
		case 0x91:
		case 0x93:
		case 0x99:
		case 0xA5:
		case 0xB1:
		case 0xB5:
		case 0xBD: goto yy14;
		case 0x9B: goto yy29;
		case 0xA3:
		case 0xB6:
		case 0xB7: goto yy15;
		default: goto yy13;
	}
yy23:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x84:
		case 0xB5: goto yy19;
		case 0xA9: goto yy15;
		case 0xAB: goto yy16;
		case 0xAD: goto yy14;
		default: goto yy13;
	}
yy24:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB3: goto yy19;
		default: goto yy13;
	}
yy25:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x9F: goto yy30;
		default: goto yy13;
	}
yy26:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x85: goto yy16;
		case 0x8B:
		case 0x93: goto yy19;
		case 0x97: goto yy31;
		case 0xA5: goto yy14;
		default: goto yy13;
	}
yy27:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xAF: goto yy19;
		default: goto yy13;
	}
yy28:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB6:
		case 0xB7:
		case 0xB8:
		case 0xB9:
		case 0xBA:
		case 0xBB:
		case 0xBC:
		case 0xBD:
		case 0xBE:
		case 0xBF: goto yy3;
		default: goto yy13;
	}
yy29:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x80:
		case 0x81:
		case 0x82:
		case 0x83:
		case 0x84:
		case 0x85:
		case 0x86:
		case 0x87:
		case 0x88:
		case 0x89:
		case 0x90:
		case 0x91:
		case 0x92:
		case 0x93:
		case 0x94:
		case 0x95:
		case 0x96:
		case 0x97:
		case 0x98:
		case 0x99:
		case 0x9A:
		case 0x9B:
		case 0x9C:
		case 0x9D:
		case 0x9E:
		case 0x9F:
		case 0xA0:
		case 0xA1:
		case 0xA2:
		case 0xA3: goto yy3;
		default: goto yy13;
	}
yy30:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x8E:
		case 0x8F:
		case 0x90:
		case 0x91:
		case 0x92:
		case 0x93:
		case 0x94:
		case 0x95:
		case 0x96:
		case 0x97:
		case 0x98:
		case 0x99:
		case 0x9A:
		case 0x9B:
		case 0x9C:
		case 0x9D:
		case 0x9E:
		case 0x9F:
		case 0xA0:
		case 0xA1:
		case 0xA2:
		case 0xA3:
		case 0xA4:
		case 0xA5:
		case 0xA6:
		case 0xA7:
		case 0xA8:
		case 0xA9:
		case 0xAA:
		case 0xAB:
		case 0xAC:
		case 0xAD:
		case 0xAE:
		case 0xAF:
		case 0xB0:
		case 0xB1:
		case 0xB2:
		case 0xB3:
		case 0xB4:
		case 0xB5:
		case 0xB6:
		case 0xB7:
		case 0xB8:
		case 0xB9:
		case 0xBA:
		case 0xBB:
		case 0xBC:
		case 0xBD:
		case 0xBE:
		case 0xBF: goto yy3;
		default: goto yy13;
	}
yy31:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB1:
		case 0xB2:
		case 0xB3:
		case 0xB4:
		case 0xB5:
		case 0xB6:
		case 0xB7:
		case 0xB8:
		case 0xB9:
		case 0xBA: goto yy3;
		default: goto yy13;
	}
}
#line 16 "encodings/unicode_group_Nd_8.re"

}

static const uint32_t chars_Nd[] = {0x30,0x39,0x660,0x669,0x6f0,0x6f9,0x7c0,0x7c9,0x966,0x96f,0x9e6,0x9ef,0xa66,0xa6f,0xae6,0xaef,0xb66,0xb6f,0xbe6,0xbef,0xc66,0xc6f,0xce6,0xcef,0xd66,0xd6f,0xde6,0xdef,0xe50,0xe59,0xed0,0xed9,0xf20,0xf29,0x1040,0x1049,0x1090,0x1099,0x17e0,0x17e9,0x1810,0x1819,0x1946,0x194f,0x19d0,0x19d9,0x1a80,0x1a89,0x1a90,0x1a99,0x1b50,0x1b59,0x1bb0,0x1bb9,0x1c40,0x1c49,0x1c50,0x1c59,0xa620,0xa629,0xa8d0,0xa8d9,0xa900,0xa909,0xa9d0,0xa9d9,0xa9f0,0xa9f9,0xaa50,0xaa59,0xabf0,0xabf9,0xff10,0xff19,0x104a0,0x104a9,0x10d30,0x10d39,0x10d40,0x10d49,0x11066,0x1106f,0x110f0,0x110f9,0x11136,0x1113f,0x111d0,0x111d9,0x112f0,0x112f9,0x11450,0x11459,0x114d0,0x114d9,0x11650,0x11659,0x116c0,0x116c9,0x116d0,0x116e3,0x11730,0x11739,0x118e0,0x118e9,0x11950,0x11959,0x11bf0,0x11bf9,0x11c50,0x11c59,0x11d50,0x11d59,0x11da0,0x11da9,0x11de0,0x11de9,0x11f50,0x11f59,0x16130,0x16139,0x16a60,0x16a69,0x16ac0,0x16ac9,0x16b50,0x16b59,0x16d70,0x16d79,0x1ccf0,0x1ccf9,0x1d7ce,0x1d7ff,0x1e140,0x1e149,0x1e2f0,0x1e2f9,0x1e4f0,0x1e4f9,0x1e5f1,0x1e5fa,0x1e950,0x1e959,0x1fbf0,0x1fbf9,};

static uint32_t encode_utf8(const uint32_t* ranges, uint32_t ranges_count, uint8_t* s) {
	uint8_t* const s0 = s;
	for (uint32_t i = 0; i < ranges_count; i += 2)
		for (uint32_t j = ranges[i]; j <= ranges[i + 1]; ++j) s += re2c::utf8::rune_to_bytes(s, j);
	for (uint32_t i = 0; i < 6; ++i) s[i] = 0;
	return s - s0;
}

int main() {
	YYCTYPE* buffer_Nd = new YYCTYPE[4626];
	uint32_t buffer_Nd_len = encode_utf8(chars_Nd, sizeof(chars_Nd) / sizeof(uint32_t), buffer_Nd);
	if (!scan(buffer_Nd, buffer_Nd + buffer_Nd_len)) printf("test 'Nd' failed\n");
	delete[] buffer_Nd;
	return 0;
}
