/* Check the string is lower case or upper case and it is used by fatname to dir entry count */
STATIC UINT8 FatCheckNameCase(IN CHAR16 *Str, IN UINT8 InCaseFlag)
/* Check the string is lower case or upper case and it is used by fatname to dir entry count */
STATIC UINT8 FatCheckNameCase(IN CHAR16 *Str, IN UINT8 InCaseFlag)
{
  CHAR16  Buffer[FAT_MAIN_NAME_LEN + 1 + FAT_EXTEND_NAME_LEN + 1];
  UINT8   OutCaseFlag;
  OutCaseFlag = FAT_CASE_MIXED;
  StrCpyS (Buffer, ARRAY_SIZE (Buffer), Str);
  FatStrLwr (Buffer);
  if (StrCmp (Str, Buffer) == 0) {
    OutCaseFlag = InCaseFlag;
  }
  StrCpyS (Buffer, ARRAY_SIZE (Buffer), Str);
  FatStrUpr (Buffer);
  if (StrCmp (Str, Buffer) == 0) {
    OutCaseFlag = 0;
  }
  return OutCaseFlag;
}