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

#line 15 "encodings/unicode_group_Lt_x.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x1F8F) {
		if (yych <= 0x01CA) {
			if (yych <= 0x01C5) {
				if (yych >= 0x01C5) goto yy2;
			} else {
				if (yych == 0x01C8) goto yy2;
			}
		} else {
			if (yych <= 0x01F1) {
				if (yych <= 0x01CB) goto yy2;
			} else {
				if (yych <= 0x01F2) goto yy2;
				if (yych >= 0x1F88) goto yy2;
			}
		}
	} else {
		if (yych <= 0x1FBB) {
			if (yych <= 0x1F9F) {
				if (yych >= 0x1F98) goto yy2;
			} else {
				if (yych <= 0x1FA7) goto yy1;
				if (yych <= 0x1FAF) goto yy2;
			}
		} else {
			if (yych <= 0x1FCC) {
				if (yych <= 0x1FBC) goto yy2;
				if (yych >= 0x1FCC) goto yy2;
			} else {
				if (yych == 0x1FFC) goto yy2;
			}
		}
	}
yy1:
	++YYCURSOR;
#line 15 "encodings/unicode_group_Lt_x.re"
	{ return YYCURSOR - 1 == limit; }
#line 55 "encodings/unicode_group_Lt_x.c"
yy2:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Lt_x.re"
	{ goto Lt; }
#line 60 "encodings/unicode_group_Lt_x.c"
}
#line 16 "encodings/unicode_group_Lt_x.re"

}

static const uint32_t chars_Lt[] = {0x1c5,0x1c5,0x1c8,0x1c8,0x1cb,0x1cb,0x1f2,0x1f2,0x1f88,0x1f8f,0x1f98,0x1f9f,0x1fa8,0x1faf,0x1fbc,0x1fbc,0x1fcc,0x1fcc,0x1ffc,0x1ffc,};

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_Lt = new YYCTYPE[64];
	uint32_t buffer_Lt_len = encode_utf16(chars_Lt, sizeof(chars_Lt) / sizeof(uint32_t), buffer_Lt);
	if (!scan(buffer_Lt, buffer_Lt + buffer_Lt_len)) printf("test 'Lt' failed\n");
	delete[] buffer_Lt;
	return 0;
}
