]> granicus.if.org Git - php/commit
Reduce number of encoding conversions in case conversion
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 20 Jul 2017 13:33:24 +0000 (15:33 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 20 Jul 2017 13:33:24 +0000 (15:33 +0200)
commitc098304e172cdabf8c0c685e5e843fff772615ce
treedb6b3bd5153f267281ae2b4dddeefce23fec05f2
parent17da862b51caf0875d47e87040336cf3fcd429d1
Reduce number of encoding conversions in case conversion

Don't indirect through UCS4BE, instead directly work on wchars
using a custom filter.

This replaces the pipeline
  utf8 -> wchar -> ucs4be -> wchar -case-> wchar -> ucs4be -> wchar -> utf8
with
  utf8 -> wchar -case-> -> wchar -> utf8
ext/mbstring/php_unicode.c