bug 183156 : the first step : replace UCS2 in function names with UTF16

(r=peterv, sr=alecf)
This commit is contained in:
jshin%mailaps.org 2003-06-05 11:44:06 +00:00
parent e120bf384f
commit ff38b26577
4 changed files with 20 additions and 20 deletions

View File

@ -47,11 +47,11 @@ NS_COM size_t Distance( const nsReadingIterator<char>&, const nsReadingIterator<
NS_COM void CopyUCS2toASCII( const nsAString& aSource, nsACString& aDest );
NS_COM void CopyASCIItoUCS2( const nsACString& aSource, nsAString& aDest );
NS_COM void CopyUCS2toUTF8( const nsAString& aSource, nsACString& aDest );
NS_COM void CopyUTF8toUCS2( const nsACString& aSource, nsAString& aDest );
NS_COM void CopyUTF16toUTF8( const nsAString& aSource, nsACString& aDest );
NS_COM void CopyUTF8toUTF16( const nsACString& aSource, nsAString& aDest );
NS_COM void AppendUCS2toUTF8( const nsAString& aSource, nsACString& aDest );
NS_COM void AppendUTF8toUCS2( const nsACString& aSource, nsAString& aDest );
NS_COM void AppendUTF16toUTF8( const nsAString& aSource, nsACString& aDest );
NS_COM void AppendUTF8toUTF16( const nsACString& aSource, nsAString& aDest );
/**
* Returns a new |char| buffer containing a zero-terminated copy of |aSource|.

View File

@ -178,23 +178,23 @@ CopyASCIItoUCS2( const nsACString& aSource, nsAString& aDest )
NS_COM
void
CopyUCS2toUTF8( const nsAString& aSource, nsACString& aDest )
CopyUTF16toUTF8( const nsAString& aSource, nsACString& aDest )
{
aDest.Truncate();
AppendUCS2toUTF8(aSource, aDest);
AppendUTF16toUTF8(aSource, aDest);
}
NS_COM
void
CopyUTF8toUCS2( const nsACString& aSource, nsAString& aDest )
CopyUTF8toUTF16( const nsACString& aSource, nsAString& aDest )
{
aDest.Truncate();
AppendUTF8toUCS2(aSource, aDest);
AppendUTF8toUTF16(aSource, aDest);
}
NS_COM
void
AppendUCS2toUTF8( const nsAString& aSource, nsACString& aDest )
AppendUTF16toUTF8( const nsAString& aSource, nsACString& aDest )
{
// This isn't the fastest possible implementation of this method,
// but it works, and that's better than nothing!
@ -204,7 +204,7 @@ AppendUCS2toUTF8( const nsAString& aSource, nsACString& aDest )
NS_COM
void
AppendUTF8toUCS2( const nsACString& aSource, nsAString& aDest )
AppendUTF8toUTF16( const nsACString& aSource, nsAString& aDest )
{
// This isn't the fastest possible implementation of this method,
// but it works, and that's better than nothing!

View File

@ -47,11 +47,11 @@ NS_COM size_t Distance( const nsReadingIterator<char>&, const nsReadingIterator<
NS_COM void CopyUCS2toASCII( const nsAString& aSource, nsACString& aDest );
NS_COM void CopyASCIItoUCS2( const nsACString& aSource, nsAString& aDest );
NS_COM void CopyUCS2toUTF8( const nsAString& aSource, nsACString& aDest );
NS_COM void CopyUTF8toUCS2( const nsACString& aSource, nsAString& aDest );
NS_COM void CopyUTF16toUTF8( const nsAString& aSource, nsACString& aDest );
NS_COM void CopyUTF8toUTF16( const nsACString& aSource, nsAString& aDest );
NS_COM void AppendUCS2toUTF8( const nsAString& aSource, nsACString& aDest );
NS_COM void AppendUTF8toUCS2( const nsACString& aSource, nsAString& aDest );
NS_COM void AppendUTF16toUTF8( const nsAString& aSource, nsACString& aDest );
NS_COM void AppendUTF8toUTF16( const nsACString& aSource, nsAString& aDest );
/**
* Returns a new |char| buffer containing a zero-terminated copy of |aSource|.

View File

@ -178,23 +178,23 @@ CopyASCIItoUCS2( const nsACString& aSource, nsAString& aDest )
NS_COM
void
CopyUCS2toUTF8( const nsAString& aSource, nsACString& aDest )
CopyUTF16toUTF8( const nsAString& aSource, nsACString& aDest )
{
aDest.Truncate();
AppendUCS2toUTF8(aSource, aDest);
AppendUTF16toUTF8(aSource, aDest);
}
NS_COM
void
CopyUTF8toUCS2( const nsACString& aSource, nsAString& aDest )
CopyUTF8toUTF16( const nsACString& aSource, nsAString& aDest )
{
aDest.Truncate();
AppendUTF8toUCS2(aSource, aDest);
AppendUTF8toUTF16(aSource, aDest);
}
NS_COM
void
AppendUCS2toUTF8( const nsAString& aSource, nsACString& aDest )
AppendUTF16toUTF8( const nsAString& aSource, nsACString& aDest )
{
// This isn't the fastest possible implementation of this method,
// but it works, and that's better than nothing!
@ -204,7 +204,7 @@ AppendUCS2toUTF8( const nsAString& aSource, nsACString& aDest )
NS_COM
void
AppendUTF8toUCS2( const nsACString& aSource, nsAString& aDest )
AppendUTF8toUTF16( const nsACString& aSource, nsAString& aDest )
{
// This isn't the fastest possible implementation of this method,
// but it works, and that's better than nothing!