Utf8.Utf8.size: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/utf8.bend as Utf8 Lines 175-182 of bend-kube-runtime@0.2.0.0/src/utf8.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/utf8.bend&start_line=175&end_line=182 import Base # The UTF-8 length of a string, in bytes. def Utf8.size(s: String) -> U32: match s: case SNil{}: 0 case SCon{Chr{+c}, t}: (Utf8.size.of(c, U32.is_lt(c, 128), U32.is_lt(c, 2048), U32.is_lt(c, 65536)) + Utf8.size(t) : U32) Uses (6): 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=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/utf8.bend&name=Utf8.size.of