mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 17:37:30 +09:00
Issue #1971 - Part 2: Update ICU source to 63.2.
This commit is contained in:
parent
8df84683be
commit
1e69214382
3160 changed files with 275815 additions and 234203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
||||
// © 2016 and later: Unicode, Inc. and others.
|
||||
// License & terms of use: http://www.unicode.org/copyright.html
|
||||
/*
|
||||
******************************************************************************
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
#include "unicode/uobject.h"
|
||||
#include "unicode/ucol.h"
|
||||
#include "unicode/normlzr.h"
|
||||
#include "unicode/unorm.h"
|
||||
#include "unicode/locid.h"
|
||||
#include "unicode/uniset.h"
|
||||
#include "unicode/umisc.h"
|
||||
|
|
@ -158,7 +158,7 @@ class CollationKey;
|
|||
* @see CollationKey
|
||||
* @see CollationElementIterator
|
||||
* @see Locale
|
||||
* @see Normalizer
|
||||
* @see Normalizer2
|
||||
* @version 2.0 11/15/01
|
||||
*/
|
||||
|
||||
|
|
@ -235,16 +235,16 @@ public:
|
|||
* Returns TRUE if "other" is the same as "this".
|
||||
*
|
||||
* The base class implementation returns TRUE if "other" has the same type/class as "this":
|
||||
* <code>typeid(*this) == typeid(other)</code>.
|
||||
* `typeid(*this) == typeid(other)`.
|
||||
*
|
||||
* Subclass implementations should do something like the following:
|
||||
* <pre>
|
||||
* if (this == &other) { return TRUE; }
|
||||
* if (!Collator::operator==(other)) { return FALSE; } // not the same class
|
||||
*
|
||||
* const MyCollator &o = (const MyCollator&)other;
|
||||
* (compare this vs. o's subclass fields)
|
||||
* </pre>
|
||||
* if (this == &other) { return TRUE; }
|
||||
* if (!Collator::operator==(other)) { return FALSE; } // not the same class
|
||||
*
|
||||
* const MyCollator &o = (const MyCollator&)other;
|
||||
* (compare this vs. o's subclass fields)
|
||||
*
|
||||
* @param other Collator object to be compared
|
||||
* @return TRUE if other is the same as this.
|
||||
* @stable ICU 2.0
|
||||
|
|
@ -393,8 +393,8 @@ public:
|
|||
* is less than, greater than or equal to another string array.
|
||||
* <p>Example of use:
|
||||
* <pre>
|
||||
* . UChar ABC[] = {0x41, 0x42, 0x43, 0}; // = "ABC"
|
||||
* . UChar abc[] = {0x61, 0x62, 0x63, 0}; // = "abc"
|
||||
* . char16_t ABC[] = {0x41, 0x42, 0x43, 0}; // = "ABC"
|
||||
* . char16_t abc[] = {0x61, 0x62, 0x63, 0}; // = "abc"
|
||||
* . UErrorCode status = U_ZERO_ERROR;
|
||||
* . Collator *myCollation =
|
||||
* . Collator::createInstance(Locale::getUS(), status);
|
||||
|
|
@ -420,8 +420,8 @@ public:
|
|||
* target
|
||||
* @deprecated ICU 2.6 use the overload with UErrorCode &
|
||||
*/
|
||||
virtual EComparisonResult compare(const UChar* source, int32_t sourceLength,
|
||||
const UChar* target, int32_t targetLength)
|
||||
virtual EComparisonResult compare(const char16_t* source, int32_t sourceLength,
|
||||
const char16_t* target, int32_t targetLength)
|
||||
const;
|
||||
|
||||
/**
|
||||
|
|
@ -440,8 +440,8 @@ public:
|
|||
* than target
|
||||
* @stable ICU 2.6
|
||||
*/
|
||||
virtual UCollationResult compare(const UChar* source, int32_t sourceLength,
|
||||
const UChar* target, int32_t targetLength,
|
||||
virtual UCollationResult compare(const char16_t* source, int32_t sourceLength,
|
||||
const char16_t* target, int32_t targetLength,
|
||||
UErrorCode &status) const = 0;
|
||||
|
||||
/**
|
||||
|
|
@ -517,7 +517,7 @@ public:
|
|||
* @see CollationKey#compare
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
virtual CollationKey& getCollationKey(const UChar*source,
|
||||
virtual CollationKey& getCollationKey(const char16_t*source,
|
||||
int32_t sourceLength,
|
||||
CollationKey& key,
|
||||
UErrorCode& status) const = 0;
|
||||
|
|
@ -672,7 +672,7 @@ public:
|
|||
UErrorCode& status);
|
||||
|
||||
/**
|
||||
* Get name of the object for the desired Locale, in the desired langauge
|
||||
* Get name of the object for the desired Locale, in the desired language
|
||||
* @param objectLocale must be from getAvailableLocales
|
||||
* @param displayLocale specifies the desired locale for output
|
||||
* @param name the fill-in parameter of the return value
|
||||
|
|
@ -685,7 +685,7 @@ public:
|
|||
UnicodeString& name);
|
||||
|
||||
/**
|
||||
* Get name of the object for the desired Locale, in the langauge of the
|
||||
* Get name of the object for the desired Locale, in the language of the
|
||||
* default locale.
|
||||
* @param objectLocale must be from getAvailableLocales
|
||||
* @param name the fill-in parameter of the return value
|
||||
|
|
@ -911,7 +911,7 @@ public:
|
|||
* the top of one of the supported reordering groups,
|
||||
* and it must not be beyond the last of those groups.
|
||||
* See setMaxVariable().
|
||||
* @param varTop one or more (if contraction) UChars to which the variable top should be set
|
||||
* @param varTop one or more (if contraction) char16_ts to which the variable top should be set
|
||||
* @param len length of variable top string. If -1 it is considered to be zero terminated.
|
||||
* @param status error code. If error code is set, the return value is undefined. Errors set by this function are: <br>
|
||||
* U_CE_NOT_FOUND_ERROR if more than one character was passed and there is no such contraction<br>
|
||||
|
|
@ -920,7 +920,7 @@ public:
|
|||
* @return variable top primary weight
|
||||
* @deprecated ICU 53 Call setMaxVariable() instead.
|
||||
*/
|
||||
virtual uint32_t setVariableTop(const UChar *varTop, int32_t len, UErrorCode &status) = 0;
|
||||
virtual uint32_t setVariableTop(const char16_t *varTop, int32_t len, UErrorCode &status) = 0;
|
||||
|
||||
/**
|
||||
* Sets the variable top to the primary weight of the specified string.
|
||||
|
|
@ -929,7 +929,7 @@ public:
|
|||
* the top of one of the supported reordering groups,
|
||||
* and it must not be beyond the last of those groups.
|
||||
* See setMaxVariable().
|
||||
* @param varTop a UnicodeString size 1 or more (if contraction) of UChars to which the variable top should be set
|
||||
* @param varTop a UnicodeString size 1 or more (if contraction) of char16_ts to which the variable top should be set
|
||||
* @param status error code. If error code is set, the return value is undefined. Errors set by this function are: <br>
|
||||
* U_CE_NOT_FOUND_ERROR if more than one character was passed and there is no such contraction<br>
|
||||
* U_ILLEGAL_ARGUMENT_ERROR if the variable top is beyond
|
||||
|
|
@ -1002,7 +1002,7 @@ public:
|
|||
int32_t resultLength) const = 0;
|
||||
|
||||
/**
|
||||
* Get the sort key as an array of bytes from a UChar buffer.
|
||||
* Get the sort key as an array of bytes from a char16_t buffer.
|
||||
* Sort key byte arrays are zero-terminated and can be compared using
|
||||
* strcmp().
|
||||
*
|
||||
|
|
@ -1020,7 +1020,7 @@ public:
|
|||
* @return Number of bytes needed for storing the sort key
|
||||
* @stable ICU 2.2
|
||||
*/
|
||||
virtual int32_t getSortKey(const UChar*source, int32_t sourceLength,
|
||||
virtual int32_t getSortKey(const char16_t*source, int32_t sourceLength,
|
||||
uint8_t*result, int32_t resultLength) const = 0;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue