Short answer, yes.

On Feb 10, 2013, at 9:14 AM, Glenn Adams <gl...@skynav.com> wrote:

> Because LChar is often (always?) UTF-8 encoded, the individual encoding units 
> of which are 0x00 through 0xFF.

Close.

LChar is always Latin-1 encoded. That’s what the "L" is for. That’s the same 
thing as the first 256 code points in Unicode.

If LChar could possibly be a signed byte, then we’d have to cast to an unsigned 
byte at every call site where we are storing an LChar in a UChar; very easy to 
get that wrong. Since LChar is an unsigned type we can simply do a normal 
assignment and we get correct behavior.

-- Darin
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to