summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorksaito <ksaito@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-13 01:54:52 +0000
committerksaito <ksaito@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-13 01:54:52 +0000
commit7049aeb893d9bc9b7205e2f70581760cb54091ab (patch)
treecd11abe5bd68146ddbf7ad300bde58907d261fab /regcomp.c
parent2e3d3bb91681a9f916f862a05ebc9736a15e3dda (diff)
* oniggnu.h, oniguruma.h, regcomp.c, st.c: imported Oni Guruma 3.6.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index 116bcb7..80bc13b 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -29,6 +29,24 @@
#include "regparse.h"
+OnigAmbigType OnigDefaultAmbigFlag =
+ (ONIGENC_AMBIGUOUS_MATCH_ASCII_CASE |
+ ONIGENC_AMBIGUOUS_MATCH_NONASCII_CASE);
+
+extern OnigAmbigType
+onig_get_default_ambig_flag()
+{
+ return OnigDefaultAmbigFlag;
+}
+
+extern int
+onig_set_default_ambig_flag(OnigAmbigType ambig_flag)
+{
+ OnigDefaultAmbigFlag = ambig_flag;
+ return 0;
+}
+
+
#ifndef PLATFORM_UNALIGNED_WORD_ACCESS
static unsigned char PadBuf[WORD_ALIGNMENT_SIZE];
#endif