EleFits  5.3.1
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches

◆ matches()

static bool matches ( const std::string test,
const std::string ref 
)
static

Check whether a test keyword matches a reference keyword.

For indexed keywords, the reference keyword is expeced to end with an 'n' character, which represents any positive integer. For example:

  • matches("KEY", "KEY") is true;
  • matches("KEY", "KEYn") is false;
  • matches("KEYn", "KEYn") is true;
  • matches("KEY123", "KEYn") is true;
  • matches("KEYn", "KEY123") is false;
  • matches("KEYWORD", "KEYn") is false.