7
Avoid byte to char position conversions in `is_multiline` by tmiasko · Pull Requ...
source link: https://github.com/rust-lang/rust/pull/86778
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Converting a byte position into a char position is currently linear in
the number of multibyte characters in the source code. Avoid it when
checking if a range spans across lines.
This makes it feasible to compile source files with a large number of
multibyte characters.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK