Regex.esc: def of bend-kit-regex@0.8.0.0 Import: import bend-kit-regex@0.8.0.0/regex.bend as Regex Lines 117-157 of bend-kit-regex@0.8.0.0/regex.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-regex@0.8.0.0/regex.bend&start_line=117&end_line=157 import Base # The text after a backslash. def esc(s: String) -> Esc: match s: case SNil{}: EBad{} case SCon{'d', t}: EItems{perl.d(), t} case SCon{'D', t}: EItems{perl.D(), t} case SCon{'w', t}: EItems{perl.w(), t} case SCon{'W', t}: EItems{perl.W(), t} case SCon{'s', t}: EItems{perl.s(), t} case SCon{'S', t}: EItems{perl.S(), t} case SCon{'p', t}: prop(False{}, t) case SCon{'P', t}: prop(True{}, t) case SCon{'A', t}: EAssert{0, t} case SCon{'z', t}: EAssert{1, t} case SCon{'b', t}: EAssert{2, t} case SCon{'B', t}: EAssert{3, t} case SCon{'n', t}: EPoint{10, t} case SCon{'t', t}: EPoint{9, t} case SCon{'r', t}: EPoint{13, t} case SCon{'f', t}: EPoint{12, t} case SCon{'v', t}: EPoint{11, t} case SCon{Chr{+c}, t}: esc.other(is_alnum(c), c, t) Uses (16): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil https://jend.leeeet.dev/definition.txt?path=bend-kit-regex@0.8.0.0/regex.bend&name=Esc https://jend.leeeet.dev/definition.txt?path=bend-kit-regex@0.8.0.0/regex.bend&name=esc.other https://jend.leeeet.dev/definition.txt?path=bend-kit-regex@0.8.0.0/regex.bend&name=is_alnum https://jend.leeeet.dev/definition.txt?path=bend-kit-regex@0.8.0.0/regex.bend&name=perl.D https://jend.leeeet.dev/definition.txt?path=bend-kit-regex@0.8.0.0/regex.bend&name=perl.S https://jend.leeeet.dev/definition.txt?path=bend-kit-regex@0.8.0.0/regex.bend&name=perl.W https://jend.leeeet.dev/definition.txt?path=bend-kit-regex@0.8.0.0/regex.bend&name=perl.d https://jend.leeeet.dev/definition.txt?path=bend-kit-regex@0.8.0.0/regex.bend&name=perl.s https://jend.leeeet.dev/definition.txt?path=bend-kit-regex@0.8.0.0/regex.bend&name=perl.w https://jend.leeeet.dev/definition.txt?path=bend-kit-regex@0.8.0.0/regex.bend&name=prop