diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-05-10 05:12:17 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-05-10 05:12:17 +0200 |
commit | 5e01a4852b31d537307994248869caf38b4023cc (patch) | |
tree | 769c60020afcb58437477f348dca58fb0c789f64 /win32 | |
parent | 766e109fd638ef1eac33717b52e04a351da46483 (diff) |
Imported Upstream version 6.0.0upstream/6.0.0
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile | 200 | ||||
-rw-r--r-- | win32/config.h | 84 | ||||
-rw-r--r-- | win32/testc.c | 863 |
3 files changed, 0 insertions, 1147 deletions
diff --git a/win32/Makefile b/win32/Makefile deleted file mode 100644 index 27d8832..0000000 --- a/win32/Makefile +++ /dev/null @@ -1,200 +0,0 @@ -# Oniguruma Makefile for Win32
-
-product_name = oniguruma
-
-CPPFLAGS =
-CFLAGS = -O2 -nologo /W3
-LDFLAGS =
-LOADLIBES =
-ARLIB = lib
-ARLIB_FLAGS = -nologo
-ARDLL = cl
-ARDLL_FLAGS = -nologo -LD $(LINKFLAGS) -dll
-LINKFLAGS = -link -incremental:no -pdb:none
-
-INSTALL = install -c
-CP = copy
-CC = cl
-DEFS = -DHAVE_CONFIG_H -DNOT_RUBY -DEXPORT
-RUBYDIR = ..
-
-subdirs =
-
-libbase = onig
-libname = $(libbase)_s.lib
-dllname = $(libbase).dll
-dlllib = $(libbase).lib
-
-onigheaders = oniguruma.h regint.h regparse.h regenc.h st.h
-posixheaders = onigposix.h
-headers = $(posixheaders) $(onigheaders)
-
-onigobjs = reggnu.obj regerror.obj regparse.obj regext.obj regcomp.obj \
- regexec.obj regenc.obj regsyntax.obj regtrav.obj \
- regversion.obj st.obj
-posixobjs = regposix.obj regposerr.obj
-libobjs = $(onigobjs) $(posixobjs)
-
-jp_objs = $(encdir)\euc_jp.obj $(encdir)\sjis.obj
-iso8859_objs = $(encdir)\iso8859_1.obj $(encdir)\iso8859_2.obj \
- $(encdir)\iso8859_3.obj $(encdir)\iso8859_4.obj \
- $(encdir)\iso8859_5.obj $(encdir)\iso8859_6.obj \
- $(encdir)\iso8859_7.obj $(encdir)\iso8859_8.obj \
- $(encdir)\iso8859_9.obj $(encdir)\iso8859_10.obj \
- $(encdir)\iso8859_11.obj $(encdir)\iso8859_13.obj \
- $(encdir)\iso8859_14.obj $(encdir)\iso8859_15.obj \
- $(encdir)\iso8859_16.obj
-
-encobjs = $(encdir)\ascii.obj $(encdir)\utf8.obj \
- $(encdir)\unicode.obj \
- $(encdir)\utf16_be.obj $(encdir)\utf16_le.obj \
- $(encdir)\utf32_be.obj $(encdir)\utf32_le.obj \
- $(jp_objs) $(iso8859_objs) \
- $(encdir)\euc_tw.obj $(encdir)\euc_kr.obj $(encdir)\big5.obj \
- $(encdir)\gb18030.obj \
- $(encdir)\koi8_r.obj \
- $(encdir)\cp1251.obj # $(encdir)\koi8.obj
-
-onigsources = regerror.c regparse.c regext.c regcomp.c regexec.c regenc.c \
- regsyntax.c regtrav.c regversion.c reggnu.c st.c
-posixsources = regposix.c regposerr.c
-libsources = $(posixsources) $(onigsources)
-rubysources = $(onigsources)
-
-encdir = enc
-patchfiles = re.c.168.patch re.c.181.patch
-distfiles = README COPYING HISTORY \
- Makefile.in configure.in config.h.in configure \
- $(headers) $(libsources) $(patchfiles) \
- test.rb testconv.rb
-testc = testc
-testp = testp
-
-makeargs = $(MFLAGS) CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' CC='$(CC)'
-
-.SUFFIXES:
-.SUFFIXES: .obj .c .h .ps .dvi .info .texinfo
-
-.c.obj:
- $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) /I. /I.. /Fo$@ /c $<
-
-# targets
-default: all
-
-setup:
- $(CP) win32\config.h config.h
- $(CP) win32\testc.c testc.c
-
-
-all: $(libname) $(dllname)
-
-$(libname): $(libobjs) $(encobjs)
- $(ARLIB) $(ARLIB_FLAGS) -out:$@ $(libobjs) $(encobjs)
-
-$(dllname): $(libobjs) $(encobjs)
- $(ARDLL) $(libobjs) $(encobjs) -Fe$@ $(ARDLL_FLAGS)
-
-regparse.obj: regparse.c $(onigheaders) config.h st.h
-regext.obj: regext.c $(onigheaders) config.h
-regtrav.obj: regtrav.c $(onigheaders) config.h
-regcomp.obj: regcomp.c $(onigheaders) config.h
-regexec.obj: regexec.c regint.h regenc.h oniguruma.h config.h
-reggnu.obj: reggnu.c regint.h regenc.h oniguruma.h config.h oniggnu.h
-regerror.obj: regerror.c regint.h regenc.h oniguruma.h config.h
-regenc.obj: regenc.c regenc.h oniguruma.h config.h
-regsyntax.obj: regsyntax.c regint.h regenc.h oniguruma.h config.h
-regversion.obj: regversion.c oniguruma.h config.h
-regposix.obj: regposix.c $(posixheaders) oniguruma.h config.h
-regposerr.obj: regposerr.c $(posixheaders) config.h
-st.obj: st.c regint.h oniguruma.h config.h st.h
-
-$(encdir)\ascii.obj: $(encdir)\ascii.c regenc.h config.h
-$(encdir)\unicode.obj: $(encdir)\unicode.c regenc.h config.h
-$(encdir)\utf8.obj: $(encdir)\utf8.c regenc.h config.h
-$(encdir)\utf16_be.obj: $(encdir)\utf16_be.c regenc.h config.h
-$(encdir)\utf16_le.obj: $(encdir)\utf16_le.c regenc.h config.h
-$(encdir)\utf32_be.obj: $(encdir)\utf32_be.c regenc.h config.h
-$(encdir)\utf32_le.obj: $(encdir)\utf32_le.c regenc.h config.h
-$(encdir)\euc_jp.obj: $(encdir)\euc_jp.c regenc.h config.h
-$(encdir)\euc_tw.obj: $(encdir)\euc_tw.c regenc.h config.h
-$(encdir)\euc_kr.obj: $(encdir)\euc_kr.c regenc.h config.h
-$(encdir)\sjis.obj: $(encdir)\sjis.c regenc.h config.h
-$(encdir)\iso8859_1.obj: $(encdir)\iso8859_1.c regenc.h config.h
-$(encdir)\iso8859_2.obj: $(encdir)\iso8859_2.c regenc.h config.h
-$(encdir)\iso8859_3.obj: $(encdir)\iso8859_3.c regenc.h config.h
-$(encdir)\iso8859_4.obj: $(encdir)\iso8859_4.c regenc.h config.h
-$(encdir)\iso8859_5.obj: $(encdir)\iso8859_5.c regenc.h config.h
-$(encdir)\iso8859_6.obj: $(encdir)\iso8859_6.c regenc.h config.h
-$(encdir)\iso8859_7.obj: $(encdir)\iso8859_7.c regenc.h config.h
-$(encdir)\iso8859_8.obj: $(encdir)\iso8859_8.c regenc.h config.h
-$(encdir)\iso8859_9.obj: $(encdir)\iso8859_9.c regenc.h config.h
-$(encdir)\iso8859_10.obj: $(encdir)\iso8859_10.c regenc.h config.h
-$(encdir)\iso8859_11.obj: $(encdir)\iso8859_11.c regenc.h config.h
-$(encdir)\iso8859_13.obj: $(encdir)\iso8859_13.c regenc.h config.h
-$(encdir)\iso8859_14.obj: $(encdir)\iso8859_14.c regenc.h config.h
-$(encdir)\iso8859_15.obj: $(encdir)\iso8859_15.c regenc.h config.h
-$(encdir)\iso8859_16.obj: $(encdir)\iso8859_16.c regenc.h config.h
-$(encdir)\koi8.obj: $(encdir)\koi8.c regenc.h config.h
-$(encdir)\koi8_r.obj: $(encdir)\koi8_r.c regenc.h config.h
-$(encdir)\cp1251.obj: $(encdir)\cp1251.c regenc.h config.h
-$(encdir)\big5.obj: $(encdir)\big5.c regenc.h config.h
-$(encdir)\gb18030.obj: $(encdir)\gb18030.c regenc.h config.h
-
-
-# Ruby test
-rtest:
- $(RUBYDIR)\win32\ruby -w -Ke test.rb
-
-# C library test
-ctest: $(testc)
- .\$(testc)
-
-# POSIX C library test
-ptest: $(testp)
- .\$(testp)
-
-$(testc): $(testc).c $(libname)
- $(CC) -nologo -o $(testc) -DONIG_EXTERN=extern $(testc).c $(libname)
-
-$(testp): $(testc).c $(dlllib)
- $(CC) -nologo -DPOSIX_TEST -o $(testp) $(testc).c $(dlllib)
-
-#$(testc)u.c: test.rb testconvu.rb
-# ruby -Ke testconvu.rb test.rb > $@
-
-$(testc)u: $(testc)u.c $(libname)
- $(CC) -nologo -o $(testc)u -DONIG_EXTERN=extern $(testc)u.c $(libname)
-
-clean:
- del *.obj $(encdir)\*.obj *.lib *.exp *.dll $(testp).exe $(testc).exe $(testc).obj
-
-
-# backup file suffix
-SORIG = ruby_orig
-
-# ruby 1.9 source update
-19:
- $(CP) regerror.c $(RUBYDIR)
- $(CP) regparse.c $(RUBYDIR)
- $(CP) regcomp.c $(RUBYDIR)
- $(CP) regexec.c $(RUBYDIR)
- $(CP) regenc.c $(RUBYDIR)
- $(CP) regint.h $(RUBYDIR)
- $(CP) regparse.h $(RUBYDIR)
- $(CP) regenc.h $(RUBYDIR)
- $(CP) oniguruma.h $(RUBYDIR)
- $(CP) enc\ascii.c $(RUBYDIR)
- $(CP) enc\utf8.c $(RUBYDIR)
- $(CP) enc\euc_jp.c $(RUBYDIR)
- $(CP) enc\sjis.c $(RUBYDIR)
- $(CP) enc\unicode.c $(RUBYDIR)
-
-
-samples: all
- $(CC) $(CFLAGS) -I. -o simple sample\simple.c $(dlllib)
- $(CC) $(CFLAGS) -I. -o posix sample\posix.c $(dlllib)
- $(CC) $(CFLAGS) -I. -o names sample\names.c $(dlllib)
- $(CC) $(CFLAGS) -I. -o listcap sample\listcap.c $(dlllib)
- $(CC) $(CFLAGS) -I. -o sql sample\sql.c $(dlllib)
- $(CC) $(CFLAGS) -I. -o encode sample\encode.c $(dlllib)
- $(CC) $(CFLAGS) -I. -o syntax sample\syntax.c $(dlllib)
diff --git a/win32/config.h b/win32/config.h deleted file mode 100644 index 7ee9e25..0000000 --- a/win32/config.h +++ /dev/null @@ -1,84 +0,0 @@ -#define STDC_HEADERS 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_SYS_STAT_H 1
-#define HAVE_STDLIB_H 1
-#define HAVE_STRING_H 1
-#define HAVE_MEMORY_H 1
-#define HAVE_FLOAT_H 1
-#define HAVE_OFF_T 1
-#define SIZEOF_INT 4
-#define SIZEOF_SHORT 2
-#define SIZEOF_LONG 4
-#define SIZEOF_LONG_LONG 0
-#define SIZEOF___INT64 8
-#define SIZEOF_OFF_T 4
-#define SIZEOF_VOIDP 4
-#define SIZEOF_FLOAT 4
-#define SIZEOF_DOUBLE 8
-#define HAVE_PROTOTYPES 1
-#define TOKEN_PASTE(x,y) x##y
-#define HAVE_STDARG_PROTOTYPES 1
-#ifndef NORETURN
-#if _MSC_VER > 1100
-#define NORETURN(x) __declspec(noreturn) x
-#else
-#define NORETURN(x) x
-#endif
-#endif
-#define HAVE_DECL_SYS_NERR 1
-#define STDC_HEADERS 1
-#define HAVE_STDLIB_H 1
-#define HAVE_STRING_H 1
-#define HAVE_LIMITS_H 1
-#define HAVE_FCNTL_H 1
-#define HAVE_SYS_UTIME_H 1
-#define HAVE_MEMORY_H 1
-#define uid_t int
-#define gid_t int
-#define HAVE_STRUCT_STAT_ST_RDEV 1
-#define HAVE_ST_RDEV 1
-#define GETGROUPS_T int
-#define RETSIGTYPE void
-#define HAVE_ALLOCA 1
-#define HAVE_DUP2 1
-#define HAVE_MEMCMP 1
-#define HAVE_MEMMOVE 1
-#define HAVE_MKDIR 1
-#define HAVE_STRCASECMP 1
-#define HAVE_STRNCASECMP 1
-#define HAVE_STRERROR 1
-#define HAVE_STRFTIME 1
-#define HAVE_STRCHR 1
-#define HAVE_STRSTR 1
-#define HAVE_STRTOD 1
-#define HAVE_STRTOL 1
-#define HAVE_STRTOUL 1
-#define HAVE_FLOCK 1
-#define HAVE_VSNPRINTF 1
-#define HAVE_FINITE 1
-#define HAVE_FMOD 1
-#define HAVE_FREXP 1
-#define HAVE_HYPOT 1
-#define HAVE_MODF 1
-#define HAVE_WAITPID 1
-#define HAVE_CHSIZE 1
-#define HAVE_TIMES 1
-#define HAVE__SETJMP 1
-#define HAVE_TELLDIR 1
-#define HAVE_SEEKDIR 1
-#define HAVE_MKTIME 1
-#define HAVE_COSH 1
-#define HAVE_SINH 1
-#define HAVE_TANH 1
-#define HAVE_EXECVE 1
-#define HAVE_TZNAME 1
-#define HAVE_DAYLIGHT 1
-#define SETPGRP_VOID 1
-#define inline __inline
-#define NEED_IO_SEEK_BETWEEN_RW 1
-#define RSHIFT(x,y) ((x)>>(int)y)
-#define FILE_COUNT _cnt
-#define FILE_READPTR _ptr
-#define DEFAULT_KCODE KCODE_NONE
-#define DLEXT ".so"
-#define DLEXT2 ".dll"
diff --git a/win32/testc.c b/win32/testc.c deleted file mode 100644 index 4b8f037..0000000 --- a/win32/testc.c +++ /dev/null @@ -1,863 +0,0 @@ -/*
- * This program was generated by testconv.rb.
- */
-#include "config.h"
-#ifdef ONIG_ESCAPE_UCHAR_COLLISION
-#undef ONIG_ESCAPE_UCHAR_COLLISION
-#endif
-#include <stdio.h>
-
-#ifdef POSIX_TEST
-#include "onigposix.h"
-#else
-#include "oniguruma.h"
-#endif
-
-#ifdef HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
-
-#define SLEN(s) strlen(s)
-
-static int nsucc = 0;
-static int nfail = 0;
-static int nerror = 0;
-
-static FILE* err_file;
-
-#ifndef POSIX_TEST
-static OnigRegion* region;
-#endif
-
-static void xx(char* pattern, char* str, int from, int to, int mem, int not)
-{
- int r;
-
-#ifdef POSIX_TEST
- regex_t reg;
- char buf[200];
- regmatch_t pmatch[25];
-
- r = regcomp(®, pattern, REG_EXTENDED | REG_NEWLINE);
- if (r) {
- regerror(r, ®, buf, sizeof(buf));
- fprintf(err_file, "ERROR: %s\n", buf);
- nerror++;
- return ;
- }
-
- r = regexec(®, str, reg.re_nsub + 1, pmatch, 0);
- if (r != 0 && r != REG_NOMATCH) {
- regerror(r, ®, buf, sizeof(buf));
- fprintf(err_file, "ERROR: %s\n", buf);
- nerror++;
- return ;
- }
-
- if (r == REG_NOMATCH) {
- if (not) {
- fprintf(stdout, "OK(N): /%s/ '%s'\n", pattern, str);
- nsucc++;
- }
- else {
- fprintf(stdout, "FAIL: /%s/ '%s'\n", pattern, str);
- nfail++;
- }
- }
- else {
- if (not) {
- fprintf(stdout, "FAIL(N): /%s/ '%s'\n", pattern, str);
- nfail++;
- }
- else {
- if (pmatch[mem].rm_so == from && pmatch[mem].rm_eo == to) {
- fprintf(stdout, "OK: /%s/ '%s'\n", pattern, str);
- nsucc++;
- }
- else {
- fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", pattern, str,
- from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
- nfail++;
- }
- }
- }
- regfree(®);
-
-#else
- regex_t* reg;
- OnigErrorInfo einfo;
-
- r = onig_new(®, (UChar* )pattern, (UChar* )(pattern + SLEN(pattern)),
- ONIG_OPTION_DEFAULT, ONIG_ENCODING_SJIS, ONIG_SYNTAX_DEFAULT, &einfo);
- if (r) {
- char s[ONIG_MAX_ERROR_MESSAGE_LEN];
- onig_error_code_to_str((UChar* )s, r, &einfo);
- fprintf(err_file, "ERROR: %s\n", s);
- nerror++;
- return ;
- }
-
- r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),
- (UChar* )str, (UChar* )(str + SLEN(str)),
- region, ONIG_OPTION_NONE);
- if (r < ONIG_MISMATCH) {
- char s[ONIG_MAX_ERROR_MESSAGE_LEN];
- onig_error_code_to_str((UChar* )s, r);
- fprintf(err_file, "ERROR: %s\n", s);
- nerror++;
- return ;
- }
-
- if (r == ONIG_MISMATCH) {
- if (not) {
- fprintf(stdout, "OK(N): /%s/ '%s'\n", pattern, str);
- nsucc++;
- }
- else {
- fprintf(stdout, "FAIL: /%s/ '%s'\n", pattern, str);
- nfail++;
- }
- }
- else {
- if (not) {
- fprintf(stdout, "FAIL(N): /%s/ '%s'\n", pattern, str);
- nfail++;
- }
- else {
- if (region->beg[mem] == from && region->end[mem] == to) {
- fprintf(stdout, "OK: /%s/ '%s'\n", pattern, str);
- nsucc++;
- }
- else {
- fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", pattern, str,
- from, to, region->beg[mem], region->end[mem]);
- nfail++;
- }
- }
- }
- onig_free(reg);
-#endif
-}
-
-static void x2(char* pattern, char* str, int from, int to)
-{
- xx(pattern, str, from, to, 0, 0);
-}
-
-static void x3(char* pattern, char* str, int from, int to, int mem)
-{
- xx(pattern, str, from, to, mem, 0);
-}
-
-static void n(char* pattern, char* str)
-{
- xx(pattern, str, 0, 0, 0, 1);
-}
-
-extern int main(int argc, char* argv[])
-{
- err_file = stdout;
-
-#ifdef POSIX_TEST
- reg_set_encoding(REG_POSIX_ENCODING_SJIS);
-#else
- region = onig_region_new();
-#endif
-
- x2("", "", 0, 0);
- x2("^", "", 0, 0);
- x2("$", "", 0, 0);
- x2("\\G", "", 0, 0);
- x2("\\A", "", 0, 0);
- x2("\\Z", "", 0, 0);
- x2("\\z", "", 0, 0);
- x2("^$", "", 0, 0);
- x2("\\ca", "\001", 0, 1);
- x2("\\C-b", "\002", 0, 1);
- x2("\\c\\\\", "\034", 0, 1);
- x2("q[\\c\\\\]", "q\034", 0, 2);
- x2("", "a", 0, 0);
- x2("a", "a", 0, 1);
- x2("\\x61", "a", 0, 1);
- x2("aa", "aa", 0, 2);
- x2("aaa", "aaa", 0, 3);
- x2("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 0, 35);
- x2("ab", "ab", 0, 2);
- x2("b", "ab", 1, 2);
- x2("bc", "abc", 1, 3);
- x2("(?i:#RET#)", "#INS##RET#", 5, 10);
- x2("\\17", "\017", 0, 1);
- x2("\\x1f", "\x1f", 0, 1);
- x2("a(?#....\\\\JJJJ)b", "ab", 0, 2);
- x2("(?x) G (o O(?-x)oO) g L", "GoOoOgLe", 0, 7);
- x2(".", "a", 0, 1);
- n(".", "");
- x2("..", "ab", 0, 2);
- x2("\\w", "e", 0, 1);
- n("\\W", "e");
- x2("\\s", " ", 0, 1);
- x2("\\S", "b", 0, 1);
- x2("\\d", "4", 0, 1);
- n("\\D", "4");
- x2("\\b", "z ", 0, 0);
- x2("\\b", " z", 1, 1);
- x2("\\B", "zz ", 1, 1);
- x2("\\B", "z ", 2, 2);
- x2("\\B", " z", 0, 0);
- x2("[ab]", "b", 0, 1);
- n("[ab]", "c");
- x2("[a-z]", "t", 0, 1);
- n("[^a]", "a");
- x2("[^a]", "\n", 0, 1);
- x2("[]]", "]", 0, 1);
- n("[^]]", "]");
- x2("[\\^]+", "0^^1", 1, 3);
- x2("[b-]", "b", 0, 1);
- x2("[b-]", "-", 0, 1);
- x2("[\\w]", "z", 0, 1);
- n("[\\w]", " ");
- x2("[\\W]", "b$", 1, 2);
- x2("[\\d]", "5", 0, 1);
- n("[\\d]", "e");
- x2("[\\D]", "t", 0, 1);
- n("[\\D]", "3");
- x2("[\\s]", " ", 0, 1);
- n("[\\s]", "a");
- x2("[\\S]", "b", 0, 1);
- n("[\\S]", " ");
- x2("[\\w\\d]", "2", 0, 1);
- n("[\\w\\d]", " ");
- x2("[[:upper:]]", "B", 0, 1);
- x2("[*[:xdigit:]+]", "+", 0, 1);
- x2("[*[:xdigit:]+]", "GHIKK-9+*", 6, 7);
- x2("[*[:xdigit:]+]", "-@^+", 3, 4);
- n("[[:upper]]", "A");
- x2("[[:upper]]", ":", 0, 1);
- x2("[\\044-\\047]", "\046", 0, 1);
- x2("[\\x5a-\\x5c]", "\x5b", 0, 1);
- x2("[\\x6A-\\x6D]", "\x6c", 0, 1);
- n("[\\x6A-\\x6D]", "\x6E");
- n("^[0-9A-F]+ 0+ UNDEF ", "75F 00000000 SECT14A notype () External | _rb_apply");
- x2("[\\[]", "[", 0, 1);
- x2("[\\]]", "]", 0, 1);
- x2("[&]", "&", 0, 1);
- x2("[[ab]]", "b", 0, 1);
- x2("[[ab]c]", "c", 0, 1);
- n("[[^a]]", "a");
- n("[^[a]]", "a");
- x2("[[ab]&&bc]", "b", 0, 1);
- n("[[ab]&&bc]", "a");
- n("[[ab]&&bc]", "c");
- x2("[a-z&&b-y&&c-x]", "w", 0, 1);
- n("[^a-z&&b-y&&c-x]", "w");
- x2("[[^a&&a]&&a-z]", "b", 0, 1);
- n("[[^a&&a]&&a-z]", "a");
- x2("[[^a-z&&bcdef]&&[^c-g]]", "h", 0, 1);
- n("[[^a-z&&bcdef]&&[^c-g]]", "c");
- x2("[^[^abc]&&[^cde]]", "c", 0, 1);
- x2("[^[^abc]&&[^cde]]", "e", 0, 1);
- n("[^[^abc]&&[^cde]]", "f");
- x2("[a-&&-a]", "-", 0, 1);
- n("[a\\-&&\\-a]", "&");
- n("\\wabc", " abc");
- x2("a\\Wbc", "a bc", 0, 4);
- x2("a.b.c", "aabbc", 0, 5);
- x2(".\\wb\\W..c", "abb bcc", 0, 7);
- x2("\\s\\wzzz", " zzzz", 0, 5);
- x2("aa.b", "aabb", 0, 4);
- n(".a", "ab");
- x2(".a", "aa", 0, 2);
- x2("^a", "a", 0, 1);
- x2("^a$", "a", 0, 1);
- x2("^\\w$", "a", 0, 1);
- n("^\\w$", " ");
- x2("^\\wab$", "zab", 0, 3);
- x2("^\\wabcdef$", "zabcdef", 0, 7);
- x2("^\\w...def$", "zabcdef", 0, 7);
- x2("\\w\\w\\s\\Waaa\\d", "aa aaa4", 0, 8);
- x2("\\A\\Z", "", 0, 0);
- x2("\\Axyz", "xyz", 0, 3);
- x2("xyz\\Z", "xyz", 0, 3);
- x2("xyz\\z", "xyz", 0, 3);
- x2("a\\Z", "a", 0, 1);
- x2("\\Gaz", "az", 0, 2);
- n("\\Gz", "bza");
- n("az\\G", "az");
- n("az\\A", "az");
- n("a\\Az", "az");
- x2("\\^\\$", "^$", 0, 2);
- x2("^x?y", "xy", 0, 2);
- x2("^(x?y)", "xy", 0, 2);
- x2("\\w", "_", 0, 1);
- n("\\W", "_");
- x2("(?=z)z", "z", 0, 1);
- n("(?=z).", "a");
- x2("(?!z)a", "a", 0, 1);
- n("(?!z)a", "z");
- x2("(?i:a)", "a", 0, 1);
- x2("(?i:a)", "A", 0, 1);
- x2("(?i:A)", "a", 0, 1);
- n("(?i:A)", "b");
- x2("(?i:[A-Z])", "a", 0, 1);
- x2("(?i:[f-m])", "H", 0, 1);
- x2("(?i:[f-m])", "h", 0, 1);
- n("(?i:[f-m])", "e");
- x2("(?i:[A-c])", "D", 0, 1);
- n("(?i:[^a-z])", "A");
- n("(?i:[^a-z])", "a");
- x2("(?i:[!-k])", "Z", 0, 1);
- x2("(?i:[!-k])", "7", 0, 1);
- x2("(?i:[T-}])", "b", 0, 1);
- x2("(?i:[T-}])", "{", 0, 1);
- x2("(?i:\\?a)", "?A", 0, 2);
- x2("(?i:\\*A)", "*a", 0, 2);
- n(".", "\n");
- x2("(?m:.)", "\n", 0, 1);
- x2("(?m:a.)", "a\n", 0, 2);
- x2("(?m:.b)", "a\nb", 1, 3);
- x2(".*abc", "dddabdd\nddabc", 8, 13);
- x2("(?m:.*abc)", "dddabddabc", 0, 10);
- n("(?i)(?-i)a", "A");
- n("(?i)(?-i:a)", "A");
- x2("a?", "", 0, 0);
- x2("a?", "b", 0, 0);
- x2("a?", "a", 0, 1);
- x2("a*", "", 0, 0);
- x2("a*", "a", 0, 1);
- x2("a*", "aaa", 0, 3);
- x2("a*", "baaaa", 0, 0);
- n("a+", "");
- x2("a+", "a", 0, 1);
- x2("a+", "aaaa", 0, 4);
- x2("a+", "aabbb", 0, 2);
- x2("a+", "baaaa", 1, 5);
- x2(".?", "", 0, 0);
- x2(".?", "f", 0, 1);
- x2(".?", "\n", 0, 0);
- x2(".*", "", 0, 0);
- x2(".*", "abcde", 0, 5);
- x2(".+", "z", 0, 1);
- x2(".+", "zdswer\n", 0, 6);
- x2("(.*)a\\1f", "babfbac", 0, 4);
- x2("(.*)a\\1f", "bacbabf", 3, 7);
- x2("((.*)a\\2f)", "bacbabf", 3, 7);
- x2("(.*)a\\1f", "baczzzzzz\nbazz\nzzzzbabf", 19, 23);
- x2("a|b", "a", 0, 1);
- x2("a|b", "b", 0, 1);
- x2("|a", "a", 0, 0);
- x2("(|a)", "a", 0, 0);
- x2("ab|bc", "ab", 0, 2);
- x2("ab|bc", "bc", 0, 2);
- x2("z(?:ab|bc)", "zbc", 0, 3);
- x2("a(?:ab|bc)c", "aabc", 0, 4);
- x2("ab|(?:ac|az)", "az", 0, 2);
- x2("a|b|c", "dc", 1, 2);
- x2("a|b|cd|efg|h|ijk|lmn|o|pq|rstuvwx|yz", "pqr", 0, 2);
- n("a|b|cd|efg|h|ijk|lmn|o|pq|rstuvwx|yz", "mn");
- x2("a|^z", "ba", 1, 2);
- x2("a|^z", "za", 0, 1);
- x2("a|\\Gz", "bza", 2, 3);
- x2("a|\\Gz", "za", 0, 1);
- x2("a|\\Az", "bza", 2, 3);
- x2("a|\\Az", "za", 0, 1);
- x2("a|b\\Z", "ba", 1, 2);
- x2("a|b\\Z", "b", 0, 1);
- x2("a|b\\z", "ba", 1, 2);
- x2("a|b\\z", "b", 0, 1);
- x2("\\w|\\s", " ", 0, 1);
- n("\\w|\\w", " ");
- x2("\\w|%", "%", 0, 1);
- x2("\\w|[&$]", "&", 0, 1);
- x2("[b-d]|[^e-z]", "a", 0, 1);
- x2("(?:a|[c-f])|bz", "dz", 0, 1);
- x2("(?:a|[c-f])|bz", "bz", 0, 2);
- x2("abc|(?=zz)..f", "zzf", 0, 3);
- x2("abc|(?!zz)..f", "abf", 0, 3);
- x2("(?=za)..a|(?=zz)..a", "zza", 0, 3);
- n("(?>a|abd)c", "abdc");
- x2("(?>abd|a)c", "abdc", 0, 4);
- x2("a?|b", "a", 0, 1);
- x2("a?|b", "b", 0, 0);
- x2("a?|b", "", 0, 0);
- x2("a*|b", "aa", 0, 2);
- x2("a*|b*", "ba", 0, 0);
- x2("a*|b*", "ab", 0, 1);
- x2("a+|b*", "", 0, 0);
- x2("a+|b*", "bbb", 0, 3);
- x2("a+|b*", "abbb", 0, 1);
- n("a+|b+", "");
- x2("(a|b)?", "b", 0, 1);
- x2("(a|b)*", "ba", 0, 2);
- x2("(a|b)+", "bab", 0, 3);
- x2("(ab|ca)+", "caabbc", 0, 4);
- x2("(ab|ca)+", "aabca", 1, 5);
- x2("(ab|ca)+", "abzca", 0, 2);
- x2("(a|bab)+", "ababa", 0, 5);
- x2("(a|bab)+", "ba", 1, 2);
- x2("(a|bab)+", "baaaba", 1, 4);
- x2("(?:a|b)(?:a|b)", "ab", 0, 2);
- x2("(?:a*|b*)(?:a*|b*)", "aaabbb", 0, 3);
- x2("(?:a*|b*)(?:a+|b+)", "aaabbb", 0, 6);
- x2("(?:a+|b+){2}", "aaabbb", 0, 6);
- x2("h{0,}", "hhhh", 0, 4);
- x2("(?:a+|b+){1,2}", "aaabbb", 0, 6);
- n("ax{2}*a", "0axxxa1");
- n("a.{0,2}a", "0aXXXa0");
- n("a.{0,2}?a", "0aXXXa0");
- n("a.{0,2}?a", "0aXXXXa0");
- x2("^a{2,}?a$", "aaa", 0, 3);
- x2("^[a-z]{2,}?$", "aaa", 0, 3);
- x2("(?:a+|\\Ab*)cc", "cc", 0, 2);
- n("(?:a+|\\Ab*)cc", "abcc");
- x2("(?:^a+|b+)*c", "aabbbabc", 6, 8);
- x2("(?:^a+|b+)*c", "aabbbbc", 0, 7);
- x2("a|(?i)c", "C", 0, 1);
- x2("(?i)c|a", "C", 0, 1);
- x2("(?i)c|a", "A", 0, 1);
- x2("(?i:c)|a", "C", 0, 1);
- n("(?i:c)|a", "A");
- x2("[abc]?", "abc", 0, 1);
- x2("[abc]*", "abc", 0, 3);
- x2("[^abc]*", "abc", 0, 0);
- n("[^abc]+", "abc");
- x2("a?\?", "aaa", 0, 0);
- x2("ba?\?b", "bab", 0, 3);
- x2("a*?", "aaa", 0, 0);
- x2("ba*?", "baa", 0, 1);
- x2("ba*?b", "baab", 0, 4);
- x2("a+?", "aaa", 0, 1);
- x2("ba+?", "baa", 0, 2);
- x2("ba+?b", "baab", 0, 4);
- x2("(?:a?)?\?", "a", 0, 0);
- x2("(?:a?\?)?", "a", 0, 0);
- x2("(?:a?)+?", "aaa", 0, 1);
- x2("(?:a+)?\?", "aaa", 0, 0);
- x2("(?:a+)?\?b", "aaab", 0, 4);
- x2("(?:ab)?{2}", "", 0, 0);
- x2("(?:ab)?{2}", "ababa", 0, 4);
- x2("(?:ab)*{0}", "ababa", 0, 0);
- x2("(?:ab){3,}", "abababab", 0, 8);
- n("(?:ab){3,}", "abab");
- x2("(?:ab){2,4}", "ababab", 0, 6);
- x2("(?:ab){2,4}", "ababababab", 0, 8);
- x2("(?:ab){2,4}?", "ababababab", 0, 4);
- x2("(?:ab){,}", "ab{,}", 0, 5);
- x2("(?:abc)+?{2}", "abcabcabc", 0, 6);
- x2("(?:X*)(?i:xa)", "XXXa", 0, 4);
- x2("(d+)([^abc]z)", "dddz", 0, 4);
- x2("([^abc]*)([^abc]z)", "dddz", 0, 4);
- x2("(\\w+)(\\wz)", "dddz", 0, 4);
- x3("(a)", "a", 0, 1, 1);
- x3("(ab)", "ab", 0, 2, 1);
- x2("((ab))", "ab", 0, 2);
- x3("((ab))", "ab", 0, 2, 1);
- x3("((ab))", "ab", 0, 2, 2);
- x3("((((((((((((((((((((ab))))))))))))))))))))", "ab", 0, 2, 20);
- x3("(ab)(cd)", "abcd", 0, 2, 1);
- x3("(ab)(cd)", "abcd", 2, 4, 2);
- x3("()(a)bc(def)ghijk", "abcdefghijk", 3, 6, 3);
- x3("(()(a)bc(def)ghijk)", "abcdefghijk", 3, 6, 4);
- x2("(^a)", "a", 0, 1);
- x3("(a)|(a)", "ba", 1, 2, 1);
- x3("(^a)|(a)", "ba", 1, 2, 2);
- x3("(a?)", "aaa", 0, 1, 1);
- x3("(a*)", "aaa", 0, 3, 1);
- x3("(a*)", "", 0, 0, 1);
- x3("(a+)", "aaaaaaa", 0, 7, 1);
- x3("(a+|b*)", "bbbaa", 0, 3, 1);
- x3("(a+|b?)", "bbbaa", 0, 1, 1);
- x3("(abc)?", "abc", 0, 3, 1);
- x3("(abc)*", "abc", 0, 3, 1);
- x3("(abc)+", "abc", 0, 3, 1);
- x3("(xyz|abc)+", "abc", 0, 3, 1);
- x3("([xyz][abc]|abc)+", "abc", 0, 3, 1);
- x3("((?i:abc))", "AbC", 0, 3, 1);
- x2("(abc)(?i:\\1)", "abcABC", 0, 6);
- x3("((?m:a.c))", "a\nc", 0, 3, 1);
- x3("((?=az)a)", "azb", 0, 1, 1);
- x3("abc|(.abd)", "zabd", 0, 4, 1);
- x2("(?:abc)|(ABC)", "abc", 0, 3);
- x3("(?i:(abc))|(zzz)", "ABC", 0, 3, 1);
- x3("a*(.)", "aaaaz", 4, 5, 1);
- x3("a*?(.)", "aaaaz", 0, 1, 1);
- x3("a*?(c)", "aaaac", 4, 5, 1);
- x3("[bcd]a*(.)", "caaaaz", 5, 6, 1);
- x3("(\\Abb)cc", "bbcc", 0, 2, 1);
- n("(\\Abb)cc", "zbbcc");
- x3("(^bb)cc", "bbcc", 0, 2, 1);
- n("(^bb)cc", "zbbcc");
- x3("cc(bb$)", "ccbb", 2, 4, 1);
- n("cc(bb$)", "ccbbb");
- n("(\\1)", "");
- n("\\1(a)", "aa");
- n("(a(b)\\1)\\2+", "ababb");
- n("(?:(?:\\1|z)(a))+$", "zaa");
- x2("(?:(?:\\1|z)(a))+$", "zaaa", 0, 4);
- x2("(a)(?=\\1)", "aa", 0, 1);
- n("(a)$|\\1", "az");
- x2("(a)\\1", "aa", 0, 2);
- n("(a)\\1", "ab");
- x2("(a?)\\1", "aa", 0, 2);
- x2("(a?\?)\\1", "aa", 0, 0);
- x2("(a*)\\1", "aaaaa", 0, 4);
- x3("(a*)\\1", "aaaaa", 0, 2, 1);
- x2("a(b*)\\1", "abbbb", 0, 5);
- x2("a(b*)\\1", "ab", 0, 1);
- x2("(a*)(b*)\\1\\2", "aaabbaaabb", 0, 10);
- x2("(a*)(b*)\\2", "aaabbbb", 0, 7);
- x2("(((((((a*)b))))))c\\7", "aaabcaaa", 0, 8);
- x3("(((((((a*)b))))))c\\7", "aaabcaaa", 0, 3, 7);
- x2("(a)(b)(c)\\2\\1\\3", "abcbac", 0, 6);
- x2("([a-d])\\1", "cc", 0, 2);
- x2("(\\w\\d\\s)\\1", "f5 f5 ", 0, 6);
- n("(\\w\\d\\s)\\1", "f5 f5");
- x2("(who|[a-c]{3})\\1", "whowho", 0, 6);
- x2("...(who|[a-c]{3})\\1", "abcwhowho", 0, 9);
- x2("(who|[a-c]{3})\\1", "cbccbc", 0, 6);
- x2("(^a)\\1", "aa", 0, 2);
- n("(^a)\\1", "baa");
- n("(a$)\\1", "aa");
- n("(ab\\Z)\\1", "ab");
- x2("(a*\\Z)\\1", "a", 1, 1);
- x2(".(a*\\Z)\\1", "ba", 1, 2);
- x3("(.(abc)\\2)", "zabcabc", 0, 7, 1);
- x3("(.(..\\d.)\\2)", "z12341234", 0, 9, 1);
- x2("((?i:az))\\1", "AzAz", 0, 4);
- n("((?i:az))\\1", "Azaz");
- x2("(?<=a)b", "ab", 1, 2);
- n("(?<=a)b", "bb");
- x2("(?<=a|b)b", "bb", 1, 2);
- x2("(?<=a|bc)b", "bcb", 2, 3);
- x2("(?<=a|bc)b", "ab", 1, 2);
- x2("(?<=a|bc||defghij|klmnopq|r)z", "rz", 1, 2);
- x2("(a)\\g<1>", "aa", 0, 2);
- x2("(?<!a)b", "cb", 1, 2);
- n("(?<!a)b", "ab");
- x2("(?<!a|bc)b", "bbb", 0, 1);
- n("(?<!a|bc)z", "bcz");
- x2("(?<name1>a)", "a", 0, 1);
- x2("(?<name_2>ab)\\g<name_2>", "abab", 0, 4);
- x2("(?<name_3>.zv.)\\k<name_3>", "azvbazvb", 0, 8);
- x2("(?<=\\g<ab>)|-\\zEND (?<ab>XyZ)", "XyZ", 3, 3);
- x2("(?<n>|a\\g<n>)+", "", 0, 0);
- x2("(?<n>|\\(\\g<n>\\))+$", "()(())", 0, 6);
- x3("\\g<n>(?<n>.){0}", "X", 0, 1, 1);
- x2("\\g<n>(abc|df(?<n>.YZ){2,8}){0}", "XYZ", 0, 3);
- x2("\\A(?<n>(a\\g<n>)|)\\z", "aaaa", 0, 4);
- x2("(?<n>|\\g<m>\\g<n>)\\z|\\zEND (?<m>a|(b)\\g<m>)", "bbbbabba", 0, 8);
- x2("(?<name1240>\\w+\\sx)a+\\k<name1240>", " fg xaaaaaaaafg x", 2, 18);
- x3("(z)()()(?<_9>a)\\g<_9>", "zaa", 2, 3, 1);
- x2("(.)(((?<_>a)))\\k<_>", "zaa", 0, 3);
- x2("((?<name1>\\d)|(?<name2>\\w))(\\k<name1>|\\k<name2>)", "ff", 0, 2);
- x2("(?:(?<x>)|(?<x>efg))\\k<x>", "", 0, 0);
- x2("(?:(?<x>abc)|(?<x>efg))\\k<x>", "abcefgefg", 3, 9);
- n("(?:(?<x>abc)|(?<x>efg))\\k<x>", "abcefg");
- x2("(?:(?<n1>.)|(?<n1>..)|(?<n1>...)|(?<n1>....)|(?<n1>.....)|(?<n1>......)|(?<n1>.......)|(?<n1>........)|(?<n1>.........)|(?<n1>..........)|(?<n1>...........)|(?<n1>............)|(?<n1>.............)|(?<n1>..............))\\k<n1>$", "a-pyumpyum", 2, 10);
- x3("(?:(?<n1>.)|(?<n1>..)|(?<n1>...)|(?<n1>....)|(?<n1>.....)|(?<n1>......)|(?<n1>.......)|(?<n1>........)|(?<n1>.........)|(?<n1>..........)|(?<n1>...........)|(?<n1>............)|(?<n1>.............)|(?<n1>..............))\\k<n1>$", "xxxxabcdefghijklmnabcdefghijklmn", 4, 18, 14);
- x3("(?<name1>)(?<name2>)(?<name3>)(?<name4>)(?<name5>)(?<name6>)(?<name7>)(?<name8>)(?<name9>)(?<name10>)(?<name11>)(?<name12>)(?<name13>)(?<name14>)(?<name15>)(?<name16>aaa)(?<name17>)$", "aaa", 0, 3, 16);
- x2("(?<foo>a|\\(\\g<foo>\\))", "a", 0, 1);
- x2("(?<foo>a|\\(\\g<foo>\\))", "((((((a))))))", 0, 13);
- x3("(?<foo>a|\\(\\g<foo>\\))", "((((((((a))))))))", 0, 17, 1);
- x2("\\g<bar>|\\zEND(?<bar>.*abc$)", "abcxxxabc", 0, 9);
- x2("\\g<1>|\\zEND(.a.)", "bac", 0, 3);
- x3("\\g<_A>\\g<_A>|\\zEND(.a.)(?<_A>.b.)", "xbxyby", 3, 6, 1);
- x2("\\A(?:\\g<pon>|\\g<pan>|\\zEND (?<pan>a|c\\g<pon>c)(?<pon>b|d\\g<pan>d))$", "cdcbcdc", 0, 7);
- x2("\\A(?<n>|a\\g<m>)\\z|\\zEND (?<m>\\g<n>)", "aaaa", 0, 4);
- x2("(?<n>(a|b\\g<n>c){3,5})", "baaaaca", 1, 5);
- x2("(?<n>(a|b\\g<n>c){3,5})", "baaaacaaaaa", 0, 10);
- x2("(?<pare>\\(([^\\(\\)]++|\\g<pare>)*+\\))", "((a))", 0, 5);
- x2("()*\\1", "", 0, 0);
- x2("(?:()|())*\\1\\2", "", 0, 0);
- x3("(?:\\1a|())*", "a", 0, 0, 1);
- x2("x((.)*)*x", "0x1x2x3", 1, 6);
- x2("x((.)*)*x(?i:\\1)\\Z", "0x1x2x1X2", 1, 9);
- x2("(?:()|()|()|()|()|())*\\2\\5", "", 0, 0);
- x2("(?:()|()|()|(x)|()|())*\\2b\\5", "b", 0, 1);
- x2("\\xED\\xF2", "\xed\xf2", 0, 2);
- x2("", "��", 0, 0);
- x2("��", "��", 0, 2);
- n("��", "��");
- x2("����", "����", 0, 4);
- x2("������", "������", 0, 6);
- x2("����������������������������������������������������������������������", "����������������������������������������������������������������������", 0, 70);
- x2("��", "����", 2, 4);
- x2("����", "������", 2, 6);
- x2("\\xca\\xb8", "\xca\xb8", 0, 2);
- x2(".", "��", 0, 2);
- x2("..", "����", 0, 4);
- x2("\\w", "��", 0, 2);
- n("\\W", "��");
- x2("[\\W]", "��$", 2, 3);
- x2("\\S", "��", 0, 2);
- x2("\\S", "��", 0, 2);
- x2("\\b", "�C ", 0, 0);
- x2("\\b", " ��", 1, 1);
- x2("\\B", "���� ", 2, 2);
- x2("\\B", "�� ", 3, 3);
- x2("\\B", " ��", 0, 0);
- x2("[����]", "��", 0, 2);
- n("[�Ȃ�]", "��");
- x2("[��-��]", "��", 0, 2);
- n("[^��]", "��");
- x2("[\\w]", "��", 0, 2);
- n("[\\d]", "��");
- x2("[\\D]", "��", 0, 2);
- n("[\\s]", "��");
- x2("[\\S]", "��", 0, 2);
- x2("[\\w\\d]", "��", 0, 2);
- x2("[\\w\\d]", " ��", 3, 5);
- n("\\w�S��", " �S��");
- x2("�S\\W��", "�S ��", 0, 5);
- x2("��.��.��", "����������", 0, 10);
- x2(".\\w��\\W..��", "������ ������", 0, 13);
- x2("\\s\\w������", " ��������", 0, 9);
- x2("����.��", "��������", 0, 8);
- n(".��", "����");
- x2(".��", "����", 0, 4);
- x2("^��", "��", 0, 2);
- x2("^��$", "��", 0, 2);
- x2("^\\w$", "��", 0, 2);
- x2("^\\w����������$", "z����������", 0, 11);
- x2("^\\w...������$", "z������������", 0, 13);
- x2("\\w\\w\\s\\W������\\d", "a�� ������4", 0, 12);
- x2("\\A������", "������", 0, 6);
- x2("�ނ߂�\\Z", "�ނ߂�", 0, 6);
- x2("������\\z", "������", 0, 6);
- x2("������\\Z", "������\n", 0, 6);
- x2("\\G�ۂ�", "�ۂ�", 0, 4);
- n("\\G��", "������");
- n("�Ƃ�\\G", "�Ƃ�");
- n("�܂�\\A", "�܂�");
- n("��\\A��", "�܂�");
- x2("(?=��)��", "��", 0, 2);
- n("(?=��).", "��");
- x2("(?!��)��", "��", 0, 2);
- n("(?!��)��", "��");
- x2("(?i:��)", "��", 0, 2);
- x2("(?i:�Ԃ�)", "�Ԃ�", 0, 4);
- n("(?i:��)", "��");
- x2("(?m:��.)", "��\n", 0, 3);
- x2("(?m:.��)", "��\n��", 2, 5);
- x2("��?", "", 0, 0);
- x2("��?", "��", 0, 0);
- x2("��?", "��", 0, 2);
- x2("��*", "", 0, 0);
- x2("��*", "��", 0, 2);
- x2("�q*", "�q�q�q", 0, 6);
- x2("�n*", "���n�n�n�n", 0, 0);
- n("�R+", "");
- x2("��+", "��", 0, 2);
- x2("��+", "��������", 0, 8);
- x2("��+", "����������", 0, 4);
- x2("��+", "����������", 2, 10);
- x2(".?", "��", 0, 2);
- x2(".*", "�ς҂Ղ�", 0, 8);
- x2(".+", "��", 0, 2);
- x2(".+", "��������\n", 0, 8);
- x2("��|��", "��", 0, 2);
- x2("��|��", "��", 0, 2);
- x2("����|����", "����", 0, 4);
- x2("����|����", "����", 0, 4);
- x2("��(?:����|����)", "������", 0, 6);
- x2("��(?:����|����)��", "��������", 0, 8);
- x2("����|(?:����|����)", "����", 0, 4);
- x2("��|��|��", "����", 2, 4);
- x2("��|��|����|������|��|������|������|��|����|�ĂƂȂ�|�ʂ�", "������", 0, 6);
- n("��|��|����|������|��|������|������|��|����|�ĂƂȂ�|�ʂ�", "����");
- x2("��|^��", "�Ԃ�", 2, 4);
- x2("��|^��", "����", 0, 2);
- x2("�S|\\G��", "���ԋS", 4, 6);
- x2("�S|\\G��", "�ԋS", 0, 2);
- x2("�S|\\A��", "b�ԋS", 3, 5);
- x2("�S|\\A��", "��", 0, 2);
- x2("�S|��\\Z", "�ԋS", 2, 4);
- x2("�S|��\\Z", "��", 0, 2);
- x2("�S|��\\Z", "��\n", 0, 2);
- x2("�S|��\\z", "�ԋS", 2, 4);
- x2("�S|��\\z", "��", 0, 2);
- x2("\\w|\\s", "��", 0, 2);
- x2("\\w|%", "%��", 0, 1);
- x2("\\w|[&$]", "��&", 0, 2);
- x2("[��-��]", "��", 0, 2);
- x2("[��-��]|[^��-��]", "��", 0, 2);
- x2("[��-��]|[^��-��]", "��", 0, 2);
- x2("[^��]", "\n", 0, 1);
- x2("(?:��|[��-��])|����", "����", 0, 2);
- x2("(?:��|[��-��])|����", "����", 0, 4);
- x2("������|(?=����)..��", "������", 0, 6);
- x2("������|(?!����)..��", "������", 0, 6);
- x2("(?=����)..��|(?=����)..��", "������", 0, 6);
- x2("(?<=��|����)��", "������", 4, 6);
- n("(?>��|������)��", "��������");
- x2("(?>������|��)��", "��������", 0, 8);
- x2("��?|��", "��", 0, 2);
- x2("��?|��", "��", 0, 0);
- x2("��?|��", "", 0, 0);
- x2("��*|��", "����", 0, 4);
- x2("��*|��*", "����", 0, 0);
- x2("��*|��*", "����", 0, 2);
- x2("[a��]*|��*", "a��������", 0, 3);
- x2("��+|��*", "", 0, 0);
- x2("��+|��*", "������", 0, 6);
- x2("��+|��*", "��������", 0, 2);
- x2("��+|��*", "a��������", 0, 0);
- n("��+|��+", "");
- x2("(��|��)?", "��", 0, 2);
- x2("(��|��)*", "����", 0, 4);
- x2("(��|��)+", "������", 0, 6);
- x2("(����|����)+", "������������", 0, 8);
- x2("(����|����)+", "������������", 4, 12);
- x2("(����|����)+", "����������", 2, 10);
- x2("(����|����)+", "����������", 0, 4);
- x2("(����|����)+", "$$zzzz����������", 6, 10);
- x2("(��|������)+", "����������", 0, 10);
- x2("(��|������)+", "����", 2, 4);
- x2("(��|������)+", "������������", 2, 8);
- x2("(?:��|��)(?:��|��)", "����", 0, 4);
- x2("(?:��*|��*)(?:��*|��*)", "������������", 0, 6);
- x2("(?:��*|��*)(?:��+|��+)", "������������", 0, 12);
- x2("(?:��+|��+){2}", "������������", 0, 12);
- x2("(?:��+|��+){1,2}", "������������", 0, 12);
- x2("(?:��+|\\A��*)����", "����", 0, 4);
- n("(?:��+|\\A��*)����", "��������");
- x2("(?:^��+|��+)*��", "����������������", 12, 16);
- x2("(?:^��+|��+)*��", "��������������", 0, 14);
- x2("��{0,}", "��������", 0, 8);
- x2("��|(?i)c", "C", 0, 1);
- x2("(?i)c|��", "C", 0, 1);
- x2("(?i:��)|a", "a", 0, 1);
- n("(?i:��)|a", "A");
- x2("[������]?", "������", 0, 2);
- x2("[������]*", "������", 0, 6);
- x2("[^������]*", "������", 0, 0);
- n("[^������]+", "������");
- x2("��?\?", "������", 0, 0);
- x2("����?\?��", "������", 0, 6);
- x2("��*?", "������", 0, 0);
- x2("����*?", "������", 0, 2);
- x2("����*?��", "��������", 0, 8);
- x2("��+?", "������", 0, 2);
- x2("����+?", "������", 0, 4);
- x2("����+?��", "��������", 0, 8);
- x2("(?:�V?)?\?", "�V", 0, 0);
- x2("(?:�V?\?)?", "�V", 0, 0);
- x2("(?:��?)+?", "������", 0, 2);
- x2("(?:��+)?\?", "������", 0, 0);
- x2("(?:��+)?\?��", "���ᑚ", 0, 8);
- x2("(?:����)?{2}", "", 0, 0);
- x2("(?:�S��)?{2}", "�S�ԋS�ԋS", 0, 8);
- x2("(?:�S��)*{0}", "�S�ԋS�ԋS", 0, 0);
- x2("(?:�S��){3,}", "�S�ԋS�ԋS�ԋS��", 0, 16);
- n("(?:�S��){3,}", "�S�ԋS��");
- x2("(?:�S��){2,4}", "�S�ԋS�ԋS��", 0, 12);
- x2("(?:�S��){2,4}", "�S�ԋS�ԋS�ԋS�ԋS��", 0, 16);
- x2("(?:�S��){2,4}?", "�S�ԋS�ԋS�ԋS�ԋS��", 0, 8);
- x2("(?:�S��){,}", "�S��{,}", 0, 7);
- x2("(?:������)+?{2}", "������������������", 0, 12);
- x3("(��)", "��", 0, 2, 1);
- x3("(�ΐ�)", "�ΐ�", 0, 4, 1);
- x2("((����))", "����", 0, 4);
- x3("((����))", "����", 0, 4, 1);
- x3("((���))", "���", 0, 4, 2);
- x3("((((((((((((((((((((�ʎq))))))))))))))))))))", "�ʎq", 0, 4, 20);
- x3("(����)(����)", "��������", 0, 4, 1);
- x3("(����)(����)", "��������", 4, 8, 2);
- x3("()(��)����(������)��������", "��������������������", 6, 12, 3);
- x3("(()(��)����(������)��������)", "��������������������", 6, 12, 4);
- x3(".*(�t�H)���E�}(��()�V���^)�C��", "�t�H���E�}���V���^�C��", 10, 18, 2);
- x2("(^��)", "��", 0, 2);
- x3("(��)|(��)", "����", 2, 4, 1);
- x3("(^��)|(��)", "����", 2, 4, 2);
- x3("(��?)", "������", 0, 2, 1);
- x3("(��*)", "�܂܂�", 0, 6, 1);
- x3("(��*)", "", 0, 0, 1);
- x3("(��+)", "��������", 0, 14, 1);
- x3("(��+|��*)", "�ӂӂӂւ�", 0, 6, 1);
- x3("(��+|��?)", "����������", 0, 2, 1);
- x3("(������)?", "������", 0, 6, 1);
- x3("(������)*", "������", 0, 6, 1);
- x3("(������)+", "������", 0, 6, 1);
- x3("(������|������)+", "������", 0, 6, 1);
- x3("([�Ȃɂ�][������]|������)+", "������", 0, 6, 1);
- x3("((?i:������))", "������", 0, 6, 1);
- x3("((?m:��.��))", "��\n��", 0, 5, 1);
- x3("((?=����)��)", "����", 0, 2, 1);
- x3("������|(.������)", "����", 0, 8, 1);
- x3("��*(.)", "����������", 8, 10, 1);
- x3("��*?(.)", "����������", 0, 2, 1);
- x3("��*?(��)", "����������", 8, 10, 1);
- x3("[������]��*(.)", "������������", 10, 12, 1);
- x3("(\\A����)����", "��������", 0, 4, 1);
- n("(\\A����)����", "������");
- x3("(^����)����", "��������", 0, 4, 1);
- n("(^����)����", "������");
- x3("���(���$)", "�����", 4, 8, 1);
- n("���(���$)", "������");
- x2("(��)\\1", "����", 0, 4);
- n("(��)\\1", "����");
- x2("(��?)\\1", "���", 0, 4);
- x2("(��?\?)\\1", "���", 0, 0);
- x2("(��*)\\1", "������", 0, 8);
- x3("(��*)\\1", "������", 0, 4, 1);
- x2("��(��*)\\1", "����������", 0, 10);
- x2("��(��*)\\1", "����", 0, 2);
- x2("(��*)(��*)\\1\\2", "��������������������", 0, 20);
- x2("(��*)(��*)\\2", "��������������", 0, 14);
- x3("(��*)(��*)\\2", "��������������", 6, 10, 2);
- x2("(((((((��*)��))))))��\\7", "�ۂۂۂ҂ۂۂ�", 0, 16);
- x3("(((((((��*)��))))))��\\7", "�ۂۂۂ҂ۂۂ�", 0, 6, 7);
- x2("(��)(��)(��)\\2\\1\\3", "�͂ЂӂЂ͂�", 0, 12);
- x2("([��-��])\\1", "����", 0, 4);
- x2("(\\w\\d\\s)\\1", "��5 ��5 ", 0, 8);
- n("(\\w\\d\\s)\\1", "��5 ��5");
- x2("(�N�H|[��-��]{3})\\1", "�N�H�N�H", 0, 8);
- x2("...(�N�H|[��-��]{3})\\1", "��a���N�H�N�H", 0, 13);
- x2("(�N�H|[��-��]{3})\\1", "������������", 0, 12);
- x2("(^��)\\1", "����", 0, 4);
- n("(^��)\\1", "�߂ނ�");
- n("(��$)\\1", "����");
- n("(����\\Z)\\1", "����");
- x2("(��*\\Z)\\1", "��", 2, 2);
- x2(".(��*\\Z)\\1", "����", 2, 4);
- x3("(.(�₢��)\\2)", "z�₢��₢��", 0, 13, 1);
- x3("(.(..\\d.)\\2)", "��12341234", 0, 10, 1);
- x2("((?i:��v��))\\1", "��v����v��", 0, 10);
- x2("(?<����>��|\\(\\g<����>\\))", "((((((��))))))", 0, 14);
- x2("\\A(?:\\g<��_1>|\\g<�]_2>|\\z�I�� (?<��_1>��|��\\g<�]_2>��)(?<�]_2>��|��F\\g<��_1>��F))$", "��F����F���ݎ���F����F", 0, 26);
- x2("[[�Ђ�]]", "��", 0, 2);
- x2("[[������]��]", "��", 0, 2);
- n("[[^��]]", "��");
- n("[^[��]]", "��");
- x2("[^[^��]]", "��", 0, 2);
- x2("[[������]&&����]", "��", 0, 2);
- n("[[������]&&����]", "��");
- n("[[������]&&����]", "��");
- x2("[��-��&&��-��&&��-��]", "��", 0, 2);
- n("[^��-��&&��-��&&��-��]", "��");
- x2("[[^��&&��]&&��-��]", "��", 0, 2);
- n("[[^��&&��]&&��-��]", "��");
- x2("[[^��-��&&��������]&&[^��-��]]", "��", 0, 2);
- n("[[^��-��&&��������]&&[^��-��]]", "��");
- x2("[^[^������]&&[^������]]", "��", 0, 2);
- x2("[^[^������]&&[^������]]", "��", 0, 2);
- n("[^[^������]&&[^������]]", "��");
- x2("[��-&&-��]", "-", 0, 1);
- x2("[^[^a-z������]&&[^bcdefg������]q-w]", "��", 0, 2);
- x2("[^[^a-z������]&&[^bcdefg������]g-w]", "f", 0, 1);
- x2("[^[^a-z������]&&[^bcdefg������]g-w]", "g", 0, 1);
- n("[^[^a-z������]&&[^bcdefg������]g-w]", "2");
- x2("a<b>�o�[�W�����̃_�E�����[�h<\\/b>", "a<b>�o�[�W�����̃_�E�����[�h</b>", 0, 32);
- x2(".<b>�o�[�W�����̃_�E�����[�h<\\/b>", "a<b>�o�[�W�����̃_�E�����[�h</b>", 0, 32);
- fprintf(stdout,
- "\nRESULT SUCC: %d, FAIL: %d, ERROR: %d (by Oniguruma %s)\n",
- nsucc, nfail, nerror, onig_version());
-
-#ifndef POSIX_TEST
- onig_region_free(region, 1);
- onig_end();
-#endif
-
- return ((nfail == 0 && nerror == 0) ? 0 : -1);
-}
|