42 $outfile = $this->
getOption(
'outfile',
'upperchar.json' );
44 $titlecase = $this->
getOption(
'titlecase' );
45 for ( $i = 0; $i <= 0x10ffff; $i++ ) {
47 if ( $i >= 0xd800 && $i <= 0xdfff ) {
50 $char = UtfNormal\Utils::codepointToUtf8( $i );
52 $upper = mb_convert_case( $char, MB_CASE_TITLE );
54 $upper = mb_strtoupper( $char );
56 $toUpperTable[$char] = $upper;
58 file_put_contents( $outfile, json_encode( $toUpperTable ) );