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

#line 14 "encodings/unicode_group_Z_u.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x0000200A) {
		if (yych <= 0x000000A0) {
			if (yych == ' ') goto yy2;
			if (yych >= 0x000000A0) goto yy2;
		} else {
			if (yych == 0x00001680) goto yy2;
			if (yych >= 0x00002000) goto yy2;
		}
	} else {
		if (yych <= 0x0000202F) {
			if (yych <= 0x00002027) goto yy1;
			if (yych <= 0x00002029) goto yy2;
			if (yych >= 0x0000202F) goto yy2;
		} else {
			if (yych <= 0x0000205F) {
				if (yych >= 0x0000205F) goto yy2;
			} else {
				if (yych == 0x00003000) goto yy2;
			}
		}
	}
yy1:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Z_u.re"
	{ return YYCURSOR - 1 == limit; }
#line 43 "encodings/unicode_group_Z_u.c"
yy2:
	++YYCURSOR;
#line 13 "encodings/unicode_group_Z_u.re"
	{ goto Z; }
#line 48 "encodings/unicode_group_Z_u.c"
}
#line 15 "encodings/unicode_group_Z_u.re"

}

static const uint32_t chars_Z[] = {0x20,0x20,0xa0,0xa0,0x1680,0x1680,0x2000,0x200a,0x2028,0x2029,0x202f,0x202f,0x205f,0x205f,0x3000,0x3000,};

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_Z = new YYCTYPE[20];
	uint32_t buffer_Z_len = encode_utf32(chars_Z, sizeof(chars_Z) / sizeof(uint32_t), buffer_Z);
	if (!scan(buffer_Z, buffer_Z + buffer_Z_len)) printf("test 'Z' failed\n");
	delete[] buffer_Z;
	return 0;
}
