diff options
Diffstat (limited to 'gold/gold.h')
-rw-r--r-- | gold/gold.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/gold.h b/gold/gold.h index 04b6911..90f1f7d 100644 --- a/gold/gold.h +++ b/gold/gold.h @@ -401,6 +401,15 @@ string_hash(const Char_type* s) return h; } +// Return whether STRING contains a wildcard character. This is used +// to speed up matching. + +inline bool +is_wildcard_string(const char* s) +{ + return strpbrk(s, "?*[") != NULL; +} + } // End namespace gold. #endif // !defined(GOLD_GOLD_H) |