]> granicus.if.org Git - icu/commitdiff
ICU-12992 revert new C++ API (CaseMap) to raw pointers
authorMarkus Scherer <markus.icu@gmail.com>
Wed, 8 Mar 2017 21:07:27 +0000 (21:07 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Wed, 8 Mar 2017 21:07:27 +0000 (21:07 +0000)
X-SVN-Rev: 39746

icu4c/source/common/unicode/casemap.h
icu4c/source/common/ustr_titlecase_brkiter.cpp
icu4c/source/common/ustrcase.cpp
icu4c/source/common/ustrcase_locale.cpp

index 8401867b8abb609700e84320245b4cb7a41dae0f..e0e4aafcf90c278b5be7e9c1cc564156bf00f807 100644 (file)
@@ -60,8 +60,8 @@ public:
      */
      static int32_t toLower(
             const char *locale, uint32_t options,
-            ConstChar16Ptr src, int32_t srcLength,
-            Char16Ptr dest, int32_t destCapacity, Edits *edits,
+            const char16_t *src, int32_t srcLength,
+            char16_t *dest, int32_t destCapacity, Edits *edits,
             UErrorCode &errorCode);
 
     /**
@@ -94,8 +94,8 @@ public:
      */
     static int32_t toUpper(
             const char *locale, uint32_t options,
-            ConstChar16Ptr src, int32_t srcLength,
-            Char16Ptr dest, int32_t destCapacity, Edits *edits,
+            const char16_t *src, int32_t srcLength,
+            char16_t *dest, int32_t destCapacity, Edits *edits,
             UErrorCode &errorCode);
 
 #if !UCONFIG_NO_BREAK_ITERATION
@@ -141,8 +141,8 @@ public:
      */
     static int32_t toTitle(
             const char *locale, uint32_t options, BreakIterator *iter,
-            ConstChar16Ptr src, int32_t srcLength,
-            Char16Ptr dest, int32_t destCapacity, Edits *edits,
+            const char16_t *src, int32_t srcLength,
+            char16_t *dest, int32_t destCapacity, Edits *edits,
             UErrorCode &errorCode);
 
 #endif  // UCONFIG_NO_BREAK_ITERATION
@@ -181,8 +181,8 @@ public:
      */
     static int32_t fold(
             uint32_t options,
-            ConstChar16Ptr src, int32_t srcLength,
-            Char16Ptr dest, int32_t destCapacity, Edits *edits,
+            const char16_t *src, int32_t srcLength,
+            char16_t *dest, int32_t destCapacity, Edits *edits,
             UErrorCode &errorCode);
 
 private:
index ac46bc9359f4e9ed09e813499a98225fe0398435..0b2ba02064b3249c72783411d6ad3d064b45513d 100644 (file)
@@ -66,8 +66,8 @@ U_NAMESPACE_BEGIN
 
 int32_t CaseMap::toTitle(
         const char *locale, uint32_t options, BreakIterator *iter,
-        ConstChar16Ptr src, int32_t srcLength,
-        Char16Ptr dest, int32_t destCapacity, Edits *edits,
+        const UChar *src, int32_t srcLength,
+        UChar *dest, int32_t destCapacity, Edits *edits,
         UErrorCode &errorCode) {
     LocalPointer<BreakIterator> ownedIter;
     if(iter==NULL) {
index d0bdd1511aba52dd112740dc028739ee81f95019..0e38a42e1032c78afc44a94e2ea57f68d1d3678c 100644 (file)
@@ -1198,8 +1198,8 @@ U_NAMESPACE_BEGIN
 
 int32_t CaseMap::fold(
         uint32_t options,
-        ConstChar16Ptr src, int32_t srcLength,
-        Char16Ptr dest, int32_t destCapacity, Edits *edits,
+        const UChar *src, int32_t srcLength,
+        UChar *dest, int32_t destCapacity, Edits *edits,
         UErrorCode &errorCode) {
     return ustrcase_map(
         UCASE_LOC_ROOT, options, UCASEMAP_BREAK_ITERATOR_NULL
index 0c6d095d367558bca0fea894102d0fbda98eab75..2ecd24f03ec02ef43607187c4da5be9b7d4bd416 100644 (file)
@@ -69,8 +69,8 @@ U_NAMESPACE_BEGIN
 
 int32_t CaseMap::toLower(
         const char *locale, uint32_t options,
-        ConstChar16Ptr src, int32_t srcLength,
-        Char16Ptr dest, int32_t destCapacity, Edits *edits,
+        const UChar *src, int32_t srcLength,
+        UChar *dest, int32_t destCapacity, Edits *edits,
         UErrorCode &errorCode) {
     return ustrcase_map(
         ustrcase_getCaseLocale(locale), options, UCASEMAP_BREAK_ITERATOR_NULL
@@ -81,8 +81,8 @@ int32_t CaseMap::toLower(
 
 int32_t CaseMap::toUpper(
         const char *locale, uint32_t options,
-        ConstChar16Ptr src, int32_t srcLength,
-        Char16Ptr dest, int32_t destCapacity, Edits *edits,
+        const UChar *src, int32_t srcLength,
+        UChar *dest, int32_t destCapacity, Edits *edits,
         UErrorCode &errorCode) {
     return ustrcase_map(
         ustrcase_getCaseLocale(locale), options, UCASEMAP_BREAK_ITERATOR_NULL