At the current time, there is four function can not be accessed outside but
required.
LossyCopyUTF16toASCII(const char16_t* aSource, nsACString& aDest)
LossyAppendUTF16toASCII(nsDependentString(aSource), aDest);
CopyASCIItoUTF16(const char* aSource, nsAString& aDest)
AppendASCIItoUTF16(nsDependentCString(aSource), aDest);
void
LossyCopyUTF16toASCII(const char16_t* aSource, nsACString& aDest)
{
aDest.Truncate();
if (aSource) {
LossyAppendUTF16toASCII(nsDependentString(aSource), aDest);
}
}
void
CopyASCIItoUTF16(const char* aSource, nsAString& aDest)
{
aDest.Truncate();
if (aSource) {
AppendASCIItoUTF16(nsDependentCString(aSource), aDest);
}
}
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform