/* Generated by re2c */
#line 1 "encodings/unicode_group_Me_u_encoding_policy_substitute.re"
// re2c $INPUT -o $OUTPUT -u --encoding-policy substitute
#include <stdio.h>

#define YYCTYPE unsigned int
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
Me:
	
#line 14 "encodings/unicode_group_Me_u_encoding_policy_substitute.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x000020DC) {
		if (yych <= 0x00000489) {
			if (yych >= 0x00000488) goto yy2;
		} else {
			if (yych == 0x00001ABE) goto yy2;
		}
	} else {
		if (yych <= 0x000020E4) {
			if (yych != 0x000020E1) goto yy2;
		} else {
			if (yych <= 0x0000A66F) goto yy1;
			if (yych <= 0x0000A672) goto yy2;
		}
	}
yy1:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Me_u_encoding_policy_substitute.re"
	{ return YYCURSOR == limit; }
#line 36 "encodings/unicode_group_Me_u_encoding_policy_substitute.c"
yy2:
	++YYCURSOR;
#line 13 "encodings/unicode_group_Me_u_encoding_policy_substitute.re"
	{ goto Me; }
#line 41 "encodings/unicode_group_Me_u_encoding_policy_substitute.c"
}
#line 15 "encodings/unicode_group_Me_u_encoding_policy_substitute.re"

}
static const unsigned int chars_Me [] = {0x488,0x489,  0x1abe,0x1abe,  0x20dd,0x20e0,  0x20e2,0x20e4,  0xa670,0xa672,  0x0,0x0};
static unsigned int encode_utf32 (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)
			*s++ = j;
	return s - s_start;
}

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