Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 354 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 354 Bytes

glob_match

Simple "glob" pattern matching.

  • '*' matches zero or more of any character.
  • '?' matches any single character.

Example:

if (glob_match("hello*", arg)) ...

See the unit test glob_match_test.cpp for more examples.

Build and run the unit test:

g++ -Wall -Werror -std=c++17 glob_match_test.cpp glob_match.cpp && ./a.out