Kulkarni Jeet wrote:
I am trying to understand what the following function does in the mozilla
code.
NS_LossyConvertUCS2toASCII().

What it says: converts an nsAString to an nsACString by assuming that all the 16-bit units are ASCII and just dropping the high byte on them all.

Also if anyone could let me know the source code of this function, that
would be great?

There's a bunch of indirection, then you get to http://lxr.mozilla.org/seamonkey/source/xpcom/string/src/nsReadableUtils.cpp#114

-Boris

_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to