/* This function only works for AML NameStrings/pathnames. AML NameStrings/pathnames must be 4 chars long. */
BOOLEAN EFIAPI AmlIsNameSeg(IN CONST CHAR8 *AmlBuffer)
/* This function only works for AML NameStrings/pathnames. AML NameStrings/pathnames must be 4 chars long. */
BOOLEAN EFIAPI AmlIsNameSeg(IN CONST CHAR8 *AmlBuffer)
{
  UINT32  Index;
  if (AmlBuffer == NULL) {
    return FALSE;
  }
  if (!AmlIsLeadNameChar (AmlBuffer[0])) {
    return FALSE;
  }
  for (Index = 1; Index < AML_NAME_SEG_SIZE; Index++) {
    if (!AmlIsNameChar (AmlBuffer[Index])) {
      return FALSE;
    }
  }
  return TRUE;
}