mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-3944 Use UTF-8 syntax for UTF-8 char * strings.
X-SVN-Rev: 18114
This commit is contained in:
parent
2819d34c31
commit
2a7c8d0426
2 changed files with 3 additions and 3 deletions
|
@ -635,7 +635,7 @@ static void TestBreakIteratorStatusVec() {
|
|||
* Test that ubrk_setUText() is present and works for a simple case.
|
||||
*/
|
||||
static void TestBreakIteratorUText(void) {
|
||||
const char *UTF8Str = "A\xc3\x85Z ARing"; /* c3 85 is utf-8 for A with a ring on top */
|
||||
const char *UTF8Str = "\x41\xc3\x85\x5A\x20\x41\x52\x69\x6E\x67"; /* c3 85 is utf-8 for A with a ring on top */
|
||||
/* 0 1 2 34567890 */
|
||||
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
|
|
|
@ -297,8 +297,8 @@ void RBBIAPITest::TestGetSetAdoptText()
|
|||
//
|
||||
// Quick test to see if UText is working at all.
|
||||
//
|
||||
const char *s1 = "hello world";
|
||||
const char *s2 = "see ya";
|
||||
const char *s1 = "\x68\x65\x6C\x6C\x6F\x20\x77\x6F\x72\x6C\x64"; /* "hello world" in UTF-8 */
|
||||
const char *s2 = "\x73\x65\x65\x20\x79\x61"; /* "see ya" in UTF-8 */
|
||||
// 012345678901
|
||||
|
||||
status = U_ZERO_ERROR;
|
||||
|
|
Loading…
Add table
Reference in a new issue