$this->length =
count($this->source
);
//Convert character codes to UTF8 characters in whitespaces and line
//terminators
$this->lineTerminators =
array_merge( self::
$lineTerminatorsSequences, self::
$lineTerminatorsChars );
foreach (array
("whitespaces", "lineTerminators"
) as $key) { foreach ($this->
$key as $i =>
$char) { if (is_int($char)) { $this->
{$key}[$i] = Utils::
unicodeToUtf8($char);
} } } //Remove exponentiation operator if the feature
//is not enabled
if (!
$this->features->exponentiationOperator
) { Utils::
removeArrayValue($this->punctuators, "**"
);
Utils::
removeArrayValue($this->punctuators, "**="
);
}