ZIm/crates/util/src
Michael Sloan 2d431e9b51
Improve truncate efficiency and fix OBOE in truncate_and_remove_front (#22591)
* Skip walking string for truncate when byte len is <= char limit

* Fix `truncate_and_remove_front` returning string that is `max_chars +
1` in length. Now more consistent with `truncate_and_trailoff` behavior.

* Fix `truncate_and_remove_front` adding ellipsis when max_chars == char
length

Release Notes:

- N/A
2025-01-02 22:35:36 +00:00
..
test Fix Clippy warnings in util crate (#8721) 2024-03-02 13:06:35 -05:00
arc_cow.rs Add support for git branches on remote projects (#19755) 2024-10-27 15:50:54 -07:00
command.rs windows: Set CREATE_NO_WINDOW for commands (#18447) 2024-11-20 16:52:38 -08:00
fs.rs chore: Clean up util dependencies. (#9247) 2024-03-13 00:10:49 +01:00
paths.rs Better absolute path handling (#19727) 2024-11-27 20:22:58 +02:00
serde.rs Allow ignoring soft wraps when moving to line ends (#11153) 2024-05-02 12:30:45 +03:00
test.rs Fix Clippy warnings in util crate (#8721) 2024-03-02 13:06:35 -05:00
util.rs Improve truncate efficiency and fix OBOE in truncate_and_remove_front (#22591) 2025-01-02 22:35:36 +00:00