Skip to main content

strs_tools/string/
mod.rs

1/// Add indentation to each line.
2#[ cfg( all( feature = "string_indentation", feature = "std" ) ) ]
3pub mod indentation;
4/// Isolate parts of string.
5#[ cfg( all( feature = "string_isolate", feature = "std" ) ) ]
6pub mod isolate;
7/// Parsing of numbers.
8#[ cfg( all( feature = "string_parse_number", feature = "std" ) ) ]
9pub mod number;
10/// Parse string.
11#[ cfg( all( feature = "string_parse_request", any( feature = "std", feature = "use_alloc" ) ) ) ]
12pub mod parse_request;
13/// Split string with a delimiter.
14#[ cfg( all( feature = "string_split", any( feature = "std", feature = "use_alloc" ) ) ) ]
15pub mod split;
16/// Zero-copy string operations.
17#[ cfg( all( feature = "string_split", feature = "std" ) ) ]
18pub mod zero_copy;
19/// Parser integration for single-pass processing.
20#[ cfg( all( feature = "string_split", feature = "std" ) ) ]
21pub mod parser;
22/// Specialized high-performance string splitting algorithms.
23#[ cfg( all( feature = "string_split", feature = "specialized_algorithms", feature = "std" ) ) ]
24pub mod specialized;
25/// Line-based text operations (head/tail).
26#[ cfg( all( feature = "string_split", any( feature = "std", feature = "use_alloc" ) ) ) ]
27pub mod lines;
28
29#[ doc( inline ) ]
30#[ allow( unused_imports ) ]
31pub use own :: *;
32
33/// Own namespace of the module.
34#[ allow( unused_imports ) ]
35pub mod own 
36{
37  #[ allow( unused_imports ) ]
38  use super :: *;
39  pub use orphan :: *;
40  #[ cfg( all( feature = "string_indentation", feature = "std" ) ) ]
41  pub use super ::indentation ::orphan :: *;
42  #[ cfg( all( feature = "string_isolate", feature = "std" ) ) ]
43  pub use super ::isolate ::orphan :: *;
44  #[ cfg( all( feature = "string_parse_number", feature = "std" ) ) ]
45  #[ allow( unused_imports ) ]
46  pub use super ::number ::orphan :: *;
47  #[ cfg( all( feature = "string_parse_request", any( feature = "std", feature = "use_alloc" ) ) ) ]
48  pub use super ::parse_request ::orphan :: *;
49  #[ cfg( all( feature = "string_split", any( feature = "std", feature = "use_alloc" ) ) ) ]
50  pub use super ::split ::orphan :: *;
51  #[ cfg( all( feature = "string_split", feature = "std" ) ) ]
52  pub use super ::zero_copy :: { ZeroCopyStringExt, ZeroCopySplit, ZeroCopySegment, zero_copy_split };
53  #[ cfg( all( feature = "string_split", feature = "std" ) ) ]
54  pub use super ::parser :: { ParserIntegrationExt, CommandParser, ParsedToken, ParseError, parse_and_split };
55  #[ cfg( all( feature = "string_split", feature = "specialized_algorithms", feature = "std" ) ) ]
56  pub use super ::specialized :: { smart_split, SingleCharSplitIterator, BoyerMooreSplitIterator, SplitResult, SplitAlgorithm, AlgorithmSelector };
57  #[ cfg( all( feature = "string_split", any( feature = "std", feature = "use_alloc" ) ) ) ]
58  pub use super ::lines ::orphan :: *;
59}
60
61/// Parented namespace of the module.
62#[ allow( unused_imports ) ]
63pub mod orphan 
64{
65  #[ allow( unused_imports ) ]
66  use super :: *;
67  pub use exposed :: *;
68}
69
70/// Exposed namespace of the module.
71#[ allow( unused_imports ) ]
72pub mod exposed 
73{
74  #[ allow( unused_imports ) ]
75  use super :: *;
76  pub use prelude :: *;
77  #[ cfg( all( feature = "string_indentation", feature = "std" ) ) ]
78  #[ allow( unused_imports ) ]
79  pub use super ::indentation ::exposed :: *;
80  #[ cfg( all( feature = "string_isolate", feature = "std" ) ) ]
81  pub use super ::isolate ::exposed :: *;
82  #[ cfg( all( feature = "string_parse_number", feature = "std" ) ) ]
83  #[ allow( unused_imports ) ]
84  pub use super ::number ::exposed :: *;
85  #[ cfg( all( feature = "string_parse_request", any( feature = "std", feature = "use_alloc" ) ) ) ]
86  pub use super ::parse_request ::exposed :: *;
87  #[ cfg( all( feature = "string_split", any( feature = "std", feature = "use_alloc" ) ) ) ]
88  pub use super ::split ::exposed :: *;
89  #[ cfg( all( feature = "string_split", feature = "std" ) ) ]
90  pub use super ::zero_copy :: { ZeroCopyStringExt, zero_copy_split };
91  #[ cfg( all( feature = "string_split", feature = "std" ) ) ]
92  pub use super ::parser :: { ParserIntegrationExt, ParsedToken, parse_and_split };
93  #[ cfg( all( feature = "string_split", feature = "specialized_algorithms", feature = "std" ) ) ]
94  pub use super ::specialized :: { smart_split, SingleCharSplitIterator, BoyerMooreSplitIterator };
95  #[ cfg( all( feature = "string_split", any( feature = "std", feature = "use_alloc" ) ) ) ]
96  pub use super ::lines ::exposed :: *;
97}
98
99/// Namespace of the module to include with `use module :: *`.
100#[ allow( unused_imports ) ]
101pub mod prelude 
102{
103  #[ allow( unused_imports ) ]
104  use super :: *;
105  #[ cfg( all( feature = "string_indentation", feature = "std" ) ) ]
106  #[ allow( unused_imports ) ]
107  pub use super ::indentation ::prelude :: *;
108  #[ cfg( all( feature = "string_isolate", feature = "std" ) ) ]
109  pub use super ::isolate ::prelude :: *;
110  #[ cfg( all( feature = "string_parse_number", feature = "std" ) ) ]
111  #[ allow( unused_imports ) ]
112  pub use super ::number ::prelude :: *;
113  #[ cfg( all( feature = "string_parse_request", any( feature = "std", feature = "use_alloc" ) ) ) ]
114  pub use super ::parse_request ::prelude :: *;
115  #[ cfg( all( feature = "string_split", any( feature = "std", feature = "use_alloc" ) ) ) ]
116  pub use super ::split ::prelude :: *;
117  #[ cfg( all( feature = "string_split", feature = "std" ) ) ]
118  pub use super ::zero_copy ::ZeroCopyStringExt;
119  #[ cfg( all( feature = "string_split", feature = "std" ) ) ]
120  pub use super ::parser ::ParserIntegrationExt;
121}