7712104983
* Perform the handling of partial code points in the `u8u16` and `u16u8` conversion functions without preparation in a preliminary buffer. * Simplify partials handling in `u8u16` (perf). * Declare the parameters for the incoming data as referenced string_views. * Simplify templatization. * Simplify exception handling. We complete the partial codepoint in the 4-bytes long cache and convert it separately. This makes the cache ready for capturing the next partials before the remaining string is converted. This way, we neither need to copy the whole string into a buffer which contains complete codepoints, nor do we need to allocate an unnecessarily long buffer which exists for the life time of the state class instance. Finding and capturing of partials is performed in a more linear code using the evaluation of the length of a code point. The parameters for the incoming data are now explicitely declared to be referenced string_views. `CATCH_RETURN` is used to improve the readability of the code. ## Validation Steps Performed * manually tested * unit tests passed Closes #10946 Co-authored-by: Leonard Hecker <lhecker@microsoft.com>
80 lines
638 B
Plaintext
80 lines
638 B
Plaintext
Anup
|
|
austdi
|
|
Ballmer
|
|
bhoj
|
|
Bhojwani
|
|
carlos
|
|
dhowett
|
|
Diviness
|
|
dsafa
|
|
duhowett
|
|
ekg
|
|
ethanschoonover
|
|
Firefox
|
|
Gatta
|
|
glsl
|
|
Gravell
|
|
Grie
|
|
Griese
|
|
Hernan
|
|
Howett
|
|
Illhardt
|
|
iquilezles
|
|
jantari
|
|
jerrysh
|
|
Kaiyu
|
|
kimwalisch
|
|
KMehrain
|
|
KODELIFE
|
|
Kodelife
|
|
Kourosh
|
|
kowalczyk
|
|
leonmsft
|
|
Lepilleur
|
|
lhecker
|
|
lukesampson
|
|
Manandhar
|
|
mbadolato
|
|
Mehrain
|
|
menger
|
|
mgravell
|
|
michaelniksa
|
|
michkap
|
|
migrie
|
|
mikegr
|
|
mikemaccana
|
|
miloush
|
|
miniksa
|
|
niksa
|
|
nvaccess
|
|
nvda
|
|
oising
|
|
oldnewthing
|
|
opengl
|
|
osgwiki
|
|
pabhojwa
|
|
paulcam
|
|
pauldotknopf
|
|
PGP
|
|
Pham
|
|
Rincewind
|
|
rprichard
|
|
Schoonover
|
|
shadertoy
|
|
Somuah
|
|
sonph
|
|
sonpham
|
|
stakx
|
|
thereses
|
|
Walisch
|
|
Wellons
|
|
Wirt
|
|
Wojciech
|
|
zadjii
|
|
Zamor
|
|
Zamora
|
|
zamora
|
|
Zoey
|
|
zorio
|
|
Zverovich
|