mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-08-28 11:50:31 +00:00
Export find_char_boundary hidden
Used in cli_utils for printing report totals with number formats.
This commit is contained in:
parent
3f1491e582
commit
f37b2db17a
|
@ -58,5 +58,5 @@ pub use self::{
|
|||
config::Config,
|
||||
language::{Language, LanguageType, Languages},
|
||||
sort::Sort,
|
||||
stats::{CodeStats, Report},
|
||||
stats::{find_char_boundary, CodeStats, Report},
|
||||
};
|
||||
|
|
|
@ -93,7 +93,8 @@ impl ops::AddAssign<CodeStats> for Report {
|
|||
}
|
||||
}
|
||||
|
||||
fn find_char_boundary(s: &str, index: usize) -> usize {
|
||||
#[doc(hidden)]
|
||||
pub fn find_char_boundary(s: &str, index: usize) -> usize {
|
||||
for i in 0..4 {
|
||||
if s.is_char_boundary(index + i) {
|
||||
return index + i;
|
||||
|
|
Loading…
Reference in a new issue