def cookie.ip4

bend-kit-http@0.38.2.0 · http.bend:1909

import bend-kit-http@0.38.2.0/http.bend as Http
import Base

1909def cookie.ip4(s: String) -> Bool:
1910  match s:
1911    case SNil{}:
1912      True{}
1913    case SCon{Chr{+c}, t}:
1914      Bool.and(Bool.or(parse_u32.digit(c), U32.is_eq(c, 46)), cookie.ip4(t))

Uses (7)

Used by (1)