Module Textmate.RegExpFactory
type captureGroup
= int * string
type anchorCache
=
{
raw_A0_G0 : string;
raw_A1_G0 : string;
raw_A0_G1 : string;
raw_A1_G1 : string;
}
type compiledAnchorCache
=
{
a0_G0 : RegExp.t;
a1_G0 : RegExp.t;
a0_G1 : RegExp.t;
a1_G1 : RegExp.t;
}
type t
=
{
hasAnchorA : bool;
hasAnchorG : bool;
hasUnresolvedBackReferences : bool;
captureGroups : captureGroup list option;
raw : string;
anchorCache : anchorCache option;
regex : RegExp.t option;
compiledAnchorCache : compiledAnchorCache option;
}
val hasAnchorA : Str.regexp
val hasAnchorG : Str.regexp
val hasAnchors : t -> bool
val hasBackRefRegExp : Str.regexp
val hasBackReferences : t -> bool
val charactersToEscape : Str.regexp
val additionalCharactersToEscape : Str.regexp
val escapeRegExpCharacters : string -> string
val _createAnchorCache : string -> anchorCache option
val _createCompiledAnchorCache : anchorCache option -> compiledAnchorCache option
val create : ?allowBackReferences:bool -> string -> t
val supplyReferences : captureGroup list -> t -> t
val compile : bool -> bool -> t -> RegExp.t
val show : t -> string