Websocket.utf8.lead: def of bend-kit-websocket@0.4.0.0 Import: import bend-kit-websocket@0.4.0.0/websocket.bend as Websocket Lines 605-614 of bend-kit-websocket@0.4.0.0/websocket.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-websocket@0.4.0.0/websocket.bend&start_line=605&end_line=614 import Base def utf8.lead(+b: U32) -> U32: Bool.pick(U32, U32.is_lt(b, 128), st(0, 128, 191), Bool.pick(U32, U32.is_lt(b, 194), 255, Bool.pick(U32, U32.is_lt(b, 224), st(1, 128, 191), Bool.pick(U32, U32.is_eq(b, 224), st(2, 160, 191), Bool.pick(U32, U32.is_eq(b, 237), st(2, 128, 159), Bool.pick(U32, U32.is_lt(b, 240), st(2, 128, 191), Bool.pick(U32, U32.is_eq(b, 240), st(3, 144, 191), Bool.pick(U32, U32.is_lt(b, 244), st(3, 128, 191), Bool.pick(U32, U32.is_eq(b, 244), st(3, 128, 143), 255))))))))) 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=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=bend-kit-websocket@0.4.0.0/websocket.bend&name=st