github.com/shadialtarsha/go-pcre@v0.0.0-20220904164957-b4f1834ceecc/types.go (about)

     1  package pcre
     2  
     3  import "github.com/shadialtarsha/go-pcre/lib"
     4  
     5  type CompileOption uint32
     6  
     7  // Compile option bits
     8  const (
     9  	Anchored          = CompileOption(lib.DPCRE2_ANCHORED)
    10  	AllowEmptyClass   = CompileOption(lib.DPCRE2_ALLOW_EMPTY_CLASS)
    11  	AltBsux           = CompileOption(lib.DPCRE2_ALT_BSUX)
    12  	AltCircumflex     = CompileOption(lib.DPCRE2_ALT_CIRCUMFLEX)
    13  	AltVerbnames      = CompileOption(lib.DPCRE2_ALT_VERBNAMES)
    14  	AutoCallout       = CompileOption(lib.DPCRE2_AUTO_CALLOUT)
    15  	Caseless          = CompileOption(lib.DPCRE2_CASELESS)
    16  	DollarEndOnly     = CompileOption(lib.DPCRE2_DOLLAR_ENDONLY)
    17  	DotAll            = CompileOption(lib.DPCRE2_DOTALL)
    18  	DupNames          = CompileOption(lib.DPCRE2_DUPNAMES)
    19  	EndAnchored       = CompileOption(lib.DPCRE2_ENDANCHORED)
    20  	Extended          = CompileOption(lib.DPCRE2_EXTENDED)
    21  	FirstLine         = CompileOption(lib.DPCRE2_FIRSTLINE)
    22  	Literal           = CompileOption(lib.DPCRE2_LITERAL)
    23  	MatchInvalidUTF   = CompileOption(lib.DPCRE2_MATCH_INVALID_UTF)
    24  	MatchUnsetBackref = CompileOption(lib.DPCRE2_MATCH_UNSET_BACKREF)
    25  	Multiline         = CompileOption(lib.DPCRE2_MULTILINE)
    26  	NeverBackslashC   = CompileOption(lib.DPCRE2_NEVER_BACKSLASH_C)
    27  	NeverUCP          = CompileOption(lib.DPCRE2_NEVER_UCP)
    28  	NeverUTF          = CompileOption(lib.DPCRE2_NEVER_UTF)
    29  	NoAutoCapture     = CompileOption(lib.DPCRE2_NO_AUTO_CAPTURE)
    30  	NoAutoPossess     = CompileOption(lib.DPCRE2_NO_AUTO_POSSESS)
    31  	NoDotStarAnchor   = CompileOption(lib.DPCRE2_NO_DOTSTAR_ANCHOR)
    32  	NoStartOptimize   = CompileOption(lib.DPCRE2_NO_START_OPTIMIZE)
    33  	NoUTFCheck        = CompileOption(lib.DPCRE2_NO_UTF_CHECK)
    34  	UCP               = CompileOption(lib.DPCRE2_UCP)
    35  	Ungreedy          = CompileOption(lib.DPCRE2_UNGREEDY)
    36  	UseOffsetLimit    = CompileOption(lib.DPCRE2_USE_OFFSET_LIMIT)
    37  	UTF               = CompileOption(lib.DPCRE2_UTF)
    38  )