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

#line 15 "encodings/unicode_group_Sc_8.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	switch (yych) {
		case '$': goto yy3;
		case 0xC2: goto yy4;
		case 0xD6: goto yy5;
		case 0xD8: goto yy6;
		case 0xDF: goto yy7;
		case 0xE0: goto yy8;
		case 0xE1: goto yy9;
		case 0xE2: goto yy10;
		case 0xEA: goto yy11;
		case 0xEF: goto yy12;
		case 0xF0: goto yy13;
		default: goto yy1;
	}
yy1:
	++YYCURSOR;
yy2:
#line 15 "encodings/unicode_group_Sc_8.re"
	{ return YYCURSOR - 1 == limit; }
#line 38 "encodings/unicode_group_Sc_8.c"
yy3:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Sc_8.re"
	{ goto Sc; }
#line 43 "encodings/unicode_group_Sc_8.c"
yy4:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xA2:
		case 0xA3:
		case 0xA4:
		case 0xA5: goto yy3;
		default: goto yy2;
	}
yy5:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x8F: goto yy3;
		default: goto yy2;
	}
yy6:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x8B: goto yy3;
		default: goto yy2;
	}
yy7:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xBE:
		case 0xBF: goto yy3;
		default: goto yy2;
	}
yy8:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0xA7: goto yy14;
		case 0xAB: goto yy16;
		case 0xAF: goto yy17;
		case 0xB8: goto yy18;
		default: goto yy2;
	}
yy9:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x9F: goto yy19;
		default: goto yy2;
	}
yy10:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x82: goto yy20;
		case 0x83: goto yy21;
		default: goto yy2;
	}
yy11:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0xA0: goto yy22;
		default: goto yy2;
	}
yy12:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0xB7: goto yy23;
		case 0xB9: goto yy24;
		case 0xBC: goto yy25;
		case 0xBF: goto yy26;
		default: goto yy2;
	}
yy13:
	yych = *(YYMARKER = ++YYCURSOR);
	switch (yych) {
		case 0x91: goto yy27;
		case 0x9E: goto yy28;
		default: goto yy2;
	}
yy14:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB2:
		case 0xB3:
		case 0xBB: goto yy3;
		default: goto yy15;
	}
yy15:
	YYCURSOR = YYMARKER;
	goto yy2;
yy16:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB1: goto yy3;
		default: goto yy15;
	}
yy17:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB9: goto yy3;
		default: goto yy15;
	}
yy18:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xBF: goto yy3;
		default: goto yy15;
	}
yy19:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x9B: goto yy3;
		default: goto yy15;
	}
yy20:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xA0:
		case 0xA1:
		case 0xA2:
		case 0xA3:
		case 0xA4:
		case 0xA5:
		case 0xA6:
		case 0xA7:
		case 0xA8:
		case 0xA9:
		case 0xAA:
		case 0xAB:
		case 0xAC:
		case 0xAD:
		case 0xAE:
		case 0xAF:
		case 0xB0:
		case 0xB1:
		case 0xB2:
		case 0xB3:
		case 0xB4:
		case 0xB5:
		case 0xB6:
		case 0xB7:
		case 0xB8:
		case 0xB9:
		case 0xBA:
		case 0xBB:
		case 0xBC:
		case 0xBD:
		case 0xBE:
		case 0xBF: goto yy3;
		default: goto yy15;
	}
yy21:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x80:
		case 0x81: goto yy3;
		default: goto yy15;
	}
yy22:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB8: goto yy3;
		default: goto yy15;
	}
yy23:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xBC: goto yy3;
		default: goto yy15;
	}
yy24:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xA9: goto yy3;
		default: goto yy15;
	}
yy25:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x84: goto yy3;
		default: goto yy15;
	}
yy26:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xA0:
		case 0xA1:
		case 0xA5:
		case 0xA6: goto yy3;
		default: goto yy15;
	}
yy27:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xBF: goto yy29;
		default: goto yy15;
	}
yy28:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x8B: goto yy18;
		case 0xB2: goto yy30;
		default: goto yy15;
	}
yy29:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0x9D:
		case 0x9E:
		case 0x9F:
		case 0xA0: goto yy3;
		default: goto yy15;
	}
yy30:
	yych = *++YYCURSOR;
	switch (yych) {
		case 0xB0: goto yy3;
		default: goto yy15;
	}
}
#line 16 "encodings/unicode_group_Sc_8.re"

}

static const uint32_t chars_Sc[] = {0x24,0x24,0xa2,0xa5,0x58f,0x58f,0x60b,0x60b,0x7fe,0x7ff,0x9f2,0x9f3,0x9fb,0x9fb,0xaf1,0xaf1,0xbf9,0xbf9,0xe3f,0xe3f,0x17db,0x17db,0x20a0,0x20c1,0xa838,0xa838,0xfdfc,0xfdfc,0xfe69,0xfe69,0xff04,0xff04,0xffe0,0xffe1,0xffe5,0xffe6,0x11fdd,0x11fe0,0x1e2ff,0x1e2ff,0x1ecb0,0x1ecb0,};

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_Sc = new YYCTYPE[390];
	uint32_t buffer_Sc_len = encode_utf8(chars_Sc, sizeof(chars_Sc) / sizeof(uint32_t), buffer_Sc);
	if (!scan(buffer_Sc, buffer_Sc + buffer_Sc_len)) printf("test 'Sc' failed\n");
	delete[] buffer_Sc;
	return 0;
}
