From 215ca37e4b47e58d3e3f886938ebdc64d7ac485b Mon Sep 17 00:00:00 2001 From: gnrunge Date: Tue, 15 Sep 2020 11:38:20 -0700 Subject: [PATCH] ICU-21249 Adds #if !UCONFIG_NO_BREAK_ITERATOR to prevent compilation error (toTitle() not found) when this configuration flag is set. --- icu4c/source/test/intltest/strcase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icu4c/source/test/intltest/strcase.cpp b/icu4c/source/test/intltest/strcase.cpp index ea26bcad6ca..4154558e5c0 100644 --- a/icu4c/source/test/intltest/strcase.cpp +++ b/icu4c/source/test/intltest/strcase.cpp @@ -829,10 +829,11 @@ void StringCaseTest::TestArmenian() { assertEquals("upper root", u"ԵՒ ԵՐԵՒԱՆԻ", UnicodeString(s).toUpper(root)); assertEquals("upper hy", u"ԵՎ ԵՐԵՎԱՆԻ", UnicodeString(s).toUpper(hy)); assertEquals("upper hyw", u"ԵՒ ԵՐԵՒԱՆԻ", UnicodeString(s).toUpper(hyw)); - +#if !UCONFIG_NO_BREAK_ITERATION assertEquals("title root", u"Եւ Երևանի", UnicodeString(s).toTitle(nullptr, root)); assertEquals("title hy", u"Եվ Երևանի", UnicodeString(s).toTitle(nullptr, hy)); assertEquals("title hyw", u"Եւ Երևանի", UnicodeString(s).toTitle(nullptr, hyw)); +#endif } void