advgetopt/conf_file.cpp
/** \brief Check whether `c` is an assignment operator.
 *
 * This function checks the \p c parameter to know whether it matches
 * one of the character allowed as an assignment character.
 *
 * \param[in] c  The character to be checked.
 *
 * \return true if c is considered to represent an assignment character.
 */
\brief Check whether `c` is an assignment operator.
This function checks the \p c parameter to know whether it matches
one of the character allowed as an assignment character.

\param[in] c  The character to be checked.

\return true if c is considered to represent an assignment character.
\ brief Check whether ` c ` is an assignment operator . This function checks the \ p c parameter to know whether it matches one of the character allowed as an assignment character . \ param [ in ] c The character to be checked . \ return true if c is considered to represent an assignment character .
bool conf_file::is_assignment_operator(int c) const
{
    assignment_operator_t const assignment_operator(f_setup.get_assignment_operator());
    return ((assignment_operator & ASSIGNMENT_OPERATOR_EQUAL) != 0 && c == '=')
        || ((assignment_operator & ASSIGNMENT_OPERATOR_COLON) != 0 && c == ':')
        || ((assignment_operator & ASSIGNMENT_OPERATOR_SPACE) != 0 && std::iswspace(c));
}
bool conf_file :: is_assignment_operator ( int c ) const { assignment_operator_t const assignment_operator ( f_setup . get_assignment_operator ( ) ) ; return ( ( assignment_operator & ASSIGNMENT_OPERATOR_EQUAL ) != 0 && c == ' ' ) || ( ( assignment_operator & ASSIGNMENT_OPERATOR_COLON ) != 0 && c == ' ' ) || ( ( assignment_operator & ASSIGNMENT_OPERATOR_SPACE ) != 0 && std :: iswspace ( c ) ) ; }
\brief Check whether `c` is an assignment operator.
\ brief Check whether ` c ` is an assignment operator .