/* Generated by re2c */
#line 1 "encodings/unicode_group_Pc_u.re"
// re2c $INPUT -o $OUTPUT -u
#include <stdint.h>
#include <stdio.h>
#define YYCTYPE uint32_t

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

#line 14 "encodings/unicode_group_Pc_u.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x00002054) {
		if (yych <= 0x0000203E) {
			if (yych == '_') goto yy2;
		} else {
			if (yych <= 0x00002040) goto yy2;
			if (yych >= 0x00002054) goto yy2;
		}
	} else {
		if (yych <= 0x0000FE4C) {
			if (yych <= 0x0000FE32) goto yy1;
			if (yych <= 0x0000FE34) goto yy2;
		} else {
			if (yych <= 0x0000FE4F) goto yy2;
			if (yych == 0x0000FF3F) goto yy2;
		}
	}
yy1:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Pc_u.re"
	{ return YYCURSOR - 1 == limit; }
#line 38 "encodings/unicode_group_Pc_u.c"
yy2:
	++YYCURSOR;
#line 13 "encodings/unicode_group_Pc_u.re"
	{ goto Pc; }
#line 43 "encodings/unicode_group_Pc_u.c"
}
#line 15 "encodings/unicode_group_Pc_u.re"

}

static const uint32_t chars_Pc[] = {0x5f,0x5f,0x203f,0x2040,0x2054,0x2054,0xfe33,0xfe34,0xfe4d,0xfe4f,0xff3f,0xff3f,};

static uint32_t encode_utf32(const uint32_t* ranges, uint32_t ranges_count, uint32_t* s) {
	uint32_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++ = j;
	for (uint32_t i = 0; i < 1; ++i) s[i] = 0;
	return s - s0;
}

int main() {
	YYCTYPE* buffer_Pc = new YYCTYPE[11];
	uint32_t buffer_Pc_len = encode_utf32(chars_Pc, sizeof(chars_Pc) / sizeof(uint32_t), buffer_Pc);
	if (!scan(buffer_Pc, buffer_Pc + buffer_Pc_len)) printf("test 'Pc' failed\n");
	delete[] buffer_Pc;
	return 0;
}
