This commit is contained in:
peterl%netscape.com 1998-08-07 02:11:13 +00:00
Родитель 1aa3c273b2
Коммит 59e5ef7b52
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';