Documentation

Regex.Data.String.Basic

Slice s is a subslice of Slice t, if the underlying strings are equal and t.startInclusive ≤ s.startInclusive and s.endExclusive ≤ t.endExclusive.

Equations
Instances For
    @[simp]
    theorem String.Slice.replaceStartEnd_is_subslice_of {s : Slice} {p0 p1 : s.Pos} {h : p0 p1} :
    def String.Slice.castPosOfSubslice {s t : Slice} (p : s.Pos) (h : s.isSubslice t) :
    t.Pos

    cast p : s.Pos to t.Pos

    Equations
    Instances For

      s.startPos : s.Pos as t.Pos

      Equations
      Instances For

        s.endPos : s.Pos as t.Pos

        Equations
        Instances For