Unicode representation conversions (and range queries like "is this in
the ASCII range?") for data we already have inside the engine (i.e.
we're not doing IO with an external source/destination) for the cases
where the conversion doesn't need to be able to resize a target XPCOM
string have moved. They are no longer in nsReadableUtils.h. They are
now in mozilla/TextUtils.h, mozilla/Utf8.h, and mozilla/Latin1.h. As a
result, the functions have moved to the mozilla:: namespace and now
follow MfbtCase (IsAscii and IsUtf8 instead of the old IsASCII and
IsUTF8).

Support for external encodings and streaming continues to be in
mozilla/Encoding.h. Conversions where the target is an XPCOM string
remain in nsReadableUtils.h.

-- 
Henri Sivonen
hsivo...@mozilla.com
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to