Lines Matching refs:str

100 static bool is_prefixed_hash(const char *str)  in is_prefixed_hash()  argument
107 if (strncmp(str, hash_prefix, hash_prefix_len)) in is_prefixed_hash()
109 str += hash_prefix_len; in is_prefixed_hash()
112 for (end = str + hash_len; str < end; str++) in is_prefixed_hash()
113 if (*str >= '0' && *str <= '9') in is_prefixed_hash()
114 seen[*str - '0'] = true; in is_prefixed_hash()
115 else if (*str >= 'a' && *str <= 'f') in is_prefixed_hash()
116 seen[*str - 'a' + 10] = true; in is_prefixed_hash()
129 static bool looks_like_rust(const char *str, size_t len) in looks_like_rust() argument
131 const char *end = str + len; in looks_like_rust()
133 while (str < end) in looks_like_rust()
134 switch (*str) { in looks_like_rust()
136 if (!strncmp(str, "$C$", 3)) in looks_like_rust()
137 str += 3; in looks_like_rust()
138 else if (!strncmp(str, "$SP$", 4) in looks_like_rust()
139 || !strncmp(str, "$BP$", 4) in looks_like_rust()
140 || !strncmp(str, "$RF$", 4) in looks_like_rust()
141 || !strncmp(str, "$LT$", 4) in looks_like_rust()
142 || !strncmp(str, "$GT$", 4) in looks_like_rust()
143 || !strncmp(str, "$LP$", 4) in looks_like_rust()
144 || !strncmp(str, "$RP$", 4)) in looks_like_rust()
145 str += 4; in looks_like_rust()
146 else if (!strncmp(str, "$u20$", 5) in looks_like_rust()
147 || !strncmp(str, "$u27$", 5) in looks_like_rust()
148 || !strncmp(str, "$u5b$", 5) in looks_like_rust()
149 || !strncmp(str, "$u5d$", 5) in looks_like_rust()
150 || !strncmp(str, "$u7e$", 5)) in looks_like_rust()
151 str += 5; in looks_like_rust()
157 if (!strncmp(str, "...", 3)) in looks_like_rust()
165 str++; in looks_like_rust()