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

#line 14 "encodings/unicode_group_Sc_u.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x000017DA) {
		if (yych <= 0x000007FF) {
			if (yych <= 0x0000058E) {
				if (yych <= '$') {
					if (yych >= '$') goto yy2;
				} else {
					if (yych <= 0x000000A1) goto yy1;
					if (yych <= 0x000000A5) goto yy2;
				}
			} else {
				if (yych <= 0x0000060A) {
					if (yych <= 0x0000058F) goto yy2;
				} else {
					if (yych <= 0x0000060B) goto yy2;
					if (yych >= 0x000007FE) goto yy2;
				}
			}
		} else {
			if (yych <= 0x00000AF0) {
				if (yych <= 0x000009F3) {
					if (yych >= 0x000009F2) goto yy2;
				} else {
					if (yych == 0x000009FB) goto yy2;
				}
			} else {
				if (yych <= 0x00000BF9) {
					if (yych <= 0x00000AF1) goto yy2;
					if (yych >= 0x00000BF9) goto yy2;
				} else {
					if (yych == 0x00000E3F) goto yy2;
				}
			}
		}
	} else {
		if (yych <= 0x0000FF04) {
			if (yych <= 0x0000A838) {
				if (yych <= 0x0000209F) {
					if (yych <= 0x000017DB) goto yy2;
				} else {
					if (yych <= 0x000020C1) goto yy2;
					if (yych >= 0x0000A838) goto yy2;
				}
			} else {
				if (yych <= 0x0000FE68) {
					if (yych == 0x0000FDFC) goto yy2;
				} else {
					if (yych <= 0x0000FE69) goto yy2;
					if (yych >= 0x0000FF04) goto yy2;
				}
			}
		} else {
			if (yych <= 0x00011FDC) {
				if (yych <= 0x0000FFE1) {
					if (yych >= 0x0000FFE0) goto yy2;
				} else {
					if (yych <= 0x0000FFE4) goto yy1;
					if (yych <= 0x0000FFE6) goto yy2;
				}
			} else {
				if (yych <= 0x0001E2FF) {
					if (yych <= 0x00011FE0) goto yy2;
					if (yych >= 0x0001E2FF) goto yy2;
				} else {
					if (yych == 0x0001ECB0) goto yy2;
				}
			}
		}
	}
yy1:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Sc_u.re"
	{ return YYCURSOR - 1 == limit; }
#line 90 "encodings/unicode_group_Sc_u.c"
yy2:
	++YYCURSOR;
#line 13 "encodings/unicode_group_Sc_u.re"
	{ goto Sc; }
#line 95 "encodings/unicode_group_Sc_u.c"
}
#line 15 "encodings/unicode_group_Sc_u.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_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_Sc = new YYCTYPE[65];
	uint32_t buffer_Sc_len = encode_utf32(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;
}
