]> granicus.if.org Git - icu/commitdiff
ICU-21249 Adds #if !UCONFIG_NO_BREAK_ITERATOR to prevent compilation
authorgnrunge <nrunge@google.com>
Tue, 15 Sep 2020 18:38:20 +0000 (11:38 -0700)
committerNorbert Runge <41129501+gnrunge@users.noreply.github.com>
Wed, 16 Sep 2020 16:18:40 +0000 (09:18 -0700)
error (toTitle() not found) when this configuration flag is set.

icu4c/source/test/intltest/strcase.cpp

index ea26bcad6cac92b85d120bfc1f1fc94332a033a3..4154558e5c09198d5a1229f9e0191dba8dd362d2 100644 (file)
@@ -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