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

#line 15 "encodings/unicode_group_Cf_x.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x2029) {
		if (yych <= 0x070E) {
			if (yych <= 0x0605) {
				if (yych == 0x00AD) goto yy3;
				if (yych >= 0x0600) goto yy3;
			} else {
				if (yych <= 0x061C) {
					if (yych >= 0x061C) goto yy3;
				} else {
					if (yych == 0x06DD) goto yy3;
				}
			}
		} else {
			if (yych <= 0x08E2) {
				if (yych <= 0x088F) {
					if (yych <= 0x070F) goto yy3;
				} else {
					if (yych <= 0x0891) goto yy3;
					if (yych >= 0x08E2) goto yy3;
				}
			} else {
				if (yych <= 0x180E) {
					if (yych >= 0x180E) goto yy3;
				} else {
					if (yych <= 0x200A) goto yy1;
					if (yych <= 0x200F) goto yy3;
				}
			}
		}
	} else {
		if (yych <= 0xD82E) {
			if (yych <= 0x206F) {
				if (yych <= 0x205F) {
					if (yych <= 0x202E) goto yy3;
				} else {
					if (yych != 0x2065) goto yy3;
				}
			} else {
				if (yych <= 0xD804) {
					if (yych >= 0xD804) goto yy4;
				} else {
					if (yych == 0xD80D) goto yy5;
				}
			}
		} else {
			if (yych <= 0xDB40) {
				if (yych <= 0xD833) {
					if (yych <= 0xD82F) goto yy6;
				} else {
					if (yych <= 0xD834) goto yy7;
					if (yych >= 0xDB40) goto yy8;
				}
			} else {
				if (yych <= 0xFEFF) {
					if (yych >= 0xFEFF) goto yy3;
				} else {
					if (yych <= 0xFFF8) goto yy1;
					if (yych <= 0xFFFB) goto yy3;
				}
			}
		}
	}
yy1:
	++YYCURSOR;
yy2:
#line 15 "encodings/unicode_group_Cf_x.re"
	{ return YYCURSOR - 1 == limit; }
#line 86 "encodings/unicode_group_Cf_x.c"
yy3:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Cf_x.re"
	{ goto Cf; }
#line 91 "encodings/unicode_group_Cf_x.c"
yy4:
	yych = *++YYCURSOR;
	if (yych == 0xDCBD) goto yy3;
	if (yych == 0xDCCD) goto yy3;
	goto yy2;
yy5:
	yych = *++YYCURSOR;
	if (yych <= 0xDC2F) goto yy2;
	if (yych <= 0xDC3F) goto yy3;
	goto yy2;
yy6:
	yych = *++YYCURSOR;
	if (yych <= 0xDC9F) goto yy2;
	if (yych <= 0xDCA3) goto yy3;
	goto yy2;
yy7:
	yych = *++YYCURSOR;
	if (yych <= 0xDD72) goto yy2;
	if (yych <= 0xDD7A) goto yy3;
	goto yy2;
yy8:
	yych = *++YYCURSOR;
	if (yych == 0xDC01) goto yy3;
	if (yych <= 0xDC1F) goto yy2;
	if (yych <= 0xDC7F) goto yy3;
	goto yy2;
}
#line 16 "encodings/unicode_group_Cf_x.re"

}

static const uint32_t chars_Cf[] = {0xad,0xad,0x600,0x605,0x61c,0x61c,0x6dd,0x6dd,0x70f,0x70f,0x890,0x891,0x8e2,0x8e2,0x180e,0x180e,0x200b,0x200f,0x202a,0x202e,0x2060,0x2064,0x2066,0x206f,0xfeff,0xfeff,0xfff9,0xfffb,0x110bd,0x110bd,0x110cd,0x110cd,0x13430,0x1343f,0x1bca0,0x1bca3,0x1d173,0x1d17a,0xe0001,0xe0001,0xe0020,0xe007f,};

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_Cf = new YYCTYPE[342];
	uint32_t buffer_Cf_len = encode_utf16(chars_Cf, sizeof(chars_Cf) / sizeof(uint32_t), buffer_Cf);
	if (!scan(buffer_Cf, buffer_Cf + buffer_Cf_len)) printf("test 'Cf' failed\n");
	delete[] buffer_Cf;
	return 0;
}
