def AmlName.of_text
import bend-osdev-acpi@0.1.1.0/aml_name.bend as AmlNameimport 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)