protected function map($codepoints)
{
if ($this->removeZWS) {
$codepoints = array_filter($codepoints, 'Znerol\\Component\\Stringprep\\RFC3454\\B_1::filter');
}
switch ($this->casefold) {
case self::CASEFOLD_B_2:
$codepoints = static::applyMappingTable($codepoints, 'Znerol\\Component\\Stringprep\\RFC3454\\B_2::map');
break;
case self::CASEFOLD_B_3:
$codepoints = static::applyMappingTable($codepoints, 'Znerol\\Component\\Stringprep\\RFC3454\\B_3::map');
break;
}
return $codepoints;
}