oxedyne/fe2o3/fe2o3_text/src/lib.rs
1.8 KiB, 29 runs
created by r1870400018:1101, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | //! Text processing utilities for the Hematite ecosystem. |
| 2 | //! |
| 3 | //! This crate provides tools for manipulating and analysing text in various ways. Key features include: |
| 4 | //! |
| 5 | //! - `Stringer` - A String wrapper that adds functionality like intelligent quote handling, indentation |
| 6 | //! control, line wrapping and character insertion at specified intervals. |
| 7 | //! |
| 8 | //! - SACSS (Simple And Composite String Search) - An alternative to regex that aims to be more approachable |
| 9 | //! through composable boolean operations on simple pattern matches like "starts with", "contains" etc. |
| 10 | //! |
| 11 | //! - `regex` - A regular-expression engine with the syntax and meaning of the Rust `regex` crate, |
| 12 | //! which Typst's `regex(...)` uses: captures, Unicode property classes and replacement, matched |
| 13 | //! in time linear in pattern times text |
| 14 | //! |
| 15 | //! - `glob` - Shell-style path globbing, `**` included, for selecting files by name |
| 16 | //! |
| 17 | //! - Thread-safe text containers supporting concurrent access with highlighting capabilities |
| 18 | //! |
| 19 | //! - Base-2^x encodings with customisable alphabets for binary-to-text conversion, alongside |
| 20 | //! standard RFC 4648 Base64 for talking to everybody else |
| 21 | //! |
| 22 | //! - Text splitting with quote protection and hyphenation awareness |
| 23 | //! |
| 24 | //! - Line-oriented text manipulation with full Unicode support |
| 25 | //! |
| 26 | //! The implementation focuses on providing intuitive text processing tools while maintaining strong safety |
| 27 | //! guarantees. All functionality is implemented without unsafe code. |
| 28 | //! |
| 29 | #![forbid(unsafe_code)] |
| 30 | #![allow(dead_code)] |
| 31 | pub mod access; |
| 32 | pub mod base2x; |
| 33 | pub mod base64; |
| 34 | pub mod core; |
| 35 | pub mod glob; |
| 36 | pub mod highlight; |
| 37 | pub mod html; |
| 38 | pub mod lines; |
| 39 | pub mod doc; |
| 40 | pub mod pattern; |
| 41 | pub mod regex; |
| 42 | pub mod secret; |
| 43 | pub mod split; |
| 44 | pub mod string; |
| 45 | pub mod phrase; |
| 46 | pub mod table; |
| 47 | |
| 48 | pub mod fmt; |
| 49 | pub mod unicode; |
| 50 | pub mod xml; |
| 51 | |
| 52 | pub use core::Text; |