Lines Matching refs:re

22     re: bytes::Regex,
35 re: bytes::RegexSet,
47 re: *const Regex,
60 &self.re
67 &self.re
82 let re = rure_compile(
90 re
127 Ok(re) => {
129 for (i, name) in re.capture_names().enumerate() {
134 let re = Regex {
135 re: re,
138 Box::into_raw(Box::new(re))
153 fn rure_free(re: *const Regex) {
154 unsafe { drop(Box::from_raw(re as *mut Regex)); }
160 re: *const Regex,
165 let re = unsafe { &*re };
167 re.is_match_at(haystack, start)
173 re: *const Regex,
179 let re = unsafe { &*re };
181 re.find_at(haystack, start).map(|m| unsafe {
192 re: *const Regex,
198 let re = unsafe { &*re };
201 re.read_captures_at(slots, haystack, start).is_some()
207 re: *const Regex,
213 let re = unsafe { &*re };
215 match re.shortest_match_at(haystack, start) {
231 re: *const Regex,
234 let re = unsafe { &*re };
240 re.capture_names.get(name).map(|&i|i).unwrap_or(-1)
246 re: *const Regex,
248 let re = unsafe { &*re };
250 capture_names: re.re.capture_names(),
307 re: *const Regex,
310 re: re,
331 let re = unsafe { &*it.re };
336 let (s, e) = match re.find_at(text, it.last_end) {
372 let re = unsafe { &*it.re };
378 let (s, e) = match re.read_captures_at(slots, text, it.last_end) {
401 fn rure_captures_new(re: *const Regex) -> *mut Captures {
402 let re = unsafe { &*re };
403 let captures = Captures(re.locations());
513 Ok(re) => {
514 Box::into_raw(Box::new(RegexSet { re: re }))
529 fn rure_set_free(re: *const RegexSet) {
530 unsafe { drop(Box::from_raw(re as *mut RegexSet)); }
536 re: *const RegexSet,
541 let re = unsafe { &*re };
543 re.is_match_at(haystack, start)
549 re: *const RegexSet,
555 let re = unsafe { &*re };
557 slice::from_raw_parts_mut(matches, re.len())
565 re.read_matches_at(&mut matches, haystack, start)
570 fn rure_set_len(re: *const RegexSet) -> size_t {
571 unsafe { (*re).len() }