/* Convert the ascii fat name to the unicode string and strip trailing spaces, and if necessary, convert the unicode string to lower case. */
VOID FatNameToStr(IN CHAR8 *FatName, IN UINTN Len, IN UINTN LowerCase, OUT CHAR16 *Str)
/* Convert the ascii fat name to the unicode string and strip trailing spaces, and if necessary, convert the unicode string to lower case. */
VOID FatNameToStr(IN CHAR8 *FatName, IN UINTN Len, IN UINTN LowerCase, OUT CHAR16 *Str)
{
  Len = FatTrimAsciiTrailingBlanks (FatName, Len);
  FatFatToStr (Len, FatName, Str);
  if (LowerCase != 0) {
    FatStrLwr (Str);
  }
}