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 Oxide Scanner calls 3 called by 2

Entity Profile

Dependency Diagram

graph TD
  0a1ce0bf_34ad_22f6_c0b8_36129c8d4f94["matched_stripped()"]
  61377720_4557_3c63_7653_b6ed73e2face["gitignore.rs"]
  0a1ce0bf_34ad_22f6_c0b8_36129c8d4f94 -->|defined in| 61377720_4557_3c63_7653_b6ed73e2face
  dc47de84_2df1_e69e_9def_98d41804c2cf["matched()"]
  dc47de84_2df1_e69e_9def_98d41804c2cf -->|calls| 0a1ce0bf_34ad_22f6_c0b8_36129c8d4f94
  223c5f29_3f10_003b_c448_2f21000e41fa["matched_path_or_any_parents()"]
  223c5f29_3f10_003b_c448_2f21000e41fa -->|calls| 0a1ce0bf_34ad_22f6_c0b8_36129c8d4f94
  78994562_f741_b984_8df0_fdebd0d531e2["is_empty()"]
  0a1ce0bf_34ad_22f6_c0b8_36129c8d4f94 -->|calls| 78994562_f741_b984_8df0_fdebd0d531e2
  cb188db4_6a35_fb1a_777b_ef6e8a7be928["is_only_dir()"]
  0a1ce0bf_34ad_22f6_c0b8_36129c8d4f94 -->|calls| cb188db4_6a35_fb1a_777b_ef6e8a7be928
  6b69fd3b_2700_225b_a374_e64f06942c16["is_whitelist()"]
  0a1ce0bf_34ad_22f6_c0b8_36129c8d4f94 -->|calls| 6b69fd3b_2700_225b_a374_e64f06942c16
  style 0a1ce0bf_34ad_22f6_c0b8_36129c8d4f94 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