From 300ba6846949f5b21c6d93d7698dbc39716cf832 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Tue, 9 Nov 2010 14:37:23 -0800 Subject: 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 --- libs/rs/rsFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/rs') 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) { -- cgit v1.1