Gjsify LogoGjsify Logo

Hierarchy

  • Regex

Index

Constructors

Properties

name: string

Methods

  • jit(flags: number): boolean
  • If the platform supports JITing, JIT compiles regex.

    Parameters

    • flags: number

      PCRE2 JIT flags, or 0

    Returns boolean

  • substitute(subject: string, replacement: string, flags: number): string
  • See man:pcre2api(3) and man:pcre2_substitute(3) for more information.

    Parameters

    • subject: string

      the subject string

    • replacement: string

      the replacement string

    • flags: number

      PCRE2 match flags

    Returns string

  • Decreases the reference count of regex by one, and frees regex if the refcount reaches zero.

    Returns Vte.Regex

  • newForMatch(pattern: string, patternLength: number, flags: number): Vte.Regex
  • Compiles pattern into a regex for use as a match regex with vte_terminal_match_add_regex() or vte_terminal_event_check_regex_simple().

    See man:pcre2pattern(3) for information about the supported regex language.

    The regex will be compiled using PCRE2_UTF and possibly other flags, in addition to the flags supplied in flags.

    Parameters

    • pattern: string

      a regex pattern string

    • patternLength: number

      the length of pattern in bytes, or -1 if the string is NUL-terminated and the length is unknown

    • flags: number

      PCRE2 compile flags

    Returns Vte.Regex

  • newForSearch(pattern: string, patternLength: number, flags: number): Vte.Regex
  • Compiles pattern into a regex for use as a search regex with vte_terminal_search_set_regex().

    See man:pcre2pattern(3) for information about the supported regex language.

    The regex will be compiled using PCRE2_UTF and possibly other flags, in addition to the flags supplied in flags.

    Parameters

    • pattern: string

      a regex pattern string

    • patternLength: number

      the length of pattern in bytes, or -1 if the string is NUL-terminated and the length is unknown

    • flags: number

      PCRE2 compile flags

    Returns Vte.Regex

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method