/* Strip the trailing slash from the parser's output buffer, unless the trailing slash stands for the root directory. */
STATIC VOID ParserStripSlash(IN CHAR8 *Buffer, IN OUT UINTN *Position)
/* Strip the trailing slash from the parser's output buffer, unless the trailing slash stands for the root directory. */
STATIC VOID ParserStripSlash(IN CHAR8 *Buffer, IN OUT UINTN *Position)
{
  ASSERT (*Position >= 1);
  ASSERT (Buffer[*Position - 1] == '/');
  if (*Position == 1) {
    return;
  }
  (*Position)--;
}