Lines Matching refs:sherlock

5 // USAGE: sherlock!(name, pattern, count)
8 macro_rules! sherlock {
14 include_str!("data/sherlock.txt").to_owned()
22 sherlock!(name_sherlock, r"Sherlock", 97);
23 sherlock!(name_holmes, r"Holmes", 461);
24 sherlock!(name_sherlock_holmes, r"Sherlock Holmes", 91);
30 sherlock!(name_sherlock_nocase, r"(?i)Sherlock", 102);
31 sherlock!(name_holmes_nocase, r"(?i)Holmes", 467);
32 sherlock!(name_sherlock_holmes_nocase, r"(?i)Sherlock Holmes", 96);
36 sherlock!(name_whitespace, r"Sherlock\s+Holmes", 97);
41 sherlock!(name_alt1, r"Sherlock|Street", 158);
45 sherlock!(name_alt2, r"Sherlock|Holmes", 558);
48 sherlock!(name_alt3, r"Sherlock|Holmes|Watson|Irene|Adler|John|Baker", 740);
50 sherlock!(
57 sherlock!(name_alt4, r"Sher[a-z]+|Hol[a-z]+", 582);
58 sherlock!(name_alt4_nocase, r"(?i)Sher[a-z]+|Hol[a-z]+", 697);
60 sherlock!(name_alt5, r"Sherlock|Holmes|Watson", 639);
61 sherlock!(name_alt5_nocase, r"(?i)Sherlock|Holmes|Watson", 650);
67 sherlock!(no_match_uncommon, r"zqj", 0);
68 sherlock!(no_match_common, r"aqj", 0);
69 sherlock!(no_match_really_common, r"aei", 0);
74 sherlock!(the_lower, r"the", 7218);
75 sherlock!(the_upper, r"The", 741);
76 sherlock!(the_nocase, r"(?i)the", 7987);
80 sherlock!(the_whitespace, r"the\s+\w+", 5410);
87 sherlock!(everything_greedy, r".*", 13053);
92 sherlock!(everything_greedy_nl, r"(?s).*", 1);
97 sherlock!(letters, r"\p{L}", 447160);
100 sherlock!(letters_upper, r"\p{Lu}", 14180);
103 sherlock!(letters_lower, r"\p{Ll}", 432980);
107 sherlock!(words, r"\w+", 109214);
109 sherlock!(words, r"\w+", 109222); // hmm, why does RE2 diverge here?
113 sherlock!(before_holmes, r"\w+\s+Holmes", 319);
117 sherlock!(before_after_holmes, r"\w+\s+Holmes\s+\w+", 137);
122 sherlock!(holmes_cochar_watson, r"Holmes.{0,25}Watson|Watson.{0,25}Holmes", 7);
131 sherlock!(
140 sherlock!(quotes, r#"["'][^"']{0,30}[?!.]["']"#, 767);
145 sherlock!(
157 sherlock!(word_ending_n, r"\b\w+n\b", 8366);
170 sherlock!(repeated_class_negation, r"[a-q][^u-z]{13}x", 142);
174 sherlock!(ing_suffix, r"[a-zA-Z]+ing", 2824);
182 sherlock!(ing_suffix_limited_space, r"\s[a-zA-Z]{0,12}ing\s", 2081);