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

#line 15 "encodings/unicode_group_Nl_x.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x3029) {
		if (yych <= 0x2184) {
			if (yych <= 0x16F0) {
				if (yych >= 0x16EE) goto yy3;
			} else {
				if (yych <= 0x215F) goto yy1;
				if (yych <= 0x2182) goto yy3;
			}
		} else {
			if (yych <= 0x3006) {
				if (yych <= 0x2188) goto yy3;
			} else {
				if (yych <= 0x3007) goto yy3;
				if (yych >= 0x3021) goto yy3;
			}
		}
	} else {
		if (yych <= 0xD7FF) {
			if (yych <= 0x303A) {
				if (yych >= 0x3038) goto yy3;
			} else {
				if (yych <= 0xA6E5) goto yy1;
				if (yych <= 0xA6EF) goto yy3;
			}
		} else {
			if (yych <= 0xD809) {
				if (yych <= 0xD800) goto yy4;
				if (yych >= 0xD809) goto yy5;
			} else {
				if (yych == 0xD81B) goto yy6;
			}
		}
	}
yy1:
	++YYCURSOR;
yy2:
#line 15 "encodings/unicode_group_Nl_x.re"
	{ return YYCURSOR - 1 == limit; }
#line 57 "encodings/unicode_group_Nl_x.c"
yy3:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Nl_x.re"
	{ goto Nl; }
#line 62 "encodings/unicode_group_Nl_x.c"
yy4:
	yych = *++YYCURSOR;
	if (yych <= 0xDF41) {
		if (yych <= 0xDD3F) goto yy2;
		if (yych <= 0xDD74) goto yy3;
		if (yych <= 0xDF40) goto yy2;
		goto yy3;
	} else {
		if (yych <= 0xDF4A) {
			if (yych <= 0xDF49) goto yy2;
			goto yy3;
		} else {
			if (yych <= 0xDFD0) goto yy2;
			if (yych <= 0xDFD5) goto yy3;
			goto yy2;
		}
	}
yy5:
	yych = *++YYCURSOR;
	if (yych <= 0xDBFF) goto yy2;
	if (yych <= 0xDC6E) goto yy3;
	goto yy2;
yy6:
	yych = *++YYCURSOR;
	if (yych <= 0xDFF3) goto yy2;
	if (yych <= 0xDFF6) goto yy3;
	goto yy2;
}
#line 16 "encodings/unicode_group_Nl_x.re"

}

static const uint32_t chars_Nl[] = {0x16ee,0x16f0,0x2160,0x2182,0x2185,0x2188,0x3007,0x3007,0x3021,0x3029,0x3038,0x303a,0xa6e6,0xa6ef,0x10140,0x10174,0x10341,0x10341,0x1034a,0x1034a,0x103d1,0x103d5,0x12400,0x1246e,0x16ff4,0x16ff6,};

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_Nl = new YYCTYPE[480];
	uint32_t buffer_Nl_len = encode_utf16(chars_Nl, sizeof(chars_Nl) / sizeof(uint32_t), buffer_Nl);
	if (!scan(buffer_Nl, buffer_Nl + buffer_Nl_len)) printf("test 'Nl' failed\n");
	delete[] buffer_Nl;
	return 0;
}
