libtld/tld_emails.cpp
tld_result tld_email_list::parse(std::string const & emails, int flags)
{
    f_input = emails;
    f_flags = flags;
    f_result = TLD_RESULT_SUCCESS;
    f_last_group.clear();
    f_pos = 0; // always rewind too
    f_email_list.clear();

    parse_all_emails();
    if(f_result != TLD_RESULT_SUCCESS)
    {
        f_email_list.clear();
    }

    return f_result;
}
/** \brief Parse a new list of emails.
 *
 * This function parses the list of emails as specified by \p emails.
 * The result is TLD_RESULT_SUCCESS if all the email addresses were
 * valid. Any other result means that the resulting list of email
 * addresses will be completely empty.
 *
 * Note that at this time it is not possible to only extra the list
 * of valid emails from a list of valid and invalid emails.
 *
 * \param[in] emails  A list of email address to be parsed.
 * \param[in] flags  A set of flags to define what should be checked
 *                   and what should be ignored. No flags are defined
 *                   yet.
 *
 * \return TLD_RESULT_SUCCESS when no errors were detected, TLD_RESULT_INVALID
 *         or some other value if any error occured.
 */
\brief Parse a new list of emails.
This function parses the list of emails as specified by \p emails.
The result is TLD_RESULT_SUCCESS if all the email addresses were
valid. Any other result means that the resulting list of email
addresses will be completely empty.

Note that at this time it is not possible to only extra the list
of valid emails from a list of valid and invalid emails.

\param[in] emails  A list of email address to be parsed.
\param[in] flags  A set of flags to define what should be checked
and what should be ignored. No flags are defined
yet.

\return TLD_RESULT_SUCCESS when no errors were detected, TLD_RESULT_INVALID
or some other value if any error occured.
\ brief Parse a new list of emails . This function parses the list of emails as specified by \ p emails . The result is TLD_RESULT_SUCCESS if all the email addresses were valid . Any other result means that the resulting list of email addresses will be completely empty . Note that at this time it is not possible to only extra the list of valid emails from a list of valid and invalid emails . \ param [ in ] emails A list of email address to be parsed . \ param [ in ] flags A set of flags to define what should be checked and what should be ignored . No flags are defined yet . \ return TLD_RESULT_SUCCESS when no errors were detected TLD_RESULT_INVALID or some other value if any error occured .
tld_result tld_email_list::parse(std::string const & emails, int flags)
{
    f_input = emails;
    f_flags = flags;
    f_result = TLD_RESULT_SUCCESS;
    f_last_group.clear();
    f_pos = 0; 
    f_email_list.clear();
    parse_all_emails();
    if(f_result != TLD_RESULT_SUCCESS)
    {
        f_email_list.clear();
    }
    return f_result;
}
tld_result tld_email_list :: parse ( std :: string const & emails , int flags ) { f_input = emails ; f_flags = flags ; f_result = TLD_RESULT_SUCCESS ; f_last_group . clear ( ) ; f_pos = 0 ; f_email_list . clear ( ) ; parse_all_emails ( ) ; if ( f_result != TLD_RESULT_SUCCESS ) { f_email_list . clear ( ) ; } return f_result ; }
\brief Parse a new list of emails.
\ brief Parse a new list of emails .
// always rewind too