add license headers

This commit is contained in:
Sylvestre Ledru
2026-05-29 10:12:14 +02:00
parent 80e1fb8043
commit 79db36edbe
7 changed files with 35 additions and 0 deletions
+5
View File
@@ -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],
+5
View File
@@ -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;
+5
View File
@@ -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 _};
+5
View File
@@ -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);
+5
View File
@@ -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};
+5
View File
@@ -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;
+5
View File
@@ -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;