mirror of
https://github.com/uutils/grep.git
synced 2026-06-10 16:15:11 -07:00
add license headers
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
// This file is part of the uutils grep package.
|
||||
//
|
||||
// For the full copyright and license information, please view the LICENSE
|
||||
// file that was distributed with this source code.
|
||||
|
||||
pub struct LineView<'a> {
|
||||
/// Line content (without the terminator).
|
||||
pub line: &'a [u8],
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
// This file is part of the uutils grep package.
|
||||
//
|
||||
// For the full copyright and license information, please view the LICENSE
|
||||
// file that was distributed with this source code.
|
||||
|
||||
mod context_buffer;
|
||||
mod line_buffer;
|
||||
mod matcher;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
// This file is part of the uutils grep package.
|
||||
//
|
||||
// For the full copyright and license information, please view the LICENSE
|
||||
// file that was distributed with this source code.
|
||||
|
||||
use memchr::memchr;
|
||||
use std::fs::File;
|
||||
use std::io::{self, Read as _};
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
// This file is part of the uutils grep package.
|
||||
//
|
||||
// For the full copyright and license information, please view the LICENSE
|
||||
// file that was distributed with this source code.
|
||||
|
||||
uucore::bin!(uu_grep);
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
// This file is part of the uutils grep package.
|
||||
//
|
||||
// For the full copyright and license information, please view the LICENSE
|
||||
// file that was distributed with this source code.
|
||||
|
||||
use crate::{Config, RegexMode};
|
||||
use onig::{EncodedBytes, Regex, RegexOptions, Region, SearchOptions, Syntax, SyntaxBehavior};
|
||||
use onig_sys::{OnigEncCtype_ONIGENC_CTYPE_WORD, OnigEncodingUTF8};
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
// This file is part of the uutils grep package.
|
||||
//
|
||||
// For the full copyright and license information, please view the LICENSE
|
||||
// file that was distributed with this source code.
|
||||
|
||||
use crate::Config;
|
||||
use crate::context_buffer::LineView;
|
||||
use std::ffi::OsStr;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
// This file is part of the uutils grep package.
|
||||
//
|
||||
// For the full copyright and license information, please view the LICENSE
|
||||
// file that was distributed with this source code.
|
||||
|
||||
use crate::context_buffer::{ContextBuffer, LineView};
|
||||
use crate::line_buffer::LineBuffer;
|
||||
use crate::matcher::Matcher;
|
||||
|
||||
Reference in New Issue
Block a user