bug 127091 - big string cleanup, removing old APIs
- removing Assign/AppendWithConversion for single-characters - removing unused StripChars - removing ReplaceChar[s] for non-matching chars - removing CompressSet - removing nsCString::Find/FindCharInSet/RFind for unichar strings - removing lots of EqualsWithConversion r=dp, sr=jag a=asa git-svn-id: svn://10.0.0.236/trunk@115750 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -60,7 +60,7 @@ Compare(nsString& str, nsString& aFileName)
|
||||
int different = 0;
|
||||
while ((c = getc(file)) != EOF)
|
||||
{
|
||||
inString.AppendWithConversion((char)c);
|
||||
inString.Append(PRUnichar(c));
|
||||
// CVS isn't doing newline comparisons on these files for some reason.
|
||||
// So compensate for possible newline problems in the CVS file:
|
||||
if (c == '\n' && str[index] == '\r')
|
||||
@@ -301,7 +301,7 @@ Usage: %s [-i intype] [-o outtype] [-f flags] [-w wrapcol] [-c comparison_file]
|
||||
nsString inString;
|
||||
int c;
|
||||
while ((c = getc(file)) != EOF)
|
||||
inString.AppendWithConversion((char)c);
|
||||
inString.Append(PRUnichar(c));
|
||||
|
||||
if (file != stdin)
|
||||
fclose(file);
|
||||
|
||||
Reference in New Issue
Block a user