def hex_digit_kind
import qasim-bend-kit@0.1.0.2/libs/URL.bend as URLimport Base
3# Encode one byte as a percent escape. The SQL library used this representation;
4# keeping it preserves existing query and form-body behavior.
5def hex_digit_kind(n: U32, decimal: Bool) -> U32:
6 match decimal:
7 case True{}: (48 + n : U32)
8 case False{}: (55 + n : U32)