/* Generated by re2c */
#line 1 "encodings/unicode_group_Pd_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
Pd:

#line 15 "encodings/unicode_group_Pd_8.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	switch (yych) {
		case '-': goto yy3;
		case 0xD6: goto yy4;
		case 0xE1: goto yy5;
		case 0xE2: goto yy6;
		case 0xE3: goto yy7;
		case 0xEF: goto yy8;
		case 0xF0: goto yy9;
		default: goto yy1;
	}
yy1:
	++YYCURSOR;
yy2:
#line 15 "encodings/unicode_group_Pd_8.re"
	{ return YYCURSOR - 1 == limit; }
#line 34 "encodings/unicode_group_Pd_8.c"
yy3:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Pd_8.re"
	{ goto Pd; }
#line 39 "encodings/unicode_group_Pd_8.c"
yy4:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x8A:
		case 0xBE: goto yy3;
		default: goto yy2;
	}
yy5:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x90: goto yy10;
		case 0xA0: goto yy12;
		default: goto yy2;
	}
yy6:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x80: goto yy13;
		case 0xB8: goto yy14;
		case 0xB9: goto yy15;
		default: goto yy2;
	}
yy7:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x80: goto yy16;
		case 0x82: goto yy17;
		default: goto yy2;
	}
yy8:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0xB8: goto yy18;
		case 0xB9: goto yy19;
		case 0xBC: goto yy20;
		default: goto yy2;
	}
yy9:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x90: goto yy21;
		default: goto yy2;
	}
yy10:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x80: goto yy3;
		default: goto yy11;
	}
yy11:
	YYCURSOR = YYMARKER;
	goto yy2;
yy12:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x86: goto yy3;
		default: goto yy11;
	}
yy13:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x90:
		case 0x91:
		case 0x92:
		case 0x93:
		case 0x94:
		case 0x95: goto yy3;
		default: goto yy11;
	}
yy14:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x97:
		case 0x9A:
		case 0xBA:
		case 0xBB: goto yy3;
		default: goto yy11;
	}
yy15:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x80:
		case 0x9D: goto yy3;
		default: goto yy11;
	}
yy16:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x9C:
		case 0xB0: goto yy3;
		default: goto yy11;
	}
yy17:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xA0: goto yy3;
		default: goto yy11;
	}
yy18:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB1:
		case 0xB2: goto yy3;
		default: goto yy11;
	}
yy19:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x98:
		case 0xA3: goto yy3;
		default: goto yy11;
	}
yy20:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x8D: goto yy3;
		default: goto yy11;
	}
yy21:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB5: goto yy22;
		case 0xBA: goto yy23;
		default: goto yy11;
	}
yy22:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xAE: goto yy3;
		default: goto yy11;
	}
yy23:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xAD: goto yy3;
		default: goto yy11;
	}
}
#line 16 "encodings/unicode_group_Pd_8.re"

}

static const uint32_t chars_Pd[] = {0x2d,0x2d,0x58a,0x58a,0x5be,0x5be,0x1400,0x1400,0x1806,0x1806,0x2010,0x2015,0x2e17,0x2e17,0x2e1a,0x2e1a,0x2e3a,0x2e3b,0x2e40,0x2e40,0x2e5d,0x2e5d,0x301c,0x301c,0x3030,0x3030,0x30a0,0x30a0,0xfe31,0xfe32,0xfe58,0xfe58,0xfe63,0xfe63,0xff0d,0xff0d,0x10d6e,0x10d6e,0x10ead,0x10ead,};

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_Pd = new YYCTYPE[168];
	uint32_t buffer_Pd_len = encode_utf8(chars_Pd, sizeof(chars_Pd) / sizeof(uint32_t), buffer_Pd);
	if (!scan(buffer_Pd, buffer_Pd + buffer_Pd_len)) printf("test 'Pd' failed\n");
	delete[] buffer_Pd;
	return 0;
}
