def scheme.ok

bend-kit-url@0.4.1.0 · url.bend:552

import bend-kit-url@0.4.1.0/url.bend as Url
import Base

552def scheme.ok(s: String) -> Bool:
553  match s:
554    case SNil{}:
555      True{}
556    case SCon{Chr{+c}, t}:
557      Bool.and(Bool.or(Bool.or(Bool.and(U32.is_le(97, c), U32.is_le(c, 122)), Bool.and(U32.is_le(65, c), U32.is_le(c, 90))), Bool.or(Bool.and(U32.is_le(48, c), U32.is_le(c, 57)), Bool.or(U32.is_eq(c, 43), Bool.or(U32.is_eq(c, 45), U32.is_eq(c, 46))))), scheme.ok(t))

Uses (7)

Used by (1)