Add the return value to ParseRFC822Addresses. the return value is the number of addresses....

This commit is contained in:
mscott%netscape.com 1999-02-08 00:16:21 +00:00
Родитель 5fbb6f8241
Коммит 0eb1f0a7b1
3 изменённых файлов: 10 добавлений и 8 удалений

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

@ -49,8 +49,8 @@
Either of the provided pointers may be NULL if the caller is not interested
in those components.
*/
NS_IMETHOD ParseRFC822Addresses (const char *line, char **names, char **addresses) = 0;
NS_IMETHOD ParseRFC822Addresses_Intl (PRInt16 csid, const char *line, char **names, char **addresses) = 0;
NS_IMETHOD ParseRFC822Addresses (const char *line, char **names, char **addresses, PRUint32& numAddresses) = 0;
NS_IMETHOD ParseRFC822Addresses_Intl (PRInt16 csid, const char *line, char **names, char **addresses, PRUint32& numAddresses) = 0;
/* Given a string which contains a list of RFC822 addresses, returns a
comma-seperated list of just the `mailbox' portions.

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

@ -105,14 +105,16 @@ NS_IMPL_ADDREF(nsMsgRFC822Parser)
NS_IMPL_RELEASE(nsMsgRFC822Parser)
NS_IMPL_QUERY_INTERFACE(nsMsgRFC822Parser, kIMsgRFC822Parser); /* we need to pass in the interface ID of this interface */
nsresult nsMsgRFC822Parser::ParseRFC822Addresses (const char *line, char **names, char **addresses)
nsresult nsMsgRFC822Parser::ParseRFC822Addresses (const char *line, char **names, char **addresses, PRUint32& numAddresses)
{
return msg_parse_rfc822_addresses(CS_APP_DEFAULT, line, names, addresses);
numAddresses = msg_parse_rfc822_addresses(CS_APP_DEFAULT, line, names, addresses);
return NS_OK;
}
nsresult nsMsgRFC822Parser::ParseRFC822Addresses_Intl (PRInt16 csid, const char *line, char **names, char **addresses)
nsresult nsMsgRFC822Parser::ParseRFC822Addresses_Intl (PRInt16 csid, const char *line, char **names, char **addresses, PRUint32& numAddresses)
{
return msg_parse_rfc822_addresses(csid, line, names, addresses);
numAddresses = msg_parse_rfc822_addresses(csid, line, names, addresses);
return NS_OK;
}
nsresult nsMsgRFC822Parser::ExtractRFC822AddressMailboxes (const char *line, char ** mailboxes)

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

@ -52,8 +52,8 @@
Either of the provided pointers may be NULL if the caller is not interested
in those components.
*/
NS_IMETHOD ParseRFC822Addresses (const char *line, char **names, char **addresses);
NS_IMETHOD ParseRFC822Addresses_Intl (PRInt16 csid, const char *line, char **names, char **addresses);
NS_IMETHOD ParseRFC822Addresses (const char *line, char **names, char **addresses, PRUint32& numAddresses);
NS_IMETHOD ParseRFC822Addresses_Intl (PRInt16 csid, const char *line, char **names, char **addresses, PRUint32& numAddresses);
/* Given a string which contains a list of RFC822 addresses, returns a
comma-seperated list of just the `mailbox' portions.