Function email::utils::payload::cut_string_if_newline

Function Documentation

std::string email::utils::payload::cut_string_if_newline(const std::string &string)

Cut a string before a newline if needed.

Parameters:

string – the string

Returns:

the string cut before a newline, if needed