/** * @param \DOMElement $element * @param Codepoint $codepoint * @return Character */ public function parseElement(\DOMElement $element, Codepoint $codepoint) { $general = $this->generalParser->parseElement($element, $codepoint); $case = $this->letterCaseParser->parseElement($element, $codepoint); $normalization = $this->normalizationParser->parseElement($element, $codepoint); $numericity = $this->numericityParser->parseElement($element, $codepoint); $bidirectionality = $this->bidirectionalityParser->parseElement($element, $codepoint); $shaping = $this->shapingParser->parseElement($element, $codepoint); $properties = new Properties($general, $case, $numericity, $normalization, $bidirectionality, $shaping); return new Character($codepoint, $properties); }
/** * @param \DOMElement $element * @param Codepoint $codepoint * @return Surrogate */ public function parseElement(\DOMElement $element, Codepoint $codepoint) { $general = $this->generalParser->parseElement($element, $codepoint); return new Surrogate($codepoint, $general); }
/** * @param \DOMElement $element * @param Codepoint $codepoint * @return NonCharacter */ public function parseElement(\DOMElement $element, Codepoint $codepoint) { $general = $this->generalParser->parseElement($element, $codepoint); return new NonCharacter($codepoint, $general); }