/* Generated by re2c */
#line 1 "encodings/unicode_group_Nl_x_encoding_policy_ignore.re"
// re2c $INPUT -o $OUTPUT -x --encoding-policy ignore
#include <stdio.h>
#include "utf16.h"
#define YYCTYPE unsigned short
bool scan(const YYCTYPE * start, const YYCTYPE * const limit)
{
	__attribute__((unused)) const YYCTYPE * YYMARKER; // silence compiler warnings when YYMARKER is not used
#	define YYCURSOR start
Nl:
	
#line 14 "encodings/unicode_group_Nl_x_encoding_policy_ignore.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x3020) {
		if (yych <= 0x2182) {
			if (yych <= 0x16ED) goto yy1;
			if (yych <= 0x16F0) goto yy3;
			if (yych >= 0x2160) goto yy3;
		} else {
			if (yych <= 0x2188) {
				if (yych >= 0x2185) goto yy3;
			} else {
				if (yych == 0x3007) goto yy3;
			}
		}
	} else {
		if (yych <= 0xA6EF) {
			if (yych <= 0x3037) {
				if (yych <= 0x3029) goto yy3;
			} else {
				if (yych <= 0x303A) goto yy3;
				if (yych >= 0xA6E6) goto yy3;
			}
		} else {
			if (yych <= 0xD800) {
				if (yych >= 0xD800) goto yy4;
			} else {
				if (yych == 0xD809) goto yy5;
			}
		}
	}
yy1:
	++YYCURSOR;
yy2:
#line 14 "encodings/unicode_group_Nl_x_encoding_policy_ignore.re"
	{ return YYCURSOR == limit; }
#line 51 "encodings/unicode_group_Nl_x_encoding_policy_ignore.c"
yy3:
	++YYCURSOR;
#line 13 "encodings/unicode_group_Nl_x_encoding_policy_ignore.re"
	{ goto Nl; }
#line 56 "encodings/unicode_group_Nl_x_encoding_policy_ignore.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;
}
#line 15 "encodings/unicode_group_Nl_x_encoding_policy_ignore.re"

}
static const unsigned int 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,  0x0,0x0};
static unsigned int encode_utf16 (const unsigned int * ranges, unsigned int ranges_count, unsigned int * s)
{
	unsigned int * const s_start = s;
	for (unsigned int i = 0; i < ranges_count; i += 2)
		for (unsigned int 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);
			}
		}
	return s - s_start;
}

int main ()
{
	unsigned int * buffer_Nl = new unsigned int [474];
	YYCTYPE * s = (YYCTYPE *) buffer_Nl;
	unsigned int buffer_len = encode_utf16 (chars_Nl, sizeof (chars_Nl) / sizeof (unsigned int), buffer_Nl);
	/* convert 32-bit code units to YYCTYPE; reuse the same buffer */
	for (unsigned int i = 0; i < buffer_len; ++i) s[i] = buffer_Nl[i];
	if (!scan (s, s + buffer_len))
		printf("test 'Nl' failed\n");
	delete [] buffer_Nl;
	return 0;
}
