src/parser/Parse_Table.cc
bool Parse_Table::Keyword_Compare_::operator()(Keyword const &k1, Token const &k2) const noexcept {
  Require(k1.moniker != nullptr);

  return kt_comparison(k1.moniker, k2.text().c_str()) < 0;
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Comparison function for finding token match in keyword table.
 *
 * This function is used by a Parse_Table to match keywords to identifier tokens
 * using std::lower_bound.
 *
 * If no option flags are set, the match must be exact.
 *
 * If CASE_INSENSITIVE is set, the match must be exact after conversion to
 * uppercase.
 *
 * If PARTIAL_IDENTIFIER_MATCH is set, each identifier in the token must be a
 * prefix of the corresponding identifier in the keyword, after conversion to
 * uppercase if CASE_INSENSITIVE is also set.  For example, the token "ABD"
 * matches the keyword "ABDEF" but not the keyword "AB".
 *
 * \param k1 The Keyword to be compared.
 * \param k2 The token to be compared.
 *
 * \return <CODE>comparison(keyword.moniker,
 *                          token.text().c_str())<0 </CODE>
 */
\brief Comparison function for finding token match in keyword table.
This function is used by a Parse_Table to match keywords to identifier tokens
using std::lower_bound.

If no option flags are set, the match must be exact.

If CASE_INSENSITIVE is set, the match must be exact after conversion to
uppercase.

If PARTIAL_IDENTIFIER_MATCH is set, each identifier in the token must be a
prefix of the corresponding identifier in the keyword, after conversion to
uppercase if CASE_INSENSITIVE is also set.

\param k1 The Keyword to be compared.
\param k2 The token to be compared.


\ brief Comparison function for finding token match in keyword table . This function is used by a Parse_Table to match keywords to identifier tokens using std :: lower_bound . If no option flags are set the match must be exact . If CASE_INSENSITIVE is set the match must be exact after conversion to uppercase . If PARTIAL_IDENTIFIER_MATCH is set each identifier in the token must be a prefix of the corresponding identifier in the keyword after conversion to uppercase if CASE_INSENSITIVE is also set . \ param k1 The Keyword to be compared . \ param k2 The token to be compared .
bool Parse_Table::Keyword_Compare_::operator()(Keyword const &k1, Token const &k2) const noexcept {
  Require(k1.moniker != nullptr);
  return kt_comparison(k1.moniker, k2.text().c_str()) < 0;
}
bool Parse_Table :: Keyword_Compare_ :: operator () ( Keyword const & k1 , Token const & k2 ) const noexcept { Require ( k1 . moniker != nullptr ) ; return kt_comparison ( k1 . moniker , k2 . text ( ) . c_str ( ) ) < 0 ; }
\brief Comparison function for finding token match in keyword table.
\ brief Comparison function for finding token match in keyword table .