aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2025-07-15 10:18:11 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2025-07-17 09:48:17 +0100
commit7ac31f1e42fa7a0d47c27ef0332d6801d1ecdbf6 (patch)
tree538da3fdbe2c87f1b8d5e5e0237a6ad945aa309f /gcc
parentf4932c59df387a505de69a5a1015a03caa4ccf08 (diff)
downloadgcc-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