mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +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. |
||
|---|---|---|
| .. | ||
| juce_Base64.cpp | ||
| juce_Base64.h | ||
| juce_CharacterFunctions.cpp | ||
| juce_CharacterFunctions.h | ||
| juce_CharPointer_ASCII.h | ||
| juce_CharPointer_UTF8.h | ||
| juce_CharPointer_UTF8_test.cpp | ||
| juce_CharPointer_UTF16.h | ||
| juce_CharPointer_UTF16_test.cpp | ||
| juce_CharPointer_UTF32.h | ||
| juce_CharPointer_UTF32_test.cpp | ||
| juce_Identifier.cpp | ||
| juce_Identifier.h | ||
| juce_LocalisedStrings.cpp | ||
| juce_LocalisedStrings.h | ||
| juce_NewLine.h | ||
| juce_String.cpp | ||
| juce_String.h | ||
| juce_StringArray.cpp | ||
| juce_StringArray.h | ||
| juce_StringPairArray.cpp | ||
| juce_StringPairArray.h | ||
| juce_StringPool.cpp | ||
| juce_StringPool.h | ||
| juce_StringRef.h | ||
| juce_TextDiff.cpp | ||
| juce_TextDiff.h | ||