Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@150665 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -48,6 +48,9 @@ NS_COM size_t Distance( const nsReadingIterator<char>&, const nsReadingIterator<
|
||||
NS_COM void LossyCopyUTF16toASCII( const nsAString& aSource, nsACString& aDest );
|
||||
NS_COM void CopyASCIItoUTF16( const nsACString& aSource, nsAString& aDest );
|
||||
|
||||
NS_COM void LossyCopyUTF16toASCII( const PRUnichar* aSource, nsACString& aDest );
|
||||
NS_COM void CopyASCIItoUTF16( const char* aSource, nsAString& aDest );
|
||||
|
||||
NS_COM void CopyUTF16toUTF8( const nsAString& aSource, nsACString& aDest );
|
||||
NS_COM void CopyUTF8toUTF16( const nsACString& aSource, nsAString& aDest );
|
||||
|
||||
|
||||
@@ -162,6 +162,26 @@ CopyASCIItoUTF16( const nsACString& aSource, nsAString& aDest )
|
||||
AppendASCIItoUTF16(aSource, aDest);
|
||||
}
|
||||
|
||||
NS_COM
|
||||
void
|
||||
LossyCopyUTF16toASCII( const PRUnichar* aSource, nsACString& aDest )
|
||||
{
|
||||
if (aSource) {
|
||||
aDest.Truncate();
|
||||
LossyAppendUTF16toASCII(nsDependentString(aSource), aDest);
|
||||
}
|
||||
}
|
||||
|
||||
NS_COM
|
||||
void
|
||||
CopyASCIItoUTF16( const char* aSource, nsAString& aDest )
|
||||
{
|
||||
if (aSource) {
|
||||
aDest.Truncate();
|
||||
AppendASCIItoUTF16(nsDependentCString(aSource), aDest);
|
||||
}
|
||||
}
|
||||
|
||||
NS_COM
|
||||
void
|
||||
CopyUTF16toUTF8( const nsAString& aSource, nsACString& aDest )
|
||||
|
||||
Reference in New Issue
Block a user