public function testCodePointsAt(array
$expected, string
$string, int
$offset, int
$form = null
) { if (2 !==
grapheme_strlen('च्छे'
) && 'नमस्ते' ===
$string) { $this->
markTestSkipped('Skipping due to issue ICU-21661.'
);
} $instance =
static::
createFromString($string);
$instance =
$form ?
$instance->
normalize($form) :
$instance;
$this->
assertSame($expected,
$instance->
codePointsAt($offset));
} public static function provideCodePointsAt(): array
{ return [ [[], '', 0
],
[[], 'a', 1
],
[[0x53
], 'Späßchen', 0
],
[[0xE4
], 'Späßchen', 2
],
[[0xDF
], 'Späßchen', -5
],
[[0x260E
], '☢☎❄', 1
],
];