Anonymous View
LLVM 23.0.0git
GlobPattern.cpp File Reference

Go to the source code of this file.

Functions

static Expected< BitVectorexpand (StringRef S, StringRef Original)
static Expected< SmallVector< std::string, 1 > > parseBraceExpansions (StringRef S, std::optional< size_t > MaxSubPatterns)
static StringRef maxPlainSubstring (StringRef S, bool SlashAgnostic)
static bool matchChar (char PatC, char QueryC, bool SlashAgnostic)

Variables

static constexpr char PrefixMetacharacters [] = "?*[{\\"
static constexpr char SuffixMetacharacters [] = "?*[]{}\\"
static constexpr char PrefixMetacharactersWithSlash [] = "?*[{\\/"
static constexpr char SuffixMetacharactersWithSlash [] = "?*[]{}\\/"

Function Documentation

◆ expand()

◆ matchChar()

bool matchChar ( char PatC,
char QueryC,
bool SlashAgnostic )
static

Definition at line 286 of file GlobPattern.cpp.

◆ maxPlainSubstring()

◆ parseBraceExpansions()

Variable Documentation

◆ PrefixMetacharacters

char PrefixMetacharacters[] = "?*[{\\"
staticconstexpr

Definition at line 19 of file GlobPattern.cpp.

Referenced by llvm::GlobPattern::create(), and maxPlainSubstring().

◆ PrefixMetacharactersWithSlash

char PrefixMetacharactersWithSlash[] = "?*[{\\/"
staticconstexpr

Definition at line 21 of file GlobPattern.cpp.

Referenced by llvm::GlobPattern::create(), and maxPlainSubstring().

◆ SuffixMetacharacters

char SuffixMetacharacters[] = "?*[]{}\\"
staticconstexpr

Definition at line 20 of file GlobPattern.cpp.

Referenced by llvm::GlobPattern::create().

◆ SuffixMetacharactersWithSlash

char SuffixMetacharactersWithSlash[] = "?*[]{}\\/"
staticconstexpr

Definition at line 22 of file GlobPattern.cpp.

Referenced by llvm::GlobPattern::create().