@brief Check a raw argument for a given token. * * Returns "true" when EITHER: * * - testtoken == rawargument is true. * - rawargument has an equals sign and the substring up to (but not * including) the equals sign compares equal to testtoken. */
| 42 | * including) the equals sign compares equal to testtoken. |
| 43 | */ |
| 44 | bool token_match(std::string const& testtoken, std::string const& rawargument) |
| 45 | { |
| 46 | return (rawargument.compare(0, rawargument.find('='), testtoken) == 0); |
| 47 | } |
| 48 | } // namespace |
| 49 | |
| 50 | namespace lbann { |