19 declare(strict_types=1);
24 use Symfony\Polyfill\Intl\Normalizer\Normalizer as PolyfillNormalizer;
25 use Normalizer as NativeNormalizer;
39 if ($this->form_c ===
null) {
40 $this->form_c = $this->
getNormalizer(NativeNormalizer::FORM_C);
51 if ($this->form_d ===
null) {
52 $this->form_d = $this->
getNormalizer(NativeNormalizer::FORM_D);
63 if ($this->form_kd ===
null) {
64 $this->form_kd = $this->
getNormalizer(NativeNormalizer::FORM_KD);
75 if ($this->form_kc ===
null) {
76 $this->form_kc = $this->
getNormalizer(NativeNormalizer::FORM_KC);
85 $normalizer = fn($from) => NativeNormalizer::normalize($from, $form);
87 $normalizer = fn($from) => PolyfillNormalizer::normalize($from, $form);
90 return new \ILIAS\Refinery\Custom\Transformation($normalizer);
95 return class_exists(NativeNormalizer::class) && method_exists(NativeNormalizer::class,
'normalize');
formC()
Normalization Form C (NFC), also known as Canonical Decomposition followed by Canonical Composition...
formKC()
Normalization Form KD (NFKD), also known as Compatibility Decomposition.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
formKD()
Normalization Form KC (NFKC), also known as Compatibility Decomposition followed by Canonical Composi...
formD()
Normalization Form D (NFD), also known as Canonical Decomposition.