Re: [PATCH v2] libstdc++: Add comments to __unicode::_Utf_iterator

2025-07-16 Thread Tomasz Kaminski
On Thu, Jul 17, 2025 at 1:16 AM Jonathan Wakely wrote: > 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 m

[PATCH v2] libstdc++: Add comments to __unicode::_Utf_iterator

2025-07-16 Thread Jonathan Wakely
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