Benign cargo download unavailable

re_unicode.rs

SHA-2563766f4a9c5b68745420f04c4454766451959f2fb44a74abbad433c79ffc55c0d
Malecule∅

Evidence

English function-word token "the" lines 1–5
1// Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LIC …
imports error::Error lines 8–29
8:59… ibuted
9// except according to those terms.
10
11use std::borrow::Cow;
12use std::collections::HashMap;
13use std::fmt;
14use std::ops::Index;
15use std::str::FromStr;
16use std::sync::Arc;
17
18use memchr::memchr;
19use syntax;
20
21use error::Error;
22use exec::{Exec, ExecNoSyncStr};
23use expand::expand_str;
24use re_builder::unicode::RegexBuilder;
25use re_trait::{self, RegularExpression, Locations, SubCapturesPosIter};
26
27/// Escapes all regular expression meta characters in `text`.
28///
29/// The string returned may be safel …
English function-word token "for" lines 70–81
70:19… nd,
71 }
72 }
73}
74
75impl<'t> From<Match<'t>> for &'t str {
76 fn from(m: Match<'t>) -> &'t str {
77 m.as_str()
⋯4 lines
English function-word token "with" lines 84–86
84:76… plit
85/// or replace text. All searching is done with an implicit `.*?` at the
86/// beginning and end of an expression. To force an expression to matc …
Rust materializes an iterator with .collect() lines 127–134
127:34… nwrap();
128/// let haystack = "a111b222c";
129///
130/// assert!(haystack.contains(&re));
131/// assert_eq!(haystack.find(&re), Some(1));
132/// assert_eq!(haystack.match_indices(&re).collect::<Vec<_>>(),
133/// vec![(1, 4), (5, 8)]);
134/// assert_eq!(haystack.split(&re).collect:: …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.