DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc

git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%netscape.com
2000-08-23 17:27:06 +00:00
parent c53de61c00
commit 7e0575bfee
632 changed files with 11678 additions and 10726 deletions

View File

@@ -132,14 +132,16 @@ void nsFormControlHelper::PlatformToDOMLineBreaks(nsString &aString)
aString.ReplaceSubstring(NS_ConvertASCIItoUCS2("\r"), NS_ConvertASCIItoUCS2("\n"));
}
PRBool nsFormControlHelper::GetBool(const nsString& aValue)
PRBool nsFormControlHelper::GetBool(const nsAReadableString& aValue)
{
return aValue.EqualsWithConversion(NS_STRING_TRUE);
return aValue.Equals(NS_STRING_TRUE);
}
void nsFormControlHelper::GetBoolString(const PRBool aValue, nsString& aResult)
void nsFormControlHelper::GetBoolString(const PRBool aValue,
nsAWritableString& aResult)
{
aResult.AssignWithConversion( aValue ? NS_STRING_TRUE : NS_STRING_FALSE );
aResult.Assign( aValue ? NS_STRING_TRUE :
NS_STRING_FALSE );
}