def AmlName.of_text

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

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

422# a name from its text: "\_SB.PCI0" (in Bend source), "^^_STA", "LNKA";
423# segments are separated by '.', each padded to four characters with '_'
424def AmlName.of_text(+s: String) -> AmlName:
425  nm.text.root(String.starts_with(s, "\\"), s)

Uses (4)

Used by (8)