function parseToLogicalChars() { $this->code_points = parseToCodePoints($this->getWord()); $this->logical_chars = parseToLogicalCharacters($this->getCodePoints()); return $this->getLogicalChars(); }
function parseToLogicalCharacters($word) { if (is_array($word)) { for ($i = 0; $i < count($word); $i++) { $word[$i] = parseToCharacter($word[$i]); } return $word; } else { return parseToLogicalCharacters(parseToCodePoints($word)); } }