about summary refs log tree commit diff
path: root/library/core/src/char/decode.rs
AgeCommit message (Collapse)AuthorLines
2025-08-26remove deprecated Error::description in implsMarijn Schouten-6/+1
2023-11-15Substitute version placeholdersMark Rousskov-1/+1
2023-04-24Implement FusedIterator for DecodeUtf16 when the inner iterator doesColin Finck-0/+4
2023-01-14Use associated items of `char` instead of freestanding items in `core::char`Lukas Markeffsky-4/+2
2022-12-23char: µoptimise UTF-16 surrogates decodingMichal Nazarewicz-1/+1
According to Godbolt¹, on x86_64 using binary and produces slightly better code than using subtraction. Readability of both is pretty much equivalent so might just as well use the shorter option. ¹ https://rust.godbolt.org/z/9jM3ejbMx
2022-09-26remove cfg(bootstrap)Pietro Albini-2/+0
2022-08-22Move error trait into coreJane Losare-Lusby-0/+11
2022-04-01Avoid duplication of doc comments in `std::char` constants and functions.Eduardo Sánchez Muñoz-47/+2
For those consts and functions, only the summary is kept and a reference to the `char` associated const/method is included. Additionaly, re-exported functions have been converted to function definitions that call the previously re-exported function. This makes it easier to add a deprecated attribute to these functions in the future.
2022-03-21Add u16::is_utf16_surrogateltdk-2/+2
2022-01-30Fix an edge case in `chat::DecodeUtf16::size_hint`Maybe Waffle-11/+19
There are cases, when data in the buf might or might not be an error.
2022-01-28Fix wrong assumption in `DecodeUtf16::size_hint`Maybe Waffle-4/+9
`self.buf` can contain a surrogate, but only a leading one.
2022-01-27Make char::DecodeUtf16::size_hist more preciseMaybe Waffle-3/+15
New implementation takes into account contents of `self.buf` and rounds lower bound up instead of down.
2021-10-30Add #[must_use] to remaining core functionsJohn Kugelman-0/+1
2021-07-29Add missing links for core::char typesGuillaume Gomez-0/+7
2020-07-27mv std libs to library/mark-0/+135