Benign cargo Download

re_bytes.rs

SHA-25616b6c8f187c12e900ed3bc5777b698b3194dc277e8dcd5df9216ec54c8001d3a
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–28
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;
19
20use exec::{Exec, ExecNoSync};
21use expand::expand_bytes;
22use error::Error;
23use re_builder::bytes::RegexBuilder;
24use re_trait::{self, RegularExpression, Locations, SubCapturesPosIter};
25
26/// Match represents a single match of a regex in a haystack.
27///
28/// The lifetime parameter `'t` refe …
English function-word token "for" lines 62–70
62:6… }
63 }
64}
65
66/// A compiled regular expression for matching arbitrary bytes.
67///
68/// It can be used to search, split or replace text. All searching is done with
69/// an implicit `.*?` at the beginning and end of an expression. To force an
70/// expression to …
Rust materializes an iterator with .collect() lines 310–312
310:16… lds: Vec<&[u8]> = re.split(b"a b \t c\td e").collect();
311 /// assert_eq!(fields, vec![
312 /// &b"a"[..], &b"b"[..], &b"c"[..], &b"d"[..], &b" …
imports std::ascii::escape_default lines 879–883
879:14… cape_byte(byte: u8) -> String {
880 use std::ascii::escape_default;
881
882 let escaped: Vec<u8> = escape_default(byte).collect();
883 String::from_u …

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.