def nm.text.root

bend-osdev-acpi@0.1.1.0 · aml_name.bend:415

import bend-osdev-acpi@0.1.1.0/aml_name.bend as AmlName
import Base

415def nm.text.root(r: Bool, +s: String) -> AmlName:
416  match r:
417    case True{}:
418      AmlName{True{}, 0n, nm.text.split(String.drop(s, 1n))}
419    case False{}:
420      nm.text.ups(s, String.starts_with(s, "^"), 0n)

Uses (7)

Used by (1)