diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2025-07-15 10:18:11 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-07-17 09:48:17 +0100 |
commit | 7ac31f1e42fa7a0d47c27ef0332d6801d1ecdbf6 (patch) | |
tree | 538da3fdbe2c87f1b8d5e5e0237a6ad945aa309f /gcc | |
parent | f4932c59df387a505de69a5a1015a03caa4ccf08 (diff) | |
download | gcc-7ac31f1e42fa7a0d47c27ef0332d6801d1ecdbf6.zip gcc-7ac31f1e42fa7a0d47c27ef0332d6801d1ecdbf6.tar.gz gcc-7ac31f1e42fa7a0d47c27ef0332d6801d1ecdbf6.tar.bz2 |
libstdc++: Add comments to __unicode::_Utf_iterator
Add comments documenting what it does and how it does it.
Also reorder the if-else in operator++ so that we check whether to
iterate over code units in the local buffer before checking whether to
refill that buffer. That seems the more natural way to structure the
function.
libstdc++-v3/ChangeLog:
* include/bits/unicode.h (__unicode::_Utf_iterator): Add
comments.
(__unicode:_Utf_iterator::operator++()): Check whether to
iterate over the buffer first.
Reviewed-by: Tomasz KamiĆski <tkaminsk@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions