Home / Function/ matched_stripped() — tailwindcss Function Reference

matched_stripped() — tailwindcss Function Reference

Architecture documentation for the matched_stripped() function in gitignore.rs from the tailwindcss codebase.

Function rust OxideEngine PreProcessors calls 3 called by 2

Entity Profile

Dependency Diagram

graph TD
  fbe7cf76_6649_3b18_ee36_e9844d08d9a0["matched_stripped()"]
  714a3a15_03d5_1e35_b535_53da70bce8eb["gitignore.rs"]
  fbe7cf76_6649_3b18_ee36_e9844d08d9a0 -->|defined in| 714a3a15_03d5_1e35_b535_53da70bce8eb
  cced25a4_cbaa_d0f2_f8a1_b7c0915c5f31["matched()"]
  cced25a4_cbaa_d0f2_f8a1_b7c0915c5f31 -->|calls| fbe7cf76_6649_3b18_ee36_e9844d08d9a0
  ca3cd87a_abf8_113a_8b00_c0db25a19976["matched_path_or_any_parents()"]
  ca3cd87a_abf8_113a_8b00_c0db25a19976 -->|calls| fbe7cf76_6649_3b18_ee36_e9844d08d9a0
  f30f6608_5b16_4482_3310_8c414d5a3ef4["is_empty()"]
  fbe7cf76_6649_3b18_ee36_e9844d08d9a0 -->|calls| f30f6608_5b16_4482_3310_8c414d5a3ef4
  4a4476c0_2b5b_8f60_ef1d_5ea00c8da189["is_only_dir()"]
  fbe7cf76_6649_3b18_ee36_e9844d08d9a0 -->|calls| 4a4476c0_2b5b_8f60_ef1d_5ea00c8da189
  d6e17d79_dfdc_d4cd_fcf0_351c16fa6fc5["is_whitelist()"]
  fbe7cf76_6649_3b18_ee36_e9844d08d9a0 -->|calls| d6e17d79_dfdc_d4cd_fcf0_351c16fa6fc5
  style fbe7cf76_6649_3b18_ee36_e9844d08d9a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/gitignore.rs lines 246–269

    fn matched_stripped<P: AsRef<Path>>(&self, path: P, is_dir: bool) -> Match<&Glob> {
        if self.is_empty() {
            return Match::None;
        }
        // CHANGED: Rules marked as only_on_files can not match against directories.
        if self.only_on_files && is_dir {
            return Match::None;
        }
        let path = path.as_ref();
        let mut matches = self.matches.as_ref().unwrap().get();
        let candidate = Candidate::new(path);
        self.set.matches_candidate_into(&candidate, &mut *matches);
        for &i in matches.iter().rev() {
            let glob = &self.globs[i];
            if !glob.is_only_dir() || is_dir {
                return if glob.is_whitelist() {
                    Match::Whitelist(glob)
                } else {
                    Match::Ignore(glob)
                };
            }
        }
        Match::None
    }

Domain

Subdomains

Frequently Asked Questions

What does matched_stripped() do?
matched_stripped() is a function in the tailwindcss codebase, defined in crates/ignore/src/gitignore.rs.
Where is matched_stripped() defined?
matched_stripped() is defined in crates/ignore/src/gitignore.rs at line 246.
What does matched_stripped() call?
matched_stripped() calls 3 function(s): is_empty, is_only_dir, is_whitelist.
What calls matched_stripped()?
matched_stripped() is called by 2 function(s): matched, matched_path_or_any_parents.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free