Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

fish2000/glob_match

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 code in glob_test.cpp for more examples.

To build and run the unit test:

g++ -Wall -Werror -std=c++17 glob_test.cpp glob.cpp && ./a.out

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%