/* The function relies on the restriction that a  */
STATIC BOOLEAN SubstringEq(IN SUBSTRING Substring, IN CONST CHAR8 *String)
/* The function relies on the restriction that a  */
STATIC BOOLEAN SubstringEq(IN SUBSTRING Substring, IN CONST CHAR8 *String)
{
  UINTN        Pos;
  CONST CHAR8  *Chr;
  Pos = 0;
  Chr = String;
  while (Pos < Substring.Len && Substring.Ptr[Pos] == *Chr) {
    ++Pos;
    ++Chr;
  }
  return (BOOLEAN)(Pos == Substring.Len && *Chr == '\0');
}