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

#line 15 "encodings/unicode_group_Z_8.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	switch (yych) {
		case ' ': goto yy3;
		case 0xC2: goto yy4;
		case 0xE1: goto yy5;
		case 0xE2: goto yy6;
		case 0xE3: goto yy7;
		default: goto yy1;
	}
yy1:
	++YYCURSOR;
yy2:
#line 15 "encodings/unicode_group_Z_8.re"
	{ return YYCURSOR - 1 == limit; }
#line 32 "encodings/unicode_group_Z_8.c"
yy3:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Z_8.re"
	{ goto Z; }
#line 37 "encodings/unicode_group_Z_8.c"
yy4:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xA0: goto yy3;
		default: goto yy2;
	}
yy5:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x9A: goto yy8;
		default: goto yy2;
	}
yy6:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x80: goto yy10;
		case 0x81: goto yy11;
		default: goto yy2;
	}
yy7:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x80: goto yy8;
		default: goto yy2;
	}
yy8:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x80: goto yy3;
		default: goto yy9;
	}
yy9:
	YYCURSOR = YYMARKER;
	goto yy2;
yy10:
	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 0x8A:
		case 0xA8:
		case 0xA9:
		case 0xAF: goto yy3;
		default: goto yy9;
	}
yy11:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x9F: goto yy3;
		default: goto yy9;
	}
}
#line 16 "encodings/unicode_group_Z_8.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_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_Z = new YYCTYPE[120];
	uint32_t buffer_Z_len = encode_utf8(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;
}
