bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones

r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de
2006-02-03 14:18:39 +00:00
parent aec0aae014
commit 6322c04952
462 changed files with 1529 additions and 1542 deletions

View File

@@ -2251,7 +2251,7 @@ mozSqlResultStream::EnsureBuffer()
else {
PRInt32 type = cell->GetType();
if (type == mozISqlResult::TYPE_STRING)
mBuffer.Append(NS_ConvertUCS2toUTF8(cell->mString));
mBuffer.Append(NS_ConvertUTF16toUTF8(cell->mString));
else if (type == mozISqlResult::TYPE_INT)
mBuffer.AppendInt(cell->mInt);
else if (type == mozISqlResult::TYPE_FLOAT ||
@@ -2266,7 +2266,7 @@ mozSqlResultStream::EnsureBuffer()
type != mozISqlResult::TYPE_DATE ? kTimeFormatSeconds : kTimeFormatNone,
PRTime(cell->mDate),
value);
mBuffer.Append(NS_ConvertUCS2toUTF8(value));
mBuffer.Append(NS_ConvertUTF16toUTF8(value));
}
else if (type == mozISqlResult::TYPE_BOOL) {
if (cell->mBool)

View File

@@ -141,7 +141,7 @@ mozSqlService::Init()
nsCOMPtr<nsIRDFXMLSink> sink = do_QueryInterface(mInner);
if (sink) {
nsCOMPtr<nsIAtom> prefix = do_GetAtom("SQL");
sink->AddNameSpace(prefix, NS_ConvertASCIItoUCS2(SQL_NAMESPACE_URI));
sink->AddNameSpace(prefix, NS_ConvertASCIItoUTF16(SQL_NAMESPACE_URI));
}
return gRDFService->RegisterDataSource(this, PR_FALSE);