Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin

This commit is contained in:
roc+@cs.cmu.edu
2004-06-17 00:13:25 +00:00
parent c502fd1ddc
commit d9edea9d71
382 changed files with 1949 additions and 1971 deletions

View File

@@ -5792,13 +5792,13 @@ nsTextFrame::ToCString(nsString& aBuf, PRInt32* aTotalContentLength) const
while (fragOffset < n) {
PRUnichar ch = frag->CharAt(fragOffset++);
if (ch == '\r') {
aBuf.Append(NS_LITERAL_STRING("\\r"));
aBuf.AppendLiteral("\\r");
} else if (ch == '\n') {
aBuf.Append(NS_LITERAL_STRING("\\n"));
aBuf.AppendLiteral("\\n");
} else if (ch == '\t') {
aBuf.Append(NS_LITERAL_STRING("\\t"));
aBuf.AppendLiteral("\\t");
} else if ((ch < ' ') || (ch >= 127)) {
aBuf.Append(NS_LITERAL_STRING("\\0"));
aBuf.AppendLiteral("\\0");
aBuf.AppendInt((PRInt32)ch, 8);
} else {
aBuf.Append(ch);