public setWhitespace ( string | array $ws ) | ||
$ws | string | array |
function setWhitespace($ws)
{
if (is_array($ws)) {
$this->whitespace = array_fill_keys(array_values($ws), true);
$this->buildCharMap();
} else {
$this->setWhiteSpace(str_split($ws));
}
}