Setwrite.parse.kind: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/setwrite.bend as Setwrite Lines 103-114 of cswap-bend-cli@0.1.0.0/setwrite.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/setwrite.bend&start_line=103&end_line=114 import Base import cswap-bend-cli@0.1.0.0/setload.bend as Setload import cswap-bend-cli@0.1.0.0/settings.bend as Settings def parse.kind(kind: Settings.Sort, +dot: String, +raw: String, lo: String, hi: String, +choices: String) -> Parsed: match kind: case Settings.KFloat{}: parse.number(False{}, dot, raw, lo, hi) case Settings.KInt{}: parse.number(True{}, dot, raw, lo, hi) case Settings.KBool{}: parse.bool2(bool.word(String.to_lower(String.trim(raw))), dot, raw) case Settings.KChoice{}: parse.choice2(Setload.has_str(String.split(choices, ','), raw), dot, choices, raw) case Settings.KString{}: parse.str2(String.is_empty(String.trim(raw)), dot, String.trim(raw)) Uses (15): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=String.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.split https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.to_lower https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.trim https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&name=has_str https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/settings.bend&name=Sort https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setwrite.bend&name=Parsed https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setwrite.bend&name=bool.word https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setwrite.bend&name=parse.bool2 https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setwrite.bend&name=parse.choice2 https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setwrite.bend&name=parse.number https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setwrite.bend&name=parse.str2