/* Generated by re2c */
#line 1 "encodings/unicode_group_Sk_x.re"
// re2c $INPUT -o $OUTPUT -x
#include <stdint.h>
#include <stdio.h>
#include "utf16.h"
#define YYCTYPE uint16_t

bool scan(const YYCTYPE* start, const YYCTYPE* const limit) {
	__attribute__((unused)) const YYCTYPE* YYMARKER;
#define YYCURSOR start
Sk:

#line 15 "encodings/unicode_group_Sk_x.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x1FBE) {
		if (yych <= 0x02D1) {
			if (yych <= 0x00AE) {
				if (yych <= '_') {
					if (yych == '^') goto yy3;
				} else {
					if (yych <= '`') goto yy3;
					if (yych == 0x00A8) goto yy3;
				}
			} else {
				if (yych <= 0x00B7) {
					if (yych <= 0x00AF) goto yy3;
					if (yych == 0x00B4) goto yy3;
				} else {
					if (yych <= 0x00B8) goto yy3;
					if (yych <= 0x02C1) goto yy1;
					if (yych <= 0x02C5) goto yy3;
				}
			}
		} else {
			if (yych <= 0x0374) {
				if (yych <= 0x02EC) {
					if (yych <= 0x02DF) goto yy3;
					if (yych <= 0x02E4) goto yy1;
					if (yych <= 0x02EB) goto yy3;
				} else {
					if (yych == 0x02EE) goto yy1;
					if (yych <= 0x02FF) goto yy3;
				}
			} else {
				if (yych <= 0x0887) {
					if (yych <= 0x0375) goto yy3;
					if (yych <= 0x0383) goto yy1;
					if (yych <= 0x0385) goto yy3;
				} else {
					if (yych <= 0x0888) goto yy3;
					if (yych == 0x1FBD) goto yy3;
				}
			}
		}
	} else {
		if (yych <= 0xA788) {
			if (yych <= 0x1FFC) {
				if (yych <= 0x1FDC) {
					if (yych <= 0x1FC1) goto yy3;
					if (yych <= 0x1FCC) goto yy1;
					if (yych <= 0x1FCF) goto yy3;
				} else {
					if (yych <= 0x1FDF) goto yy3;
					if (yych <= 0x1FEC) goto yy1;
					if (yych <= 0x1FEF) goto yy3;
				}
			} else {
				if (yych <= 0xA6FF) {
					if (yych <= 0x1FFE) goto yy3;
					if (yych <= 0x309A) goto yy1;
					if (yych <= 0x309C) goto yy3;
				} else {
					if (yych <= 0xA716) goto yy3;
					if (yych <= 0xA71F) goto yy1;
					if (yych <= 0xA721) goto yy3;
				}
			}
		} else {
			if (yych <= 0xFBB1) {
				if (yych <= 0xAB69) {
					if (yych <= 0xA78A) goto yy3;
					if (yych == 0xAB5B) goto yy3;
				} else {
					if (yych <= 0xAB6B) goto yy3;
					if (yych == 0xD83C) goto yy4;
				}
			} else {
				if (yych <= 0xFF3F) {
					if (yych <= 0xFBC2) goto yy3;
					if (yych == 0xFF3E) goto yy3;
				} else {
					if (yych <= 0xFF40) goto yy3;
					if (yych == 0xFFE3) goto yy3;
				}
			}
		}
	}
yy1:
	++YYCURSOR;
yy2:
#line 15 "encodings/unicode_group_Sk_x.re"
	{ return YYCURSOR - 1 == limit; }
#line 107 "encodings/unicode_group_Sk_x.c"
yy3:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Sk_x.re"
	{ goto Sk; }
#line 112 "encodings/unicode_group_Sk_x.c"
yy4:
	yych = *++YYCURSOR;
	if (yych <= 0xDFFA) goto yy2;
	if (yych <= 0xDFFF) goto yy3;
	goto yy2;
}
#line 16 "encodings/unicode_group_Sk_x.re"

}

static const uint32_t chars_Sk[] = {0x5e,0x5e,0x60,0x60,0xa8,0xa8,0xaf,0xaf,0xb4,0xb4,0xb8,0xb8,0x2c2,0x2c5,0x2d2,0x2df,0x2e5,0x2eb,0x2ed,0x2ed,0x2ef,0x2ff,0x375,0x375,0x384,0x385,0x888,0x888,0x1fbd,0x1fbd,0x1fbf,0x1fc1,0x1fcd,0x1fcf,0x1fdd,0x1fdf,0x1fed,0x1fef,0x1ffd,0x1ffe,0x309b,0x309c,0xa700,0xa716,0xa720,0xa721,0xa789,0xa78a,0xab5b,0xab5b,0xab6a,0xab6b,0xfbb2,0xfbc2,0xff3e,0xff3e,0xff40,0xff40,0xffe3,0xffe3,0x1f3fb,0x1f3ff,};

static uint32_t encode_utf16(const uint32_t* ranges, uint32_t ranges_count, uint16_t* s) {
	uint16_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)
			if (j <= re2c::utf16::MAX_1WORD_RUNE) {
				*s++ = j;
			} else {
				*s++ = re2c::utf16::lead_surr(j);
				*s++ = re2c::utf16::trail_surr(j);
			}
	for (uint32_t i = 0; i < 2; ++i) s[i] = 0;
	return s - s0;
}

int main() {
	YYCTYPE* buffer_Sk = new YYCTYPE[252];
	uint32_t buffer_Sk_len = encode_utf16(chars_Sk, sizeof(chars_Sk) / sizeof(uint32_t), buffer_Sk);
	if (!scan(buffer_Sk, buffer_Sk + buffer_Sk_len)) printf("test 'Sk' failed\n");
	delete[] buffer_Sk;
	return 0;
}
