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

#line 14 "encodings/unicode_group_Co_u.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x000EFFFF) {
		if (yych <= 0x0000DFFF) goto yy1;
		if (yych <= 0x0000F8FF) goto yy2;
	} else {
		if (yych <= 0x000FFFFD) goto yy2;
		if (yych <= 0x000FFFFF) goto yy1;
		if (yych <= 0x0010FFFD) goto yy2;
	}
yy1:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Co_u.re"
	{ return YYCURSOR - 1 == limit; }
#line 30 "encodings/unicode_group_Co_u.c"
yy2:
	++YYCURSOR;
#line 13 "encodings/unicode_group_Co_u.re"
	{ goto Co; }
#line 35 "encodings/unicode_group_Co_u.c"
}
#line 15 "encodings/unicode_group_Co_u.re"

}

static const uint32_t chars_Co[] = {0xe000,0xf8ff,0xf0000,0xffffd,0x100000,0x10fffd,};

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_Co = new YYCTYPE[137469];
	uint32_t buffer_Co_len = encode_utf32(chars_Co, sizeof(chars_Co) / sizeof(uint32_t), buffer_Co);
	if (!scan(buffer_Co, buffer_Co + buffer_Co_len)) printf("test 'Co' failed\n");
	delete[] buffer_Co;
	return 0;
}
