diff options
| author | 2009-12-08 13:41:38 -0800 | |
|---|---|---|
| committer | 2009-12-08 13:41:38 -0800 | |
| commit | eb318fd88d16053010da554ba565eaaf3355a58e (patch) | |
| tree | d7c8601e2d6b708be77335c0a1b151893008b2c0 /include/utils/String16.h | |
| parent | ea3ec40a5da415c07569f4c35c516da5e1e8d23e (diff) | |
| parent | 92f5984d2c2cd73b6b9f68c02c147877d1e2fc46 (diff) | |
Merge change I129483f8 into eclair-mr2
* changes:
Optional use of UTF-8 strings in resource bundles
Diffstat (limited to 'include/utils/String16.h')
| -rw-r--r-- | include/utils/String16.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/utils/String16.h b/include/utils/String16.h index a2d22eea9a..07a0c1188e 100644 --- a/include/utils/String16.h +++ b/include/utils/String16.h @@ -49,12 +49,17 @@ int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2); // Version of strzcmp16 for comparing strings in different endianness. int strzcmp16_h_n(const char16_t *s1H, size_t n1, const char16_t *s2N, size_t n2); +// Convert UTF-8 to UTF-16 including surrogate pairs +void utf8_to_utf16(const uint8_t *src, size_t srcLen, char16_t* dst, const size_t dstLen); + } // --------------------------------------------------------------------------- namespace android { +// --------------------------------------------------------------------------- + class String8; class TextOutput; |