summaryrefslogtreecommitdiffstats
path: root/libs/rs
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-11-09 14:37:23 -0800
committerKenny Root <kroot@google.com>2010-11-12 15:53:40 -0800
commit300ba6846949f5b21c6d93d7698dbc39716cf832 (patch)
treef00aed47d06332a09aa6909a6605b0743661c981 /libs/rs
parentd781089731127bd9199d47f53b170895868b8750 (diff)
downloadframeworks_base-300ba6846949f5b21c6d93d7698dbc39716cf832.zip
frameworks_base-300ba6846949f5b21c6d93d7698dbc39716cf832.tar.gz
frameworks_base-300ba6846949f5b21c6d93d7698dbc39716cf832.tar.bz2
Split UTF functions from String8/16
Split out all the UTF-8/16/32 handling code from String8/16 to its own file to allow better reuse of code. Change-Id: If9ce63920edc75472c38da4adce0d13cda9ad2f7
Diffstat (limited to 'libs/rs')
-rw-r--r--libs/rs/rsFont.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rs/rsFont.cpp b/libs/rs/rsFont.cpp
index 33b0f51..96e350d 100644
--- a/libs/rs/rsFont.cpp
+++ b/libs/rs/rsFont.cpp
@@ -174,7 +174,7 @@ void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y,
while (glyphsLeft > 0) {
- int32_t utfChar = utf32_at(text, len, index, &nextIndex);
+ int32_t utfChar = utf32_from_utf8_at(text, len, index, &nextIndex);
// Reached the end of the string or encountered
if (utfChar < 0) {