Class MachineInput

java.lang.Object
com.google.re2j.MachineInput
Direct Known Subclasses:
MachineInput.UTF16Input, MachineInput.UTF8Input

abstract class MachineInput extends Object
MachineInput abstracts different representations of the input text supplied to the Machine. It provides one-character lookahead.
  • Field Details

  • Constructor Details

    • MachineInput

      MachineInput()
  • Method Details

    • fromUTF8

      static MachineInput fromUTF8(byte[] b)
    • fromUTF8

      static MachineInput fromUTF8(byte[] b, int start, int end)
    • fromUTF16

      static MachineInput fromUTF16(CharSequence s)
    • fromUTF16

      static MachineInput fromUTF16(CharSequence s, int start, int end)
    • step

      abstract int step(int pos)
      / Interface
    • canCheckPrefix

      abstract boolean canCheckPrefix()
    • index

      abstract int index(RE2 re2, int pos)
    • context

      abstract int context(int pos)
    • endPos

      abstract int endPos()