removed calls to deprecated string API's

git-svn-id: svn://10.0.0.236/trunk@64215 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com 2000-03-27 06:48:32 +00:00
parent a294cc1e69
commit 3e33e68483
2 changed files with 9 additions and 9 deletions

View File

@ -1053,7 +1053,7 @@ NS_IMETHODIMP nsMsgFolder::EmptyTrash(nsIMsgWindow *msgWindow)
NS_IMETHODIMP nsMsgFolder::Rename(const PRUnichar *name)
{
nsresult status = NS_OK;
nsAutoString2 unicharString(name);
nsAutoString unicharString(name);
status = SetName((PRUnichar *) unicharString.GetUnicode());
//After doing a SetName we need to make sure that broadcasting this message causes a
//new sort to happen.

View File

@ -138,7 +138,7 @@ nsMsgKeySet::nsMsgKeySet(const char* numbers /* , MSG_NewsHost* host */)
return;
}
while (nsString::IsSpace (*numbers)) numbers++;
while (nsCRT::IsAsciiSpace (*numbers)) numbers++;
while (*numbers) {
PRInt32 from = 0;
PRInt32 to;
@ -156,14 +156,14 @@ nsMsgKeySet::nsMsgKeySet(const char* numbers /* , MSG_NewsHost* host */)
end = head + m_data_size;
}
while (nsString::IsSpace(*numbers)) numbers++;
if (*numbers && !nsString::IsDigit(*numbers)) {
while (nsCRT::IsAsciiSpace(*numbers)) numbers++;
if (*numbers && !nsCRT::IsAsciiDigit(*numbers)) {
break; /* illegal character */
}
while (nsString::IsDigit (*numbers)) {
while (nsCRT::IsAsciiDigit (*numbers)) {
from = (from * 10) + (*numbers++ - '0');
}
while (nsString::IsSpace (*numbers)) numbers++;
while (nsCRT::IsAsciiSpace (*numbers)) numbers++;
if (*numbers != '-') {
to = from;
} else {
@ -171,7 +171,7 @@ nsMsgKeySet::nsMsgKeySet(const char* numbers /* , MSG_NewsHost* host */)
numbers++;
while (*numbers >= '0' && *numbers <= '9')
to = (to * 10) + (*numbers++ - '0');
while (nsString::IsSpace (*numbers)) numbers++;
while (nsCRT::IsAsciiSpace (*numbers)) numbers++;
}
if (to < from) to = from; /* illegal */
@ -195,7 +195,7 @@ nsMsgKeySet::nsMsgKeySet(const char* numbers /* , MSG_NewsHost* host */)
tail++;
}
while (*numbers == ',' || nsString::IsSpace (*numbers)) {
while (*numbers == ',' || nsCRT::IsAsciiSpace (*numbers)) {
numbers++;
}
}
@ -1422,7 +1422,7 @@ nsMsgKeySet::test_member(PRBool with_cache)
// while (*sep != 0 && *sep != ':' && *sep != '!')
// sep++;
// if (*sep) sep++;
// while (nsString::IsSpace (*sep)) sep++;
// while (nsCRT::IsAsciiSpace (*sep)) sep++;
// fwrite (buf, 1, sep - buf, stdout);
// if (*sep)
// {