BehaviorTree
Core Library to create and execute Behavior Trees
Loading...
Searching...
No Matches
wildcards.hpp File Reference

Simple wildcard matching function supporting '*' and '?'. More...

#include <cstddef>
#include <cstdint>
#include <string_view>
#include <vector>
Include dependency graph for wildcards.hpp:

Go to the source code of this file.

Functions

bool wildcards_match (std::string_view str, std::string_view pattern)
 

Detailed Description

Simple wildcard matching function supporting '*' and '?'.

This file provides a function to match strings against patterns containing wildcard characters:

  • '*' matches any sequence of characters (including the empty sequence)
  • '?' matches any single character

The implementation uses recursion with memoization to efficiently handle overlapping subproblems.