This commit is contained in:
sfraser%netscape.com 1999-02-11 06:22:03 +00:00
Родитель 0835d43b43
Коммит 53038aad55
4 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -1358,12 +1358,12 @@ nsString& nsString::Trim(const char* aTrimSet,
nsString& nsString::CompressWhitespace( PRBool aEliminateLeading,
PRBool aEliminateTrailing)
{
Trim(" \r\n\t",aEliminateLeading,aEliminateTrailing);
PRUnichar* from = mStr;
PRUnichar* end = mStr + mLength;
PRUnichar* to = from;
Trim(" \r\n\t",aEliminateLeading,aEliminateTrailing);
//this code converts /n, /t, /r into normal space ' ';
//it also eliminates runs of whitespace...
while (from < end) {

Просмотреть файл

@ -1358,12 +1358,12 @@ nsString& nsString::Trim(const char* aTrimSet,
nsString& nsString::CompressWhitespace( PRBool aEliminateLeading,
PRBool aEliminateTrailing)
{
Trim(" \r\n\t",aEliminateLeading,aEliminateTrailing);
PRUnichar* from = mStr;
PRUnichar* end = mStr + mLength;
PRUnichar* to = from;
Trim(" \r\n\t",aEliminateLeading,aEliminateTrailing);
//this code converts /n, /t, /r into normal space ' ';
//it also eliminates runs of whitespace...
while (from < end) {

Просмотреть файл

@ -1358,12 +1358,12 @@ nsString& nsString::Trim(const char* aTrimSet,
nsString& nsString::CompressWhitespace( PRBool aEliminateLeading,
PRBool aEliminateTrailing)
{
Trim(" \r\n\t",aEliminateLeading,aEliminateTrailing);
PRUnichar* from = mStr;
PRUnichar* end = mStr + mLength;
PRUnichar* to = from;
Trim(" \r\n\t",aEliminateLeading,aEliminateTrailing);
//this code converts /n, /t, /r into normal space ' ';
//it also eliminates runs of whitespace...
while (from < end) {

Просмотреть файл

@ -1358,12 +1358,12 @@ nsString& nsString::Trim(const char* aTrimSet,
nsString& nsString::CompressWhitespace( PRBool aEliminateLeading,
PRBool aEliminateTrailing)
{
Trim(" \r\n\t",aEliminateLeading,aEliminateTrailing);
PRUnichar* from = mStr;
PRUnichar* end = mStr + mLength;
PRUnichar* to = from;
Trim(" \r\n\t",aEliminateLeading,aEliminateTrailing);
//this code converts /n, /t, /r into normal space ' ';
//it also eliminates runs of whitespace...
while (from < end) {