mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
There's a few things going on in this commit: - The implementation of CharPointer_UTF16 now uses helpers from CharacterFunctions to avoid a few instances of magic numbers. - Where it makes sense, member functions of that class have been DRYed by e.g. implementing getAndAdvance in terms of operator*() and operator++(). - Added more tests for incrementing/decrementing/dereferencing CharPointer_UTF16. After this change, a CharPointer_UTF16 that points to an unpaired surrogate will always dereference to a 32-bit character with that surrogate's value. Note that dereferencing a CharPointer_UTF16 that points to a high surrogate at the final code unit in a memory region is inherently unsafe, because CharPointer_UTF16 can't track its own size, and the dereference operation will check the following code unit to see whether it is a low surrogate. |
||
|---|---|---|
| .. | ||
| containers | ||
| detail | ||
| files | ||
| json | ||
| logging | ||
| maths | ||
| memory | ||
| misc | ||
| native | ||
| network | ||
| serialisation | ||
| streams | ||
| system | ||
| text | ||
| threads | ||
| time | ||
| unit_tests | ||
| xml | ||
| zip | ||
| juce_core.cpp | ||
| juce_core.h | ||
| juce_core.mm | ||
| juce_core_CompilationTime.cpp | ||