Cli.code_class_by: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 903-915 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=903&end_line=915 import Base def code_class_by(small: Bool, +code: U32) -> CodeClass: match small: case True{}: Bool.pick(CodeClass, keycap_base(code), KeycapCode{}, Bool.pick(CodeClass, Bool.or(U32.is_eq(code, 169), U32.is_eq(code, 174)), PictoCode{}, PlainCode{})) case False{}: Bool.pick(CodeClass, U32.is_eq(code, 65039), Vs16Code{}, Bool.pick(CodeClass, U32.is_eq(code, 8205), JoinerCode{}, Bool.pick(CodeClass, Bool.and(U32.is_ge(code, 127995), U32.is_le(code, 127999)), ToneCode{}, picto_class(Bool.or(Bool.and(U32.is_ge(code, 8252), U32.is_le(code, 12953)), U32.is_ge(code, 126976)), code)))) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or 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_ge https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_le https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=CodeClass https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=keycap_base https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=picto_class