ICU-21555 fix typos for D, E and F found in the repo

See #1714
This commit is contained in:
Erik Torres 2021-05-10 16:49:16 +00:00
parent 2a72af07ac
commit cfefa03539
85 changed files with 117 additions and 117 deletions

View file

@ -255,7 +255,7 @@ public class TestMessageFormat{
sb = mf.format(objectsToFormat, sb, fp);
System.out.println(sb.toString());
}catch(IllegalArgumentException e){
System.out.println("Exception during formating of type :" +e);
System.out.println("Exception during formatting of type :" +e);
}
}

View file

@ -62,7 +62,7 @@ public:
* A Map of plural categories to values. It maintains ownership of the
* values.
*
* Type T is the value type. T must provide the followng:
* Type T is the value type. T must provide the following:
* 1) Default constructor
* 2) Copy constructor
* 3) Assignment operator

View file

@ -94,7 +94,7 @@ public:
* position.
* @param text the text to be iterated
* @param sym the symbol table, or null if there is none. If sym is null,
* then variables will not be deferenced, even if the PARSE_VARIABLES
* then variables will not be dereferenced, even if the PARSE_VARIABLES
* option is set.
* @param pos upon input, the index of the next character to return. If a
* variable has been dereferenced, then pos will <em>not</em> increment as

View file

@ -527,7 +527,7 @@ _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){
ucnv_loadSharedData("ksc_5601", &stackPieces, &stackArgs, errorCode);
}
/* set the function pointers to appropriate funtions */
/* set the function pointers to appropriate functions */
cnv->sharedData=(UConverterSharedData*)(&_ISO2022JPData);
uprv_strcpy(myConverterData->locale,"ja");
@ -578,7 +578,7 @@ _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){
setInitialStateToUnicodeKR(cnv, myConverterData);
setInitialStateFromUnicodeKR(cnv, myConverterData);
/* set the function pointers to appropriate funtions */
/* set the function pointers to appropriate functions */
cnv->sharedData=(UConverterSharedData*)&_ISO2022KRData;
uprv_strcpy(myConverterData->locale,"ko");
}
@ -605,7 +605,7 @@ _ISO2022Open(UConverter *cnv, UConverterLoadArgs *pArgs, UErrorCode *errorCode){
ucnv_loadSharedData("cns-11643-1992", &stackPieces, &stackArgs, errorCode);
/* set the function pointers to appropriate funtions */
/* set the function pointers to appropriate functions */
cnv->sharedData=(UConverterSharedData*)&_ISO2022CNData;
uprv_strcpy(myConverterData->locale,"cn");

View file

@ -149,7 +149,7 @@ Next, you will notice that the list of group bytes has some gaps.
These are used in various ways.
We reserve a few special single byte values for common control
characters. These are in the same place as their ANSI eqivalents for speed.
characters. These are in the same place as their ANSI equivalents for speed.
*/
#define ULMBCS_HT 0x09 /* Fixed control char - Horizontal Tab */

View file

@ -1164,7 +1164,7 @@ static const uint16_t lookupTable[][2]={
* Post context
* i) ATR : Attribute code is used to declare the font and script switching.
* Currently we only switch scripts and font codes consumed without generating an error
* ii) EXT : Extention code is used to declare switching to Sanskrit and for obscure,
* ii) EXT : Extension code is used to declare switching to Sanskrit and for obscure,
* obsolete characters
* Pre context
* i) Halant: if preceeded by a halant then it is a explicit halant

View file

@ -1612,7 +1612,7 @@ _appendLDMLExtensionAsKeywords(const char* ldmlext, ExtensionListEntry** appendT
}
if (pKwds) {
const char *pBcpKey = NULL; /* u extenstion key subtag */
const char *pBcpKey = NULL; /* u extension key subtag */
const char *pBcpType = NULL; /* beginning of u extension type subtag(s) */
int32_t bcpKeyLen = 0;
int32_t bcpTypeLen = 0;

View file

@ -93,7 +93,7 @@ public:
*
* <p>Concrete subclasses of UnicodeFunctor should use the macro
* UOBJECT_DEFINE_RTTI_IMPLEMENTATION from uobject.h to
* provide definitios getStaticClassID and getDynamicClassID.
* provide definitions getStaticClassID and getDynamicClassID.
*
* @return The class ID for this object. All objects of a given
* class have the same class ID. Objects of other classes have

View file

@ -293,8 +293,8 @@ class U_COMMON_API UnifiedCache : public UnifiedCacheBase {
void flush() const;
/**
* Configures at what point evcition of unused entries will begin.
* Eviction is triggered whenever the number of evictable keys exeeds
* Configures at what point eviction of unused entries will begin.
* Eviction is triggered whenever the number of evictable keys exceeds
* BOTH count AND (number of in-use items) * (percentageOfInUseItems / 100).
* Once the number of unused entries drops below one of these,
* eviction ceases. Because eviction happens incrementally,
@ -315,7 +315,7 @@ class U_COMMON_API UnifiedCache : public UnifiedCacheBase {
* settings.
*
* If a client already holds references to many different unique values
* in the cache such that the number of those unique values far exeeds
* in the cache such that the number of those unique values far exceeds
* "count" then the cache may not be able to maintain this maximum.
* However, if this happens, the cache still guarantees that the number of
* unused entries will remain only a small percentage of the total cache

View file

@ -106,7 +106,7 @@ _strToWCS(wchar_t *dest,
if(*pErrorCode==U_BUFFER_OVERFLOW_ERROR){
tempBuf = saveBuf;
/* we dont have enough room on the stack grow the buffer */
/* we don't have enough room on the stack grow the buffer */
int32_t newCapacity = 2 * srcLength;
if(newCapacity <= tempBufCapacity) {
newCapacity = _BUFFER_CAPACITY_MULTIPLIER * tempBufCapacity;
@ -132,7 +132,7 @@ _strToWCS(wchar_t *dest,
/* done with conversion null terminate the char buffer */
if(count>=tempBufCapacity){
tempBuf = saveBuf;
/* we dont have enough room on the stack grow the buffer */
/* we don't have enough room on the stack grow the buffer */
if(!u_growAnyBufferFromStatic(stackBuffer,(void**) &tempBuf, &tempBufCapacity,
count+1, count, 1)) {
goto cleanup;
@ -334,7 +334,7 @@ _strFromWCS( UChar *dest,
}else{
/* here the source is not null terminated
* so it may have nulls embeded and we need to
* so it may have nulls embedded and we need to
* do some extra processing
*/
int32_t remaining =cStackCap;

View file

@ -1046,7 +1046,7 @@ utf8TextAccess(UText *ut, int64_t index, UBool forward) {
//
// Dispatch to the appropriate action for a
// Backwards Diretion iteration request.
// Backwards Direction iteration request.
//
if (ix==ut->chunkNativeStart) {
// Check for normal sequential iteration cases first.

View file

@ -539,7 +539,7 @@ void UVector::sorti(UErrorCode &ec) {
* required by uprv_sortArray(). This is handled by passing the
* the UVector sort function pointer via the context pointer to a
* sortArray() comparator function, which can then call back to
* the original user functtion.
* the original user function.
*
* An additional twist is that it's not safe to pass a pointer-to-function
* as a (void *) data pointer, so instead we pass a (data) pointer to a

View file

@ -604,7 +604,7 @@ UnicodeString& U_EXPORT2 Collator::getDisplayName(const Locale& objectLocale,
/**
* Default constructor.
* Constructor is different from the old default Collator constructor.
* The task for determing the default collation strength and normalization mode
* The task for determining the default collation strength and normalization mode
* is left to the child class.
*/
Collator::Collator()

View file

@ -3831,7 +3831,7 @@ static void decToString(const decNumber *dn, char *string, Flag eng) {
/* */
/* Addition, especially x=x+1, is speed-critical. */
/* The static buffer is larger than might be expected to allow for */
/* calls from higher-level funtions (notable exp). */
/* calls from higher-level functions (notable exp). */
/* ------------------------------------------------------------------ */
static decNumber * decAddOp(decNumber *res, const decNumber *lhs,
const decNumber *rhs, decContext *set,
@ -4247,7 +4247,7 @@ static decNumber * decAddOp(decNumber *res, const decNumber *lhs,
/* long subtractions. These are acc and var1 respectively. */
/* var1 is a copy of the lhs coefficient, var2 is the rhs coefficient.*/
/* The static buffers may be larger than might be expected to allow */
/* for calls from higher-level funtions (notable exp). */
/* for calls from higher-level functions (notable exp). */
/* ------------------------------------------------------------------ */
static decNumber * decDivideOp(decNumber *res,
const decNumber *lhs, const decNumber *rhs,

View file

@ -86,7 +86,7 @@ class ClockMath {
* 0 <= remainder < divisor.
*
* Works around edge-case bugs. Handles pathological input
* (divident >> divisor) reasonably.
* (dividend >> divisor) reasonably.
*
* Calling with a divisor <= 0 is disallowed.
*/

View file

@ -208,7 +208,7 @@ int32_t IndianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UB
//month is 0 based; converting it to 1-based
int32_t imonth;
// If the month is out of range, adjust it into range, and adjust the extended eyar accordingly
// If the month is out of range, adjust it into range, and adjust the extended year accordingly
if (month < 0 || month > 11) {
eyear += (int32_t)ClockMath::floorDivide(month, 12, month);
}

View file

@ -115,7 +115,7 @@ NFRule::makeRules(UnicodeString& description,
// we know we're making at least one rule, so go ahead and
// new it up and initialize its basevalue and divisor
// (this also strips the rule descriptor, if any, off the
// descripton string)
// description string)
NFRule* rule1 = new NFRule(rbnf, description, status);
/* test for NULL */
if (rule1 == 0) {

View file

@ -1501,7 +1501,7 @@ RuleBasedNumberFormat::init(const UnicodeString& rules, LocalizationInfo* locali
}
// start by stripping the trailing whitespace from all the rules
// (this is all the whitespace follwing each semicolon in the
// (this is all the whitespace following each semicolon in the
// description). This allows us to look for rule-set boundaries
// by searching for ";%" without having to worry about whitespace
// between the ; and the %

View file

@ -228,7 +228,7 @@ private:
// in this string while being scanned.
};
// Constant values to be pushed onto fSetOpStack while scanning & evalueating [set expressions]
// Constant values to be pushed onto fSetOpStack while scanning & evaluating [set expressions]
// The high 16 bits are the operator precedence, and the low 16 are a code for the operation itself.
enum SetOperations {

View file

@ -585,7 +585,7 @@ SimpleTimeZone::compareToRule(int8_t month, int8_t monthLen, int8_t prevMonthLen
dayOfWeek = (int8_t)(1 + (dayOfWeek % 7)); // dayOfWeek is one-based
if (dayOfMonth > monthLen) {
dayOfMonth = 1;
/* When incrementing the month, it is desirible to overflow
/* When incrementing the month, it is desirable to overflow
* from DECEMBER to DECEMBER+1, since we use the result to
* compare against a real month. Wraparound of the value
* leads to bug 4173604. */

View file

@ -1691,7 +1691,7 @@ TimeZone::getIDForWindowsID(const UnicodeString& winid, const char* region, Unic
const UChar *tzids = ures_getStringByKey(zones, region, &len, &tmperr); // use tmperr, because
// regional mapping is optional
if (U_SUCCESS(tmperr)) {
// first ID delimited by space is the defasult one
// first ID delimited by space is the default one
const UChar *end = u_strchr(tzids, (UChar)0x20);
if (end == NULL) {
id.setTo(tzids, -1);

View file

@ -34,7 +34,7 @@ U_NAMESPACE_USE
/**
* Verify that fmt is a SimpleDateFormat. Invalid error if not.
* @param fmt the UDateFormat, definitely a DateFormat, maybe something else
* @param status error code, will be set to failure if there is a familure or the fmt is NULL.
* @param status error code, will be set to failure if there is a failure or the fmt is NULL.
*/
static void verifyIsSimpleDateFormat(const UDateFormat* fmt, UErrorCode *status) {
if(U_SUCCESS(*status) &&
@ -1247,7 +1247,7 @@ udat_getContext(const UDateFormat* fmt, UDisplayContextType type, UErrorCode* st
/**
* Verify that fmt is a RelativeDateFormat. Invalid error if not.
* @param fmt the UDateFormat, definitely a DateFormat, maybe something else
* @param status error code, will be set to failure if there is a familure or the fmt is NULL.
* @param status error code, will be set to failure if there is a failure or the fmt is NULL.
*/
static void verifyIsRelativeDateFormat(const UDateFormat* fmt, UErrorCode *status) {
if(U_SUCCESS(*status) &&

View file

@ -68,7 +68,7 @@ u_formatMessage(const char *locale,
{
va_list ap;
int32_t actLen;
//argument checking defered to subsequent method calls
//argument checking deferred to subsequent method calls
// start vararg processing
va_start(ap, status);
@ -89,7 +89,7 @@ u_vformatMessage( const char *locale,
UErrorCode *status)
{
//argument checking defered to subsequent method calls
//argument checking deferred to subsequent method calls
UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status);
int32_t retVal = umsg_vformat(fmt,result,resultLength,ap,status);
umsg_close(fmt);
@ -108,7 +108,7 @@ u_formatMessageWithError(const char *locale,
{
va_list ap;
int32_t actLen;
//argument checking defered to subsequent method calls
//argument checking deferred to subsequent method calls
// start vararg processing
va_start(ap, status);
@ -130,7 +130,7 @@ u_vformatMessageWithError( const char *locale,
UErrorCode *status)
{
//argument checking defered to subsequent method calls
//argument checking deferred to subsequent method calls
UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status);
int32_t retVal = umsg_vformat(fmt,result,resultLength,ap,status);
umsg_close(fmt);
@ -152,7 +152,7 @@ u_parseMessage( const char *locale,
...)
{
va_list ap;
//argument checking defered to subsequent method calls
//argument checking deferred to subsequent method calls
// start vararg processing
va_start(ap, status);
@ -171,7 +171,7 @@ u_vparseMessage(const char *locale,
va_list ap,
UErrorCode *status)
{
//argument checking defered to subsequent method calls
//argument checking deferred to subsequent method calls
UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status);
int32_t count = 0;
umsg_vparse(fmt,source,sourceLength,&count,ap,status);
@ -190,7 +190,7 @@ u_parseMessageWithError(const char *locale,
{
va_list ap;
//argument checking defered to subsequent method calls
//argument checking deferred to subsequent method calls
// start vararg processing
va_start(ap, status);
@ -209,7 +209,7 @@ u_vparseMessageWithError(const char *locale,
UParseError *error,
UErrorCode* status)
{
//argument checking defered to subsequent method calls
//argument checking deferred to subsequent method calls
UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,error,status);
int32_t count = 0;
umsg_vparse(fmt,source,sourceLength,&count,ap,status);
@ -369,8 +369,8 @@ umsg_format( const UMessageFormat *fmt,
{
va_list ap;
int32_t actLen;
//argument checking defered to last method call umsg_vformat which
//saves time when arguments are valid and we dont care when arguments are not
//argument checking deferred to last method call umsg_vformat which
//saves time when arguments are valid and we don't care when arguments are not
//since we return an error anyway
@ -490,8 +490,8 @@ umsg_parse( const UMessageFormat *fmt,
...)
{
va_list ap;
//argument checking defered to last method call umsg_vparse which
//saves time when arguments are valid and we dont care when arguments are not
//argument checking deferred to last method call umsg_vparse which
//saves time when arguments are valid and we don't care when arguments are not
//since we return an error anyway
// start vararg processing

View file

@ -1094,7 +1094,7 @@ protected:
/**
* Default constructor.
* Constructor is different from the old default Collator constructor.
* The task for determing the default collation strength and normalization
* The task for determining the default collation strength and normalization
* mode is left to the child class.
* @stable ICU 2.0
*/

View file

@ -406,7 +406,7 @@ private:
* and the best match skeleton.
*
* TODO (xji): set field weight or
* isolate the funtionality in DateTimePatternGenerator
* isolate the functionality in DateTimePatternGenerator
* @param skeleton input skeleton
* @param bestMatchDistanceInfo the difference between input skeleton
* and best match skeleton.

View file

@ -16,7 +16,7 @@
* 04/17/97 aliu Changed DigitCount to int per code review.
* 07/20/98 stephen JDK 1.2 sync up. Added scientific support.
* Changed naming conventions to match C++ guidelines
* Derecated Java style constants (eg, INTEGER_FIELD)
* Deprecated Java style constants (eg, INTEGER_FIELD)
********************************************************************************
*/

View file

@ -108,7 +108,7 @@ enum URBNFRuleSetTag {
* <p>In these rules, the <em>base value</em> is spelled out explicitly and set off from the
* rule's output text with a colon. The rules are in a sorted list, and a rule is applicable
* to all numbers from its own base value to one less than the next rule's base value. The
* &quot;&gt;&gt;&quot; token is called a <em>substitution</em> and tells the fomatter to
* &quot;&gt;&gt;&quot; token is called a <em>substitution</em> and tells the formatter to
* isolate the number's ones digit, format it using this same set of rules, and place the
* result at the position of the &quot;&gt;&gt;&quot; token. Text in brackets is omitted if
* the number being formatted is an even multiple of 10 (the hyphen is a literal hyphen; 24

View file

@ -756,7 +756,7 @@ public:
* names of the months), but not to provide the pattern.
* <P>
* A numbering system override is a string containing either the name of a known numbering system,
* or a set of field and numbering system pairs that specify which fields are to be formattied with
* or a set of field and numbering system pairs that specify which fields are to be formatted with
* the alternate numbering system. For example, to specify that all numeric fields in the specified
* date or time pattern are to be rendered using Thai digits, simply specify the numbering system override
* as "thai". To specify that just the year portion of the date be formatted using Hebrew numbering,
@ -797,7 +797,7 @@ public:
* names of the months), but not to provide the pattern.
* <P>
* A numbering system override is a string containing either the name of a known numbering system,
* or a set of field and numbering system pairs that specify which fields are to be formattied with
* or a set of field and numbering system pairs that specify which fields are to be formatted with
* the alternate numbering system. For example, to specify that all numeric fields in the specified
* date or time pattern are to be rendered using Thai digits, simply specify the numbering system override
* as "thai". To specify that just the year portion of the date be formatted using Hebrew numbering,

View file

@ -1566,7 +1566,7 @@ udat_getSymbols(const UDateFormat *fmt,
/**
* Count the number of particular symbols for an UDateFormat.
* This function is most useful as for detemining the loop termination condition
* This function is most useful as for determining the loop termination condition
* for calls to {@link #udat_getSymbols }.
* @param fmt The formatter to query.
* @param type The type of symbols to count. One of UDAT_ERAS, UDAT_MONTHS, UDAT_SHORT_MONTHS,

View file

@ -987,7 +987,7 @@ UBool hasAccentsBeforeMatch(const UStringSearch *strsrch, int32_t start,
* Note this is the initial boundary check. If the potential match
* starts or ends with composite characters, the accents in those
* characters will be determined later.
* Not doing backwards iteration here, since discontiguos contraction for
* Not doing backwards iteration here, since discontiguous contraction for
* backwards collation element iterator, use up too many characters.
* E.g. looking for \u030A ring in \u01FA A ring above and acute,
* should fail since there is a acute at the end of \u01FA

View file

@ -479,7 +479,7 @@ static void parseRRULE(const UnicodeString& rrule, int32_t& month, int32_t& dow,
goto rruleParseError;
}
} else if (attr.compare(ICAL_BYMONTHDAY, -1) == 0) {
// Note: BYMONTHDAY may contain multiple days delimitted by comma
// Note: BYMONTHDAY may contain multiple days delimited by comma
//
// A value of BYMONTHDAY could be negative, for example, -1 means
// the last day in a month

View file

@ -377,7 +377,7 @@ public:
* Unicode code points.
*
* @param localeRuns is a pointer to a <code>LocaleRuns</code> object representing locale runs.
* The <code>Locale</code> objects are used to determind the language of the text. If this
* The <code>Locale</code> objects are used to determine the language of the text. If this
* pointer is <code>NULL</code> the default locale will be used for all of the text.
*
* @param paragraphLevel is the directionality of the paragraph, as in the UBiDi object.

View file

@ -77,7 +77,7 @@ typedef void pl_visualRun;
* Unicode code points.
*
* @param localeRuns is a pointer to a <code>pl_localeRuns</code> object representing locale runs.
* The <code>Locale</code> objects are used to determind the language of the text. If this
* The <code>Locale</code> objects are used to determine the language of the text. If this
* pointer is <code>NULL</code> the default locale will be used for all of the text.
*
* @param paragraphLevel is the directionality of the paragraph, as in the UBiDi object.

View file

@ -270,7 +270,7 @@ UErrorCode convsample_03()
What is the best way to determine the buffer size?
The 'buffersize' is in bytes of input.
For a given converter, divinding this by the minimum char size
For a given converter, dividing this by the minimum char size
give you the maximum number of Unicode characters that could be
expected for a given number of input bytes.
see: ucnv_getMinCharSize()

View file

@ -58,7 +58,7 @@ static const UDataInfo dataInfo={
};
/* Excersise: add writing out other data types */
/* Exercise: add writing out other data types */
/* see icu/source/tools/toolutil/unewdata.h */
/* for other possibilities */

View file

@ -1090,7 +1090,7 @@ static void TestDiscontiguos() {
while (ce != UCOL_NULLORDER) {
if (ce != ucol_next(iter, &status) ||
U_FAILURE(status)) {
log_err("Discontiguos contraction test mismatch\n");
log_err("Discontiguous contraction test mismatch\n");
return;
}
ce = ucol_next(resultiter, &status);

View file

@ -82,7 +82,7 @@ static void TestBug672Normalize(void);
*/
static void TestSmallBuffer(void);
/**
* Tests the discontiguos contractions
* Tests the discontiguous contractions
*/
static void TestDiscontiguos(void);
/**

View file

@ -519,7 +519,7 @@ static void TestNewTypes() {
/* if everything is working correctly, the size of this string */
/* should be 7. Everything else is a wrong answer, esp. 3 and 6*/
strcpy(action, "getting and testing of string with embeded zero");
strcpy(action, "getting and testing of string with embedded zero");
res = ures_getByKey(theBundle, "zerotest", res, &status);
CONFIRM_ErrorCode(status, U_ZERO_ERROR);
CONFIRM_INT_EQ(ures_getType(res), URES_STRING);

View file

@ -1239,7 +1239,7 @@ static void Test_UChar_WCHART_API(void){
free(uDest);
/* test with embeded nulls */
/* test with embedded nulls */
uSrc = src16WithNulls;
uSrcLen = sizeof(src16WithNulls)/2;
wDestLen =0;

View file

@ -57,7 +57,7 @@ addUTextTest(TestNode** root)
* This is not intended to be a complete test of the API functionality. That is
* in the C++ intltest program.
* This test is intended to check that everything can be accessed and built in
* a pure C enviornment.
* a pure C environment.
*/

View file

@ -804,11 +804,11 @@ CollationAPITest::TestElemIter(/* char* par */)
coliter->reset();
coliter->setText(*chariter, success);
if(!U_FAILURE(success)){
errln("Expeceted error");
errln("Expected error");
}
iterator1->setText((UnicodeString)"hello there", success);
if(!U_FAILURE(success)){
errln("Expeceted error");
errln("Expected error");
}
delete chariter;

View file

@ -396,7 +396,7 @@ void CharsetDetectionTest::UTF16Test()
conf = ucsdet_getConfidence(match, &status);
if (strcmp(name, "UTF-16LE") != 0) {
errln("Enconding detection failure for UTF-16LE: got %s", name);
errln("Encoding detection failure for UTF-16LE: got %s", name);
return;
}

View file

@ -104,7 +104,7 @@ IntlTestRBNFParse::TestParse() {
// these rules would throw exceptions when formatting, if we could throw exceptions
const char* exceptrules[] = {
"10:", // formatting any value with a one's digit will fail
"11: << x", // formating a multiple of 10 causes rollback rule to fail
"11: << x", // formatting a multiple of 10 causes rollback rule to fail
"%%foo: 0 foo; 10: =%%bar=; %%bar: 0: bar; 10: =%%foo=;",
NULL,

View file

@ -5461,7 +5461,7 @@ void RegexTest::Bug7029() {
}
// Bug 9283
// This test is checking for the existance of any supplemental characters that case-fold
// This test is checking for the existence of any supplemental characters that case-fold
// to a bmp character.
//
// At the time of this writing there are none. If any should appear in a subsequent release

View file

@ -1101,7 +1101,7 @@ NewResourceBundleTest::TestNewTypes() {
/* if everything is working correctly, the size of this string */
/* should be 7. Everything else is a wrong answer, esp. 3 and 6*/
strcpy(action, "getting and testing of string with embeded zero");
strcpy(action, "getting and testing of string with embedded zero");
ResourceBundle res = theBundle.get("zerotest", status);
CONFIRM_UErrorCode(status, U_ZERO_ERROR);
CONFIRM_EQ(res.getType(), URES_STRING);

View file

@ -50,7 +50,7 @@ class TestChoiceFormat: public IntlTest {
double v2, const char* str2,
double v3, const char* str3);
/**
* runs tests in local funtions:
* runs tests in local functions:
**/
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
};

View file

@ -544,57 +544,57 @@ TimeZoneTest::TestGetAvailableIDsNew()
any = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, NULL, ec);
if (U_FAILURE(ec)) {
dataerrln("Failed to create enumration for ANY");
dataerrln("Failed to create enumeration for ANY");
goto cleanup;
}
canonical = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, NULL, NULL, ec);
if (U_FAILURE(ec)) {
errln("Failed to create enumration for CANONICAL");
errln("Failed to create enumeration for CANONICAL");
goto cleanup;
}
canonicalLoc = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, NULL, NULL, ec);
if (U_FAILURE(ec)) {
errln("Failed to create enumration for CANONICALLOC");
errln("Failed to create enumeration for CANONICALLOC");
goto cleanup;
}
any_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", NULL, ec);
if (U_FAILURE(ec)) {
errln("Failed to create enumration for ANY_US");
errln("Failed to create enumeration for ANY_US");
goto cleanup;
}
canonical_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL, "US", NULL, ec);
if (U_FAILURE(ec)) {
errln("Failed to create enumration for CANONICAL_US");
errln("Failed to create enumeration for CANONICAL_US");
goto cleanup;
}
canonicalLoc_US = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, "US", NULL, ec);
if (U_FAILURE(ec)) {
errln("Failed to create enumration for CANONICALLOC_US");
errln("Failed to create enumeration for CANONICALLOC_US");
goto cleanup;
}
rawOffset = (-5)*60*60*1000;
any_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, NULL, &rawOffset, ec);
if (U_FAILURE(ec)) {
errln("Failed to create enumration for ANY_W5");
errln("Failed to create enumeration for ANY_W5");
goto cleanup;
}
any_CA_W5 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "CA", &rawOffset, ec);
if (U_FAILURE(ec)) {
errln("Failed to create enumration for ANY_CA_W5");
errln("Failed to create enumeration for ANY_CA_W5");
goto cleanup;
}
rawOffset = 14*60*60*1000;
any_US_E14 = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, "US", &rawOffset, ec);
if (U_FAILURE(ec)) {
errln("Failed to create enumration for ANY_US_E14");
errln("Failed to create enumeration for ANY_US_E14");
goto cleanup;
}

View file

@ -21,10 +21,10 @@
// options: -v verbose
// -? or -h help
//
// The input rule filew is are plain text files containing confusable character
// The input rule file are plain text files containing confusable character
// definitions in the input format defined by Unicode UAX39 for the files
// confusables.txt. This source (.txt) format
// is also accepted direaccepted by ICU spoof detedtors. The
// is also accepted by ICU spoof detectors. The
// files must be encoded in utf-8 format, with or without a BOM.
//
// The script used to compile confusablesWholeScript.txt into the CFU file

View file

@ -564,7 +564,7 @@ main(int argc,
u_cleanup();
/* Dont return warnings as a failure */
/* Don't return warnings as a failure */
if (U_SUCCESS(status)) {
return 0;
}

View file

@ -15,7 +15,7 @@
* Date Name Description
* 01/11/02 Ram Creation.
* 02/12/08 Spieth Fix errant 'new Object[][]{' insertion
* 02/19/08 Spieth Removed ICUListResourceBundle dependancy
* 02/19/08 Spieth Removed ICUListResourceBundle dependency
*******************************************************************************
*/

View file

@ -36,7 +36,7 @@ typedef struct _CharList
/*
* write CharList 'l' into stream 's' using deliminter 'delim' (delim can be NULL). quoted: -1 remove, 0 as is, 1 add quotes
* write CharList 'l' into stream 's' using delimiter 'delim' (delim can be NULL). quoted: -1 remove, 0 as is, 1 add quotes
*/
const char *pkg_writeCharList(FileStream *s, CharList *l, const char *delim, int32_t quoted);

View file

@ -64,7 +64,7 @@ parseFlagsFile(const char *fileName, char **flagBuffer, int32_t flagBufferSize,
}
if ((int32_t)uprv_strlen(buffer) == (currentBufferSize - 1) && buffer[currentBufferSize-2] != '\n') {
/* Allocate more space for buffer if it didnot read the entrire line */
/* Allocate more space for buffer if it did not read the entire line */
allocateMoreSpace = TRUE;
T_FileStream_rewind(f);
break;

View file

@ -101,7 +101,7 @@ parseState(const char *s, int32_t state[256], uint32_t *pFlags) {
end=start;
}
/* determine the state entrys for this range */
/* determine the state entry for this range */
if(*s!=':' && *s!='.') {
/* the default is: final state with valid entries */
entry=MBCS_ENTRY_FINAL(0, MBCS_STATE_VALID_16, 0);

View file

@ -592,7 +592,7 @@ UXMLParser::replaceCharRefs(UnicodeString &s, UErrorCode &status) {
mAmps.reset(s);
// See the initialization for the regex matcher mAmps.
// Which entity we've matched is determined by which capture group has content,
// which is flaged by start() of that group not being -1.
// which is flagged by start() of that group not being -1.
while (mAmps.find()) {
if (mAmps.start(1, status) != -1) {
replacement.setTo((UChar)x_AMP);

View file

@ -425,7 +425,7 @@
<target name="secure" depends="icu4jJar" description="(Deprecated)Build ICU4J API and test classes for running the ICU4J test suite with Java security manager enabled"/>
<!-- Check to see if JVM_OPTIONS enviroment variable is set. This can be use to set the heap size. -->
<!-- Check to see if JVM_OPTIONS environment variable is set. This can be use to set the heap size. -->
<property name="env.JVM_OPTIONS" value=""/>
<property name="jvm_options" value="${env.JVM_OPTIONS}"/>

View file

@ -455,7 +455,7 @@ public class RbnfSampleRuleSets {
// of 1,000. This prevents us from getting "onze cents cent
// vingt-deux" ("eleven hundred one hundred twenty-two").
+ " 1100>: onze cents[ >>];\n"
// at 1,200, we go back to formating in thousands, so we
// at 1,200, we go back to formatting in thousands, so we
// repeat the rule for 1,000
+ " 1200: mille >>;\n"
// at 2,000, the multiplier is added

View file

@ -141,7 +141,7 @@ public abstract class CharsetDecoderICU extends CharsetDecoder{
*/
@Override
protected final void implOnUnmappableCharacter(CodingErrorAction newAction) {
// dont run infinitely
// don't run infinitely
if (unmappableCharacterCalled)
return;
@ -156,7 +156,7 @@ public abstract class CharsetDecoderICU extends CharsetDecoder{
}
/**
* Sets the callback encoder method and context to be used if an illegal sequence is encounterd.
* Sets the callback encoder method and context to be used if an illegal sequence is encountered.
* You would normally call this twice to set both the malform and unmappable error. In this case,
* newContext should remain the same since using a different newContext each time will negate the last
* one used.

View file

@ -119,7 +119,7 @@ class CharsetHZ extends CharsetICU {
* - If any of the non-initial bytes could be the start of a character,
* we stop the illegal sequence before the first one of those.
*/
isEmptySegment = false; /* different error here, reset this to avoid spurious furture error */
isEmptySegment = false; /* different error here, reset this to avoid spurious future error */
err = CoderResult.malformedForLength(1);
toUBytesArray[0] = UCNV_TILDE;
if (isStateDBCS ? (0x21 <= mySourceChar && mySourceChar <= 0x7e) : mySourceChar <= 0x7f) {

View file

@ -801,7 +801,7 @@ class CharsetISCII extends CharsetICU {
* Post context
* i) ATR : Attribute code is used to declare the font and script switching.
* Currently we only switch scripts and font codes consumed without generating an error
* ii) EXT : Extention code is used to declare switching to Sanskrit and for obscure,
* ii) EXT : Extension code is used to declare switching to Sanskrit and for obscure,
* obsolete characters
* Pre context
* i) Halant: if preceeded by a halant then it is a explicit halant

View file

@ -953,7 +953,7 @@ class CharsetLMBCS extends CharsetICU {
* 2. Look up group in table & try that (could b
* A) Unicode group
* B) control group
* C) national encodeing
* C) national encoding
* or ambiguous SBCS or MBCS group (on to step 4...)
* 3. If its ambiguous, try this order:
* A) The optimization group

View file

@ -5087,7 +5087,7 @@ class CharsetMBCS extends CharsetICU {
}while((++c&0xf) != 0);
} else {
c+=16; /* emplty stage3 block */
c+=16; /* empty stage3 block */
}
}
} else {

View file

@ -210,7 +210,7 @@ class CharsetUTF16 extends CharsetICU {
char trail = (char) (((toUBytesArray[2 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK) << 8) | ((toUBytesArray[3 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK)));
if (!UTF16.isTrailSurrogate(trail)) {
// pretend like we didnt read the last 2 bytes
// pretend like we didn't read the last 2 bytes
toULength = 2;
source.position(source.position() - 2);

View file

@ -62,7 +62,7 @@ public class EraRules {
}
if (isSet(startDates[eraIdx])) {
throw new ICUException(
"Dupulicated era rule for rule key:" + eraIdxStr + " in era rule data for " + calType.getId());
"Duplicated era rule for rule key:" + eraIdxStr + " in era rule data for " + calType.getId());
}
boolean hasName = true;

View file

@ -95,7 +95,7 @@ public class RuleCharacterIterator {
* position.
* @param text the text to be iterated
* @param sym the symbol table, or null if there is none. If sym is null,
* then variables will not be deferenced, even if the PARSE_VARIABLES
* then variables will not be dereferenced, even if the PARSE_VARIABLES
* option is set.
* @param pos upon input, the index of the next character to return. If a
* variable has been dereferenced, then pos will <em>not</em> increment as

View file

@ -462,7 +462,7 @@ public class TimeZoneGenericNames implements Serializable, Freezable<TimeZoneGen
/**
* Private method returning LocaleDisplayNames instance for the locale of this
* instance. Because LocaleDisplayNames is only used for generic
* location formant and partial location format, the LocaleDisplayNames
* location format and partial location format, the LocaleDisplayNames
* is instantiated lazily.
*
* @return the instance of LocaleDisplayNames for the locale of this object.

View file

@ -1069,7 +1069,7 @@ public class DateIntervalInfo implements Cloneable, Freezable<DateIntervalInfo>,
* which has pre-defined interval pattern in resource file.
*
* TODO (xji): set field weight or
* isolate the funtionality in DateTimePatternGenerator
* isolate the functionality in DateTimePatternGenerator
* @param inputSkeleton input skeleton
* @return 0, if there is exact match for input skeleton
* 1, if there is only field width difference between

View file

@ -965,7 +965,7 @@ public class DecimalFormatSymbols implements Cloneable, Serializable {
if (sep.length() == 1) {
this.monetarySeparator = sep.charAt(0);
} else {
// Use default decimap separator character as fallbacl
// Use default decimal separator character as fallback
this.monetarySeparator = DEF_DECIMAL_SEPARATOR;
}
}

View file

@ -1703,7 +1703,7 @@ public final class Normalizer implements Cloneable {
* <li>{@link #NFC} - Unicode canonical decompositiion
* followed by canonical composition.
* <li>{@link #NFKC} - Unicode compatibility decompositiion
* follwed by canonical composition.
* followed by canonical composition.
* <li>{@link #NFD} - Unicode canonical decomposition
* <li>{@link #NFKD} - Unicode compatibility decomposition.
* <li>{@link #NONE} - Do nothing but return characters

View file

@ -248,7 +248,7 @@ public class PluralRules implements Serializable {
* Returns the 'functionally equivalent' locale with respect to plural rules. Calling PluralRules.forLocale with
* the functionally equivalent locale, and with the provided locale, returns rules that behave the same. <br>
* All locales with the same functionally equivalent locale have plural rules that behave the same. This is not
* exaustive; there may be other locales whose plural rules behave the same that do not have the same equivalent
* exhaustive; there may be other locales whose plural rules behave the same that do not have the same equivalent
* locale.
*
* @param locale
@ -2432,7 +2432,7 @@ public class PluralRules implements Serializable {
* locale, and with the provided locale, returns rules that behave the same.
* <br>
* All locales with the same functionally equivalent locale have
* plural rules that behave the same. This is not exaustive;
* plural rules that behave the same. This is not exhaustive;
* there may be other locales whose plural rules behave the same
* that do not have the same equivalent locale.
*

View file

@ -1702,7 +1702,7 @@ public class RuleBasedNumberFormat extends NumberFormat {
initLocalizations(localizations);
// start by stripping the trailing whitespace from all the rules
// (this is all the whitespace follwing each semicolon in the
// (this is all the whitespace following each semicolon in the
// description). This allows us to look for rule-set boundaries
// by searching for ";%" without having to worry about whitespace
// between the ; and the %

View file

@ -263,7 +263,7 @@ abstract class CECalendar extends Calendar {
c4 = floorDivide(julianDay - jdEpochOffset, 1461, r4);
// exteded year
// extended year
fields[0] = 4 * c4 + (r4[0]/365 - r4[0]/1460); // 4 * <number of 4year cycle> + <years within the last cycle>
int doy = (r4[0] == 1460) ? 365 : (r4[0] % 365); // days in present year

View file

@ -703,7 +703,7 @@ public class GregorianCalendar extends Calendar {
//////////////////////
/**
* Return true if the current time for this Calendar is in Daylignt
* Return true if the current time for this Calendar is in Daylight
* Savings Time.
*/
boolean inDaylightTime() {

View file

@ -1058,7 +1058,7 @@ public class VTimeZone extends BasicTimeZone {
*
* or
*
* null on any error cases, for exmaple, FREQ=YEARLY is not available
* null on any error cases, for example, FREQ=YEARLY is not available
*
* When UNTIL attribute is available, the time will be set to until[0],
* otherwise, MIN_TIME

View file

@ -2252,7 +2252,7 @@ public class TestCharset extends TestFmwk {
public void run() {
// commented out since the mehtods on
// Charset API are supposed to be thread
// safe ... to test it we dont sync
// safe ... to test it we don't sync
// synchronized(charset){
while (!interrupted()) {

View file

@ -612,7 +612,7 @@ public class CollationIteratorTest extends TestFmwk {
int ce = resultiter.next();
while (ce != CollationElementIterator.NULLORDER) {
if (ce != iter.next()) {
errln("Discontiguos contraction test mismatch at"
errln("Discontiguous contraction test mismatch at"
+ count);
return;
}

View file

@ -3801,7 +3801,7 @@ public class MeasureUnitTest extends TestFmwk {
assertEquals("Initial joule", "joule", joule.getIdentifier());
// "Invalid prefix" test not needed: in Java we cannot pass a
// non-existant enum instance. (In C++ an int can be typecast.)
// non-existent enum instance. (In C++ an int can be typecast.)
MeasureUnit unit = joule.withPrefix(MeasureUnit.MeasurePrefix.HECTO);
assertEquals("Joule with hecto prefix", "hectojoule", unit.getIdentifier());

View file

@ -1802,7 +1802,7 @@ public class NumberRegressionTests extends TestFmwk {
}
/**
* 4241880: Decimal format doesnt round a double properly when the number is less than 1
* 4241880: Decimal format doesn't round a double properly when the number is less than 1
*/
@Test
public void test4241880() {

View file

@ -69,7 +69,7 @@ public class RBNFParseTest extends TestFmwk {
">>",
">>>",
"10:", // formatting any value with a one's digit will fail
"11: << x", // formating a multiple of 10 causes rollback rule to fail
"11: << x", // formatting a multiple of 10 causes rollback rule to fail
"%%foo: 0 foo; 10: =%%bar=; %%bar: 0: bar; 10: =%%foo=;",
};

View file

@ -1383,7 +1383,7 @@ public class FormatHandler
// of 1,000. This prevents us from getting "onze cents cent
// vingt-deux" ("eleven hundred one hundred twenty-two").
"1100>: onze cents[ >>];\n" +
// at 1,200, we go back to formating in thousands, so we
// at 1,200, we go back to formatting in thousands, so we
// repeat the rule for 1,000
"1200: mille >>;\n" +
// at 2,000, the multiplier is added

View file

@ -934,7 +934,7 @@ public final class XLIFF2ICUConverter {
currentSource.comment = currentTarget.comment = transUnit.getNodeValue();
}else if( type == Node.ELEMENT_NODE){
if(name.equals(BINSOURCE)){
// loop to pickup internal-file/extenal-file element
// loop to pickup internal-file/external-file element
continue;
}else if(name.equals(NOTE)){
// save the note values

View file

@ -23,7 +23,7 @@
with Ant, this is messier than it should be. All we are saying here is:
"Use the property if explicitly set, otherwise use the environment variable."
We cannot just set the property to the environment variable, since expansion
fails for non existant properties, and you are left with a literal value of
fails for non existent properties, and you are left with a literal value of
"${env.CLDR_DIR}". -->
<condition property="cldrDir" value="${env.CLDR_DIR}">
<isset property="env.CLDR_DIR"/>

View file

@ -24,7 +24,7 @@
with Ant, this is messier than it should be. All we are saying here is:
"Use the property if explicitly set, otherwise use the environment variable."
We cannot just set the property to the environment variable, since expansion
fails for non existant properties, and you are left with a literal value of
fails for non existent properties, and you are left with a literal value of
"${env.CLDR_DATA_DIR}". -->
<condition property="cldrDataDir" value="${env.CLDR_DATA_DIR}">
<isset property="env.CLDR_DATA_DIR"/>

View file

@ -302,7 +302,7 @@ public final class PseudoLocales {
// generate list automatically (rather than having a hard coded list in the type) but
// https://unicode.org/reports/tr35/tr35-general.html#ExemplarSyntax
// makes it quite clear that this is infeasible, since there are many equivalent
// representations of the examplar characters that could appear in the value
// representations of the exemplar characters that could appear in the value
// (e.g. "[a b ... z]", "[a-z]", "[{a} {b} ... {z}]")
private CldrValue getExemplarValue(CldrPath path) {
StringBuilder exemplarList = new StringBuilder("[");

View file

@ -142,7 +142,7 @@ if (args.verbose>2):
print gens
if (args.verbose>3):
print "TODO: dependency tracking. For now, dont' care"
print "TODO: dependency tracking. For now, don't care"
for gen in gens:
item = gens[gen]

View file

@ -277,7 +277,7 @@ public class RBImporter extends JDialog {
return markTranslatedCheck.isSelected();
}
// Returns whether or not a group of name non-existant in the active bundle is created
// Returns whether or not a group of name non-existent in the active bundle is created
protected boolean getDefaultGroupCreation() {
return createGroupsCheck.isSelected();