Searched refs:needle_len (Results 1 – 1 of 1) sorted by relevance
122 size_t needle_len = strlen(needle); in file_is_in_dir() local124 return strncmp(haystack, needle, needle_len) == 0 && in file_is_in_dir()125 haystack[needle_len] == '/' && in file_is_in_dir()126 strchr(haystack + needle_len + 1, '/') == nullptr; in file_is_in_dir()132 size_t needle_len = strlen(needle); in file_is_under_dir() local134 return strncmp(haystack, needle, needle_len) == 0 && in file_is_under_dir()135 haystack[needle_len] == '/'; in file_is_under_dir()