/* Check whether two ascii strings are equal, ignore the case. */
BOOLEAN NetStringEqualNoCase(IN UINT8 *Str1, IN UINT8 *Str2)
/* Check whether two ascii strings are equal, ignore the case. */
BOOLEAN NetStringEqualNoCase(IN UINT8 *Str1, IN UINT8 *Str2)
{
  UINT8  Ch1;
  UINT8  Ch2;
  ASSERT ((Str1 != NULL) && (Str2 != NULL));
  for ( ; (*Str1 != '\0') && (*Str2 != '\0'); Str1++, Str2++) {
    Ch1 = *Str1;
    Ch2 = *Str2;
    if (('A' <= Ch1) && (Ch1 <= 'Z')) {
      Ch1 += 'a' - 'A';
    }
    if (('A' <= Ch2) && (Ch2 <= 'Z')) {
      Ch2 += 'a' - 'A';
    }
    if (Ch1 != Ch2) {
      return FALSE;
    }
  }
  return (BOOLEAN)(*Str1 == *Str2);
}