/* Generated by re2c */
#line 1 "encodings/unicode_group_Ps_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
Ps:
	
#line 14 "encodings/unicode_group_Ps_x_encoding_policy_ignore.c"
{
	YYCTYPE yych;
	yych = *YYCURSOR;
	if (yych <= 0x2996) {
		if (yych <= 0x276F) {
			if (yych <= 0x2045) {
				if (yych <= 0x0F3B) {
					if (yych <= '[') {
						if (yych == '(') goto yy2;
						if (yych >= '[') goto yy2;
					} else {
						if (yych <= '{') {
							if (yych >= '{') goto yy2;
						} else {
							if (yych == 0x0F3A) goto yy2;
						}
					}
				} else {
					if (yych <= 0x2019) {
						if (yych <= 0x0F3C) goto yy2;
						if (yych == 0x169B) goto yy2;
					} else {
						if (yych <= 0x201D) {
							if (yych <= 0x201A) goto yy2;
						} else {
							if (yych <= 0x201E) goto yy2;
							if (yych >= 0x2045) goto yy2;
						}
					}
				}
			} else {
				if (yych <= 0x2328) {
					if (yych <= 0x208D) {
						if (yych == 0x207D) goto yy2;
						if (yych >= 0x208D) goto yy2;
					} else {
						if (yych <= 0x2308) {
							if (yych >= 0x2308) goto yy2;
						} else {
							if (yych == 0x230A) goto yy2;
						}
					}
				} else {
					if (yych <= 0x276A) {
						if (yych <= 0x2767) {
							if (yych <= 0x2329) goto yy2;
						} else {
							if (yych != 0x2769) goto yy2;
						}
					} else {
						if (yych <= 0x276C) {
							if (yych >= 0x276C) goto yy2;
						} else {
							if (yych == 0x276E) goto yy2;
						}
					}
				}
			}
		} else {
			if (yych <= 0x2983) {
				if (yych <= 0x27E6) {
					if (yych <= 0x2773) {
						if (yych == 0x2771) goto yy1;
						if (yych <= 0x2772) goto yy2;
					} else {
						if (yych <= 0x27C4) {
							if (yych <= 0x2774) goto yy2;
						} else {
							if (yych <= 0x27C5) goto yy2;
							if (yych >= 0x27E6) goto yy2;
						}
					}
				} else {
					if (yych <= 0x27EB) {
						if (yych <= 0x27E8) {
							if (yych >= 0x27E8) goto yy2;
						} else {
							if (yych == 0x27EA) goto yy2;
						}
					} else {
						if (yych <= 0x27ED) {
							if (yych <= 0x27EC) goto yy2;
						} else {
							if (yych <= 0x27EE) goto yy2;
							if (yych >= 0x2983) goto yy2;
						}
					}
				}
			} else {
				if (yych <= 0x298C) {
					if (yych <= 0x2987) {
						if (yych == 0x2985) goto yy2;
						if (yych >= 0x2987) goto yy2;
					} else {
						if (yych <= 0x2989) {
							if (yych >= 0x2989) goto yy2;
						} else {
							if (yych == 0x298B) goto yy2;
						}
					}
				} else {
					if (yych <= 0x2991) {
						if (yych <= 0x298E) {
							if (yych <= 0x298D) goto yy2;
						} else {
							if (yych != 0x2990) goto yy2;
						}
					} else {
						if (yych <= 0x2993) {
							if (yych >= 0x2993) goto yy2;
						} else {
							if (yych == 0x2995) goto yy2;
						}
					}
				}
			}
		}
	} else {
		if (yych <= 0xFD3E) {
			if (yych <= 0x3008) {
				if (yych <= 0x2E22) {
					if (yych <= 0x29D9) {
						if (yych <= 0x2997) goto yy2;
						if (yych == 0x29D8) goto yy2;
					} else {
						if (yych <= 0x29FB) {
							if (yych <= 0x29DA) goto yy2;
						} else {
							if (yych <= 0x29FC) goto yy2;
							if (yych >= 0x2E22) goto yy2;
						}
					}
				} else {
					if (yych <= 0x2E27) {
						if (yych <= 0x2E24) {
							if (yych >= 0x2E24) goto yy2;
						} else {
							if (yych == 0x2E26) goto yy2;
						}
					} else {
						if (yych <= 0x2E41) {
							if (yych <= 0x2E28) goto yy2;
						} else {
							if (yych <= 0x2E42) goto yy2;
							if (yych >= 0x3008) goto yy2;
						}
					}
				}
			} else {
				if (yych <= 0x3013) {
					if (yych <= 0x300C) {
						if (yych == 0x300A) goto yy2;
						if (yych >= 0x300C) goto yy2;
					} else {
						if (yych <= 0x300E) {
							if (yych >= 0x300E) goto yy2;
						} else {
							if (yych == 0x3010) goto yy2;
						}
					}
				} else {
					if (yych <= 0x3018) {
						if (yych <= 0x3015) {
							if (yych <= 0x3014) goto yy2;
						} else {
							if (yych != 0x3017) goto yy2;
						}
					} else {
						if (yych <= 0x301A) {
							if (yych >= 0x301A) goto yy2;
						} else {
							if (yych == 0x301D) goto yy2;
						}
					}
				}
			}
		} else {
			if (yych <= 0xFE43) {
				if (yych <= 0xFE39) {
					if (yych <= 0xFE34) {
						if (yych <= 0xFD3F) goto yy2;
						if (yych == 0xFE17) goto yy2;
					} else {
						if (yych <= 0xFE36) {
							if (yych <= 0xFE35) goto yy2;
						} else {
							if (yych != 0xFE38) goto yy2;
						}
					}
				} else {
					if (yych <= 0xFE3E) {
						if (yych <= 0xFE3B) {
							if (yych >= 0xFE3B) goto yy2;
						} else {
							if (yych == 0xFE3D) goto yy2;
						}
					} else {
						if (yych <= 0xFE40) {
							if (yych <= 0xFE3F) goto yy2;
						} else {
							if (yych != 0xFE42) goto yy2;
						}
					}
				}
			} else {
				if (yych <= 0xFF07) {
					if (yych <= 0xFE59) {
						if (yych == 0xFE47) goto yy2;
						if (yych >= 0xFE59) goto yy2;
					} else {
						if (yych <= 0xFE5B) {
							if (yych >= 0xFE5B) goto yy2;
						} else {
							if (yych == 0xFE5D) goto yy2;
						}
					}
				} else {
					if (yych <= 0xFF5B) {
						if (yych <= 0xFF3A) {
							if (yych <= 0xFF08) goto yy2;
						} else {
							if (yych <= 0xFF3B) goto yy2;
							if (yych >= 0xFF5B) goto yy2;
						}
					} else {
						if (yych <= 0xFF5F) {
							if (yych >= 0xFF5F) goto yy2;
						} else {
							if (yych == 0xFF62) goto yy2;
						}
					}
				}
			}
		}
	}
yy1:
	++YYCURSOR;
#line 14 "encodings/unicode_group_Ps_x_encoding_policy_ignore.re"
	{ return YYCURSOR == limit; }
#line 254 "encodings/unicode_group_Ps_x_encoding_policy_ignore.c"
yy2:
	++YYCURSOR;
#line 13 "encodings/unicode_group_Ps_x_encoding_policy_ignore.re"
	{ goto Ps; }
#line 259 "encodings/unicode_group_Ps_x_encoding_policy_ignore.c"
}
#line 15 "encodings/unicode_group_Ps_x_encoding_policy_ignore.re"

}
static const unsigned int chars_Ps [] = {0x28,0x28,  0x5b,0x5b,  0x7b,0x7b,  0xf3a,0xf3a,  0xf3c,0xf3c,  0x169b,0x169b,  0x201a,0x201a,  0x201e,0x201e,  0x2045,0x2045,  0x207d,0x207d,  0x208d,0x208d,  0x2308,0x2308,  0x230a,0x230a,  0x2329,0x2329,  0x2768,0x2768,  0x276a,0x276a,  0x276c,0x276c,  0x276e,0x276e,  0x2770,0x2770,  0x2772,0x2772,  0x2774,0x2774,  0x27c5,0x27c5,  0x27e6,0x27e6,  0x27e8,0x27e8,  0x27ea,0x27ea,  0x27ec,0x27ec,  0x27ee,0x27ee,  0x2983,0x2983,  0x2985,0x2985,  0x2987,0x2987,  0x2989,0x2989,  0x298b,0x298b,  0x298d,0x298d,  0x298f,0x298f,  0x2991,0x2991,  0x2993,0x2993,  0x2995,0x2995,  0x2997,0x2997,  0x29d8,0x29d8,  0x29da,0x29da,  0x29fc,0x29fc,  0x2e22,0x2e22,  0x2e24,0x2e24,  0x2e26,0x2e26,  0x2e28,0x2e28,  0x2e42,0x2e42,  0x3008,0x3008,  0x300a,0x300a,  0x300c,0x300c,  0x300e,0x300e,  0x3010,0x3010,  0x3014,0x3014,  0x3016,0x3016,  0x3018,0x3018,  0x301a,0x301a,  0x301d,0x301d,  0xfd3f,0xfd3f,  0xfe17,0xfe17,  0xfe35,0xfe35,  0xfe37,0xfe37,  0xfe39,0xfe39,  0xfe3b,0xfe3b,  0xfe3d,0xfe3d,  0xfe3f,0xfe3f,  0xfe41,0xfe41,  0xfe43,0xfe43,  0xfe47,0xfe47,  0xfe59,0xfe59,  0xfe5b,0xfe5b,  0xfe5d,0xfe5d,  0xff08,0xff08,  0xff3b,0xff3b,  0xff5b,0xff5b,  0xff5f,0xff5f,  0xff62,0xff62,  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_Ps = new unsigned int [152];
	YYCTYPE * s = (YYCTYPE *) buffer_Ps;
	unsigned int buffer_len = encode_utf16 (chars_Ps, sizeof (chars_Ps) / sizeof (unsigned int), buffer_Ps);
	/* convert 32-bit code units to YYCTYPE; reuse the same buffer */
	for (unsigned int i = 0; i < buffer_len; ++i) s[i] = buffer_Ps[i];
	if (!scan (s, s + buffer_len))
		printf("test 'Ps' failed\n");
	delete [] buffer_Ps;
	return 0;
}
