+1
−0
+1
−0
tools/aapt2/util/Utf8Iterator.cpp
0 → 100644
+60
−0
tools/aapt2/util/Utf8Iterator.h
0 → 100644
+47
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Iterating over a UTF-8 string by codepoints ensures that unicode characters do not get sliced. Otherwise the resulting string could contain malformed characters. Bug: 62839202 Test: make aapt2_tests Change-Id: Ia0c44fbceb7dcfa11e77a1a77011da0f5466e342