Cli.byte_escape: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 7948-7951 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=7948&end_line=7951 import Base # U+DC00 plus byte b, PEP 383's escape for a byte that starts no # well-formed UTF-8 sequence; U+FFFD for a value past 255, no byte. def byte_escape(+b: U32) -> Char: Chr{Bool.pick(U32, U32.is_le(b, 255), (b + 56320 : U32), 65533)} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char 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_le