def AaTerm.key_char
import bend-osdev-apparmor@0.1.0.0/token.bend as Tokenimport Base
373# a character of a condition's key: a letter, a digit, '_' or '.'
374def AaTerm.key_char(+c: U32) -> Bool:
375 Bool.or(Bool.and(U32.is_ge(c, 97), U32.is_le(c, 122)), Bool.or(Bool.and(U32.is_ge(c, 65), U32.is_le(c, 90)), Bool.or(Bool.and(U32.is_ge(c, 48), U32.is_le(c, 57)), Bool.or(U32.is_eq(c, 95), U32.is_eq(c, 46)))))