I tried to investigate through the source code pointed out by you, but could
not quite figure out where the conversion takes place.

- Jeet

Boris Zbarsky wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/NS_LossyConvertUCS2toASCII%28%29-tf2142223.html#a5915055
Sent from the Mozilla - Layout forum at Nabble.com.

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

Reply via email to