IntlChar::enumCharNames
Enumerate all assigned Unicode characters within a range
&reftitle.description;
public static voidIntlChar::enumCharNames
mixedstart
mixedlimit
callablecallback
intnameChoiceIntlChar::UNICODE_CHAR_NAME
Enumerate all assigned Unicode characters between the start and limit code points (start inclusive, limit exclusive)
and call a function for each, passing the code point value and the character name.
For Unicode 1.0 names, only those are enumerated that differ from the modern names.
&reftitle.parameters;
start
The first code point in the enumeration range.
limit
One more than the last code point in the enumeration range (the first one after the range).
callback
The function that is to be called for each character name. The following three arguments will be passed into it:
int $codepoint - The numeric code point value
int $nameChoice - The same value as the nameChoice parameter below
string $name - The name of the character
nameChoice
Selector for which kind of names to enumerate. Can be any of these constants:
IntlChar::UNICODE_CHAR_NAME (default)
IntlChar::UNICODE_10_CHAR_NAME
IntlChar::EXTENDED_CHAR_NAME
IntlChar::CHAR_NAME_ALIAS
IntlChar::CHAR_NAME_CHOICE_COUNT
&reftitle.returnvalues;
&return.void;
&reftitle.examples;
Enumerating over a sample range of code points
]]>
&example.outputs;
&reftitle.seealso;
IntlChar::charName
IntlChar::charFromName