protected function expectChar(string $string, int &$pos, string $char): void
    {
        if ($char !== $this->nextChar($string, $pos)) {
            throw TypeConversionException::parsingFailed($this, "'{$char}'", $string, $pos);
        }
        $pos++;
    }
protected function expectChar(string $string, int &$pos, string $char): void
    {
        if ($char !== $this->nextChar($string, $pos)) {
            throw TypeConversionException::parsingFailed($this, "'{$char}'", $string, $pos);
        }
        $pos++;
    }
protected function expectChar ( string $ string , int & $ pos , string $ char ) : void { if ( $ char !== $ this -> nextChar ( $ string , $ pos ) ) { throw TypeConversionException :: parsingFailed ( $ this , "'{$char}'" , $ string , $ pos ) ; } $ pos ++ ; }
Throws an Exception if next non-whitespace character in input is not the given char

@param string $string
@param int    $pos
@param string $char
@throws TypeConversionException
Throws an Exception if next non - whitespace character in input is not the given char