Lines Matching full:filepath
22 // Check whether `FilePath` matches `Pattern` based on POSIX 2.13.1, 2.13.2, and
24 bool matchFilePath(StringRef Pattern, StringRef FilePath) {
26 assert(!FilePath.empty());
28 const auto FilePathBack = FilePath.back();
31 // character of `FilePath`.
37 const auto End = FilePath.size(); // End of `FilePath`.
44 switch (const auto F = FilePath[J]; Pattern[I]) {
61 const auto K = FilePath.find(Separator, J); // Index of next `Separator`.
76 J = K; // Skip to next `Separator` in `FilePath`.
84 J < End && (Globstar || FilePath[J] != Separator); ++J) {
85 if (matchFilePath(Pat, FilePath.substr(J)))