Closed
Bug 46165
Opened 25 years ago
Closed 25 years ago
Need converter functions that works on nsAReadableString in Unicode converters
Categories
(Core :: Internationalization, enhancement, P3)
Core
Internationalization
Tracking
()
VERIFIED
FIXED
People
(Reporter: bratell, Assigned: scc)
References
Details
When trying to switch to nsAReadableString in bug 44074 I got stuck on the
unicode converter. It works on raw data pointers which are not compatible with
the basic string classes.
I need new methods in the nsIUnicodeConverter interface:
Convert(nsAReadableString& src, nsCString& destination);
and
Finish(nsCString& destination);
Is that possible?
Comment 2•25 years ago
|
||
I am not sure this is a reasonable request. We need a story to
make sure we can convert the data in nsAReadableString by passing to unicode
converter, but that does not mean we need to add additional method.
reassign to scc. Scc- please advice what we should do? Is there a way that we
can get PRUnichar* from nsAReadableString ?
Assignee: cata → scc
Assignee | ||
Comment 3•25 years ago
|
||
You will find what you need in
<http://lxr.mozilla.org/seamonkey/source/xpcom/ds/nsReadableUtils.h>
...currently around line 33 or 34. These new converter functions emulate the bad
old behavior we have always had with automatic encoding conversions, but they
work on any kind of readable and into any kind of writable.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•