def utf8.go
import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4import Base
42def utf8.go(s: String, acc: String) -> String:
43 match s:
44 case SNil{}:
45 String.reverse(acc)
46 case SCon{Chr{+c}, t}:
47 utf8.go(t, utf8.c1(U32.is_lt(c, 128), c, acc))