mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
bug 183156 : the first step : replace UCS2 in function names with UTF16
(r=peterv, sr=alecf)
This commit is contained in:
parent
e120bf384f
commit
ff38b26577
@ -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|.
|
||||
|
@ -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!
|
||||
|
@ -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|.
|
||||
|
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user