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

#line 15 "encodings/unicode_group_Me_x.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x20DC) {
		if (yych <= 0x0489) {
			if (yych >= 0x0488) goto yy2;
		} else {
			if (yych == 0x1ABE) goto yy2;
		}
	} else {
		if (yych <= 0x20E4) {
			if (yych != 0x20E1) goto yy2;
		} else {
			if (yych <= 0xA66F) goto yy1;
			if (yych <= 0xA672) goto yy2;
		}
	}
yy1:
	++YYCURSOR;
#line 15 "encodings/unicode_group_Me_x.re"
	{ return YYCURSOR - 1 == limit; }
#line 37 "encodings/unicode_group_Me_x.c"
yy2:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Me_x.re"
	{ goto Me; }
#line 42 "encodings/unicode_group_Me_x.c"
}
#line 16 "encodings/unicode_group_Me_x.re"

}

static const uint32_t chars_Me[] = {0x488,0x489,0x1abe,0x1abe,0x20dd,0x20e0,0x20e2,0x20e4,0xa670,0xa672,};

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_Me = new YYCTYPE[28];
	uint32_t buffer_Me_len = encode_utf16(chars_Me, sizeof(chars_Me) / sizeof(uint32_t), buffer_Me);
	if (!scan(buffer_Me, buffer_Me + buffer_Me_len)) printf("test 'Me' failed\n");
	delete[] buffer_Me;
	return 0;
}
