This commit is contained in:
peterl%netscape.com 1998-08-07 02:11:13 +00:00
Родитель 5134558022
Коммит a9f7a46342
4 изменённых файлов: 28 добавлений и 8 удалений

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

@ -1118,8 +1118,13 @@ nsString& nsString::Trim(const char* aTrimSet,
//now rewrite your string without unwanted
//leading or trailing characters.
while (from <= end) {
*to++ = *from++;
if (from != to) {
while (from <= end) {
*to++ = *from++;
}
}
else {
to = ++end;
}
*to = '\0';

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

@ -1118,8 +1118,13 @@ nsString& nsString::Trim(const char* aTrimSet,
//now rewrite your string without unwanted
//leading or trailing characters.
while (from <= end) {
*to++ = *from++;
if (from != to) {
while (from <= end) {
*to++ = *from++;
}
}
else {
to = ++end;
}
*to = '\0';

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

@ -1118,8 +1118,13 @@ nsString& nsString::Trim(const char* aTrimSet,
//now rewrite your string without unwanted
//leading or trailing characters.
while (from <= end) {
*to++ = *from++;
if (from != to) {
while (from <= end) {
*to++ = *from++;
}
}
else {
to = ++end;
}
*to = '\0';

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

@ -1118,8 +1118,13 @@ nsString& nsString::Trim(const char* aTrimSet,
//now rewrite your string without unwanted
//leading or trailing characters.
while (from <= end) {
*to++ = *from++;
if (from != to) {
while (from <= end) {
*to++ = *from++;
}
}
else {
to = ++end;
}
*to = '\0';