blob: c26111fd230b8355d300082f5b6ce2f39848bc01 (
plain) (
tree)
|
|
const
LRE_FLAG_GLOBAL* = 1 shl 0
LRE_FLAG_IGNORECASE* = 1 shl 1
LRE_FLAG_MULTILINE* = 1 shl 2
LRE_FLAG_DOTALL* = 1 shl 3
LRE_FLAG_UTF16* = 1 shl 4
LRE_FLAG_STICKY* = 1 shl 5
{.passC: "-Ilib/".}
{.push header: "quickjs/libregexp.h", importc.}
proc lre_compile*(plen: ptr cint, error_msg: cstring, error_msg_size: cint,
buf: cstring, buf_len: csize_t, re_flags: cint, opaque: pointer): ptr uint8
proc lre_exec*(capture: ptr ptr uint8, bc_buf: ptr uint8, cbuf: ptr uint8,
cindex: cint, clen: cint, cbuf_type: cint, opaque: pointer): cint
proc lre_get_capture_count*(bc_buf: ptr uint8): cint
proc lre_get_flags*(bc_buf: ptr uint8): cint
{.pop.}
|