Added support for glob

thanks to tsoding/glob.h
This commit is contained in:
Nikola Petrov
2023-08-15 00:15:16 +02:00
parent 6317e9f699
commit 43fda0a392
5 changed files with 118 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
#pragma once
enum class Glob_Result {
OOM_ERROR,
ENCODING_ERROR,
SYNTAX_ERROR,
UNMATCHED,
MATCHED,
} ;
// https://github.com/tsoding/glob.h
Glob_Result glob(const char* pattern, const char* text);