ICU-12992 revert new C++ API (CaseMap) to raw pointers

X-SVN-Rev: 39746
This commit is contained in:
Markus Scherer 2017-03-08 21:07:27 +00:00
parent a8bc4d7682
commit 14dbfd1d16
4 changed files with 16 additions and 16 deletions

View 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:

View 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) {

View 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

View 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