时间:2026-09-02 09:06 | 来源:墨客学术 | 作者:墨客学术 | 点击:次
ISO-8859-10, UTF-16BE。
UTF-8, ISO-8859-6, \R, ISO-8859-5, \g{name}, add option -DONIG_EXTERN=extern to C compiler.Sample Programs sample/simple.c example of the minimum (Oniguruma API) sample/names.cexample of the named group callback. sample/encode.c example of some encodings. sample/listcap.c example of the capture history. sample/posix.cPOSIX API sample. sample/sql.cexample of the variable meta characters.(SQL-like pattern matching)Test Programs sample/syntax.c Perl, ISO-8859-13, ISO-8859-16* GB18030: contributed by KUBO Takehiro* CP1251: contributed by Byte------------------------------------------------------------LicenseBSD license.Install Case 1: Unix and Cygwin platform1. ./configure 2. make 3. make install* uninstallmake uninstall* test (ASCII/EUC-JP)make atest* configuration checkonig-config --cflagsonig-config --libsonig-config --prefixonig-config --exec-prefixCase 2: Win32 platform (VC++)1. copy win32\Makefile Makefile 2. copy win32\config.h config.h 3. nmakeonig_s.lib: static link libraryonig.dll: dynamic link library * test (ASCII/Shift_JIS) 4. copy win32\testc.c testc.c 5. nmake ctestRegular Expressions See doc/RE (or doc/RE.ja for Japanese).Usage Include oniguruma.h in your program. (Oniguruma API) See doc/API for Oniguruma API. If you want to disable UChar type (== unsigned char) definition in oniguruma.h, UTF-32BE, ISO-8859-9, \X, KOI8-R, \z, (?(cond)yes|no)(?adlu), (?n), UTF-32LE, ISO-8859-15, define ONIG_ESCAPE_UCHAR_COLLISION and then include oniguruma.h. If you want to disable regex_t type definition in oniguruma.h, ISO-8859-2, EUC-TW, ISO-8859-4。
ISO-8859-1。
\g{n}, EUC-KR。
\Z) ?? \X (== \PM\pM*) ?? implement syntax behavior ONIG_SYN_CONTEXT_INDEP_ANCHORS. ?? transmission stopper. (return ONIG_STOP from match_at())and I'm thankful to Akinori MUSHA.Mail Address: K.Kosako sndgk393 AT ybb DOT ne DOT jp , README 2013/03/21Onigmo (Oniguruma-mod) -- (C) K.Takata kentkt AT csc DOT jphttps://github.com/k-takata/OnigmoOnigmo is a regular expressions library forked from Oniguruma.Some of new features introduced in Perl 5.10+ can be used.Some patches are merged from Ruby 2.0.0.Main New features: Regular Expressions (depends on the syntax):\K。
define ONIG_ESCAPE_REGEX_T_COLLISION and then include oniguruma.h. Example of the compiling/linking command line in Unix or Cygwin。
(prefix == /usr/local case)cc sample.c -L/usr/local/lib -lonigIf you want to use static link library(onig_s.lib) in Win32, (?name), Shift_JIS, ISO-8859-7, CP1251, ISO-8859-14。
EUC-CN, (?Pname) API:onig_search_gpos (for Perl-compatible \G) Encoding:CP932 Syntax:PythonNew Source Files: enc/cp932.cCP932 encoding. enc/unicode/casefold.hUnicode case folding data. enc/unicode/name2ctype.hUnicode properties data. onig.pyonig.dll/libonig.so loader. testpy.pytest program. tool/CaseFolding.pygenerates casefold.h. tool/convert-name2ctype.sh converts name2ctype.kwd to name2ctypes.h. tool/enc-unicode.rbgenerates name2ctype.kwd. win32/makedef.pycreates onig.def. win32/onig.rcresource file for onig.dll.ToDo: * Reduce the size of Unicode Character Data. * (?|...) * Improve (?(cond)yes|no). (support look-ahead/behind assertions.)Oniguruma's README follows:======================================================================README 2007/05/31Oniguruma ---- (C) K.Kosako sndgk393 AT ybb DOT ne DOT jpOniguruma is a regular expressions library.The characteristics of this library is that different character encodingfor every regular expression object can be specified.Supported character encodings: ASCII, EUC-JP, (?R), (?P=name), (?0)(?Pname...), GB18030, ISO-8859-3, ISO-8859-11, UTF-16LE, Big5, EUC-CN encoding. enc/sjis.cShift_JIS encoding. enc/big5.cBig5encoding. enc/gb18030.cGB18030 encoding. enc/koi8.cKOI8encoding. enc/koi8_r.cKOI8-R encoding. enc/cp1251.cCP1251 encoding. enc/iso8859_1.c ISO-8859-1 encoding. (Latin-1) enc/iso8859_2.c ISO-8859-2 encoding. (Latin-2) enc/iso8859_3.c ISO-8859-3 encoding. (Latin-3) enc/iso8859_4.c ISO-8859-4 encoding. (Latin-4) enc/iso8859_5.c ISO-8859-5 encoding. (Cyrillic) enc/iso8859_6.c ISO-8859-6 encoding. (Arabic) enc/iso8859_7.c ISO-8859-7 encoding. (Greek) enc/iso8859_8.c ISO-8859-8 encoding. (Hebrew) enc/iso8859_9.c ISO-8859-9 encoding. (Latin-5 or Turkish) enc/iso8859_10.c ISO-8859-10 encoding. (Latin-6 or Nordic) enc/iso8859_11.c ISO-8859-11 encoding. (Thai) enc/iso8859_13.c ISO-8859-13 encoding. (Latin-7 or Baltic Rim) enc/iso8859_14.c ISO-8859-14 encoding. (Latin-8 or Celtic) enc/iso8859_15.c ISO-8859-15 encoding. (Latin-9 or West European with Euro) enc/iso8859_16.c ISO-8859-16 encoding.(Latin-10 or South-Eastern European with Euro) enc/utf8.cUTF-8 encoding. enc/utf16_be.cUTF-16BE encoding. enc/utf16_le.cUTF-16LE encoding. enc/utf32_be.cUTF-32BE encoding. enc/utf32_le.cUTF-32LE encoding. enc/unicode.cUnicode information data. win32/MakefileMakefile for Win32 (VC++) win32/config.hconfig.h for Win32ToDo ? case fold flag: Katakana - Hiragana. ? add ONIG_OPTION_NOTBOS/NOTEOS. (\A, ISO-8859-8。
Java and ASIS syntax test. sample/crnl.c--enable-crnl-as-line-terminator testSource Files oniguruma.hOniguruma API header file. (public) onig-config.inconfiguration check program template. regenc.hcharacter encodings framework header file. regint.hinternal definitions regparse.hinternal definitions for regparse.c and regcomp.c regcomp.ccompiling and optimization functions regenc.ccharacter encodings framework. regerror.cerror message function regext.cextended API functions. (deluxe version API) regexec.csearch and match functions regparse.cparsing functions. regsyntax.cpattern syntax functions and built-in syntax definitions. regtrav.ccapture history tree data traverse functions. regversion.cversion info function. st.hhash table functions header file st.chash table functions oniggnu.hGNU regex API header file. (public) reggnu.cGNU regex API functions onigposix.hPOSIX API header file. (public) regposerr.cPOSIX error message function. regposix.cPOSIX API functions. enc/mktable.ccharacter type table generator. enc/ascii.cASCII encoding. enc/euc_jp.cEUC-JP encoding. enc/euc_tw.cEUC-TW encoding. enc/euc_kr.cEUC-KR,。