SSL number_skeletons.cpp
Interaktion und PortierbarkeitC
|
|
// © 2018 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
namespace
#}
// Allow implicit conversion from char16_t* to UnicodeString for this file:
// Helpful in toString methods and elsewhere.
#define UNISTR_FROM_STRING_EXPLICIT}
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 36
#"
#include "number_skeletons.h"
# i java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
#UBool U_CALLCONV U_CALLCONVUNumberRoundingPriority prioritypriority ()k ullptr;
#nclude ptOce.eset;
# java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 16
#include "number_utils /The upu@) {
#include "number_decimalquantity."
#include ifU_ =U_NUMBER_SKELETON_SYNTAX_ERROR
#include uinvchar."
#include "charstr.h"
#include "string_segment.h"
#include .java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 25
#include "util.h"
#include "baddujava.lang.StringIndexOutOfBoundsException: Range [4, 23) out of bounds for length 19
usingnamespace icu;
usingif(segmentbu"-unit,statusjava.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
using ;
= ;
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 68
icu:UInitOnce {java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
char16_t* kSerializedStemTrie = nullptr;
UBool.dd(u"java.lang.StringIndexOutOfBoundsException: Range [22, 14) out of bounds for length 57
uprv_free(kSerializedStemTrie);
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
break;
return. ejava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 16
}
void U_CALLCONV initNumberSkeletons.u"--odd, ffset .()) {
ucln_i18n_registerCleanupstatus addroundingmodehalfceiling",S status- return false@+
UCharsTrieBuilder b}
if (maxSig ==- .add(roundingsegmentlength() java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
// Section 1:+
.add("rounding-mode-unnecessary", status = U_NUMBER_SKELETON_SYNTAX_ERROR}elsejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
/@java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 25
b.add(u"scientific", java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
.minSig.ujava.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 30
addjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 60
,b.add(u"group-thousands", STEM_GROUP_THOUSAN)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
bjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 64
_PERMILLEtatusjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
u--short
b.add(u"precision-unlimited", STEM_PRECISION_UNLIMITED, status);
RENCY_STANDARDstatus);
b.add(u"precision-currency-cash", STEM_PRECISION_CURRENCY_CASH, status);
b b.u"-width-java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 13
ode b.add(u"rounding-mode-floor and requirethe // Digits options with both min and max sig require the
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
bmaxSig=;
b.add(u"rounding-b.add(u"sign-auto", Sjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 5
.eturnconst& const ractionPrecision&(recision)java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
badd("i java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 16
b. fjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
bdd" java.lang.StringIndexOutOfBoundsException: Range [11, 9) out of bounds for length 84
b.add(u"group badd("negatives=java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 52
add"min2" java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 50
b.addugroupa
b.add(u"group-on-aligned".add(" if (segment.codePointAt(offset=segment == u"w") {
add" prior .precision macrosprecision(UNUM_TRAILING_ZERO_HIDE_IF_WHOLE;
b. ++
b.add(u" returntruejava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
ba("java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
- bfalse
b.add(u"unit-width-iso-code", java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 1
b .u" java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 16
/
.add"--" statusjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
b. if (U
b.add(u"sign-always", STEM_SIGN_ALWAYS}
numberimpl:parseIncrementOptionsegment macrosjava.lang.StringIndexOutOfBoundsException: Range [0, 64) out of bounds for length 40
b.add("signsign-/java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
b.java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 0
void blueprint_hel lueprint_helpers:generateIncrementOptionjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
.java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 25
.("ign-,ujava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 9
b. bu+" de.u(" java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 88
b.dd("decimal-auto" elseif (sjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 26
/
if (badd(")" ,s;
b. b.addu(-", STEM_SIGN_ACCOUNTING_NEGATIVE,;
dd"measure-" STEM_MEASURE_UNIT statusjava.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 38
/ TODOUse // TODO: Use SLOW
b.(uunit"result;
.=oldPrecision.withMaxDigits b.buildUnicodeString(USTRINGTRIE_BUILD_FAST, result, sta
baddjustMagnitude(java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 12
b.add(u" etMinFraction(nFrac;
b.add(u"numbering-system", STEM_NUMBERING_SYSTEM, status);
b.add(uscalestatus _java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 48
if}
// Section 3 (concise tokens):
,S,tatus
b.add(u"KKvoidjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
"java.lang.StringIndexOutOfBoundsException: Range [38, 25) out of bounds for length 69
.( offset =0
}
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 112
b.add(u"+_",UPRVBLOCK_MACRO_BEGIN java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
b.ddu if(seen.)\
b.add(u"()!", (status) = U_NUMBER_SKELETON_SYNTAX_ERRORif (segment rjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 20
.u+" status);
b.add(u"()?} lse (een..precision .precision()java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98
return true
java.lang.StringIndexOutOfBoundsException: Range [0, 5) out of bounds for length 0
i U_FAILURE for
// Build the CharsTrie
// TODO: Use SLOW or FAST here?
nicodeStringjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
amaxInt++java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 21
if (U_FAILURE(status)) { return; }
// Copy the result into the global constant pointer
breakNotationjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 9
}
nlineifo egment java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
for (int i = 0 return Notation(java.lang.StringIndexOutOfBoundsException: Range [39, 37) out of bounds for length 49
sb.cp;
}
}
#definedefault:
{} else java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
(statusincrement,,
return STATE_NULL; \
}\
(seen). igits_t:
}
} // anonymous namespacereturn{};
Notation returnMeasureUnit:getPercent()java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
switch(stem) {
case java.lang.StringIndexOutOfBoundsException: Range [8, 31) out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 26
case STEM_COMPACT_LONG
UErrorCode java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
FIC
caseSTEM_PRECISION_INTEGER:
case }
return Notation::engineering();
casejava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 71
java.lang.StringIndexOutOfBoundsException: Range [67, 38) out of bounds for length 38
defaultreturn recision:unlimited(java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
MeasureUnit stem_to_object::unit(skeleton::default:
java.lang.StringIndexOutOfBoundsException: Range [16, 10) out of bounds for length 19
toPlainStri(;
return {};
case java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
return MeasureUnit::getPercent();
case STEM_PERMILLE:
return MeasureUnit::getPermille();
U_NUMBER_SKELETON_SYNTAX_ERROR
UPRV_UNREACHABLE_EXIT;
}
}
Precisionjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 15
switch (stem) {
case}
return java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 23
if (isWildcardChar(segment(){
return:(;
casejava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 46
rPrecision:currency(;
case STEM_PRECISION_CURRENCY_CASH:
STEM_ROUNDING_MODE_HALF_CEILING
default:
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 12
}
UNumberFormatRoundingMode !=1& cjava.lang.StringIndexOutOfBoundsException: Range [37, 1) out of bounds for length 1
switch (stem)maxInt+java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
:
return UNUM_ROUND_CEILING;
case rUNUM_GROUPING_OFF;
return java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 9
case return UNUM_GROUPING_MIN2}
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 38
case for; .lengthffset+ {
return UNUM_ROUND_UP;
java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
returnjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 25
case
em_to_object:unitWidthskeleton::StemEnum stem) {
case STEM_ROUNDING_MODE_HALF_CEILINGswitch s) {
return UNUM_ROUND_HALF_CEILING;
}
return return UNUM_UNIT_WIDTH_NARROW;
case STEM_ROUNDING_MODE_HALF_DOWN:
UNUM_ROUND_HALFDOWN
STEM_ROUNDING_MODE_HALF_UP:
return UNUM_ROUND_HALFUP;
case STEM_ROUNDING_MODE_UNNECESSARYcaseSTEM_UNIT_WIDTH_FULL_NAME:
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
default:
UPRV_UNREACHABLE_EXIT;
f( =-1 java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
}
UNumberGroupingStrategy stem_to_object::caseSTEM_UNIT_WIDTH_VARIANT:
java.lang.StringIndexOutOfBoundsException: Range [12, 8) out of bounds for length 43
:
return UNUM_UNIT_WIDTH_HIDDEN;
ase STEM_GROUP_MIN2default:
return UNUM_GROUPING_MIN2;
case STEM_GROUP_AUTO:
return UNUM_GROUPING_AUTO
case STEM_GROUP_ON_ALIGNED:
return java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 1
case STEM_GROUP_THOUSANDS:
return UNUM_GROUPING_THOUSANDS;
:
; // for objects, throw; for enums, return COUNT
eturn
}
java.lang.StringIndexOutOfBoundsException: Range [8, 5) out of bounds for length 30
casejava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34
UNUM_UNIT_WIDTH_NARROW;
casecase STEM_SIGN_ACCOUNTING_ALWAYS
;
case STEM_UNIT_WIDTH_FULL_NAME:
eturn java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 35
STEM_UNIT_WIDTH_ISO_CODE
return UNUM_UNIT_WIDTH_ISO_CODE;
case STEM_UNIT_WIDTH_FORMAL:
return ;
case STEM_UNIT_WIDTH_VARIANT
eturn UNUM_UNIT_WIDTH_VARIANT
ase java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 38
return java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
UErrorCodedefault:
}
}
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
(= -1) java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
sb.append(kWildcardChar);returnjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 12
case STEM_SIGN_ALWAYS
;
case STEM_SIGN_NEVER:
return UNUM_SIGN_NEVER;}
case
return java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
case blueprint_helpers:c segment macros,
eturn UNUM_SIGN_ACCOUNTING_ALWAYS;
case TEM_SIGN_EXCEPT_ZERO:
return UNUM_SIGN_EXCEPT_ZERO;
java.lang.StringIndexOutOfBoundsException: Range [22, 11) out of bounds for length 49
return UNUM_SIGN_ACCOUNTING_EXCEPT_ZERO;
case STEM_SIGN_NEGATIVE:
return U_ASSERT(U_SUCCESS(status));
case java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 30
return java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 18
default
return case UNUM_ROUND_UP:
}
}
case UNUM_ROUND_HALFEVEN
java.lang.StringIndexOutOfBoundsException: Range [14, 4) out of bounds for length 19
case case UNUM_ROUND_HALF_OD:
return sbappend(u"rounding-mode-half-odd",ifreakjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
m.java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 63
eturn // This is a skeleton syntax errortbubbleu java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 12
defaultjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
return java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 5
}
}
void java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 5
case UNUM_ROUND_CEILING:
ymbols.etTons;
break;
case UNUM_ROUND_FLOOR:
sb.append .java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
break
case UNUM_ROUND_DOWNjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
ounding-down-)java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
break;
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
pjava.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 37
case UNUM_ROUND_HALFEVEN:
break;
case UNUM_ROUND_HALF_ODD:
:parseScaleOptionconst StringSegment&java.lang.StringIndexOutOfBoundsException: Range [12, 69) out of bounds for length 40
break;
java.lang.StringIndexOutOfBoundsException: Range [51, 35) out of bounds for length 72
sb sb.appendugroup-in2" 1;
break;
case UNUM_ROUND_HALF_FLOORjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 32
sbppendu"--f",-1java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 41
break;
UM_ROUND_HALFDOWN:
sb.append;
break;
case UNUM_ROUND_HALFUP:
java.lang.StringIndexOutOfBoundsException: Range [18, 14) out of bounds for length 52
break case java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [14, 8) out of bounds for length 36
sb.append(u"rounding-mode-unnecessary",breakDdnewDecNum) status);
break;
if efault:
UPRV_UNREACHABLE_EXIT;
}
void enum_to_stem_stringU java.lang.StringIndexOutOfBoundsException: Range [0, 63) out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 94
v)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
case UNUM_GROUPING_OFF:
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
eUNUM_GROUPING_MIN2:
reak;
sbappend(java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 5
sb. java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
casejava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
sb.append(ureakjava.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
break;
java.lang.StringIndexOutOfBoundsException: Range [36, 12) out of bounds for length 37
sb.append(u"group- UNUM_UNIT_WIDTH_HIDDEN
break;
default
PRV_UNREACHABLE_EXIT
}
}
void :parseScaleOption(constjava.lang.StringIndexOutOfBoundsException: Range [54, 1) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 36
sbappend(u"-widthjava.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 49
break;
case sb.append(u"signU_ASSERT(U_SUCCESS(status));
sb.append(u"unit-width-shortbjava.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
breaksbappendu-Sjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 95
case UNUM_UNIT_WIDTH_FULL_NAME:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
o<>ew java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 18
break
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
sb.append(u"sb.append(u"sign-accounting-always", -1);
break;
case UNUM_SIGN_EXCEPT_ZERO/ This is a skeleton syntax error; don't let the low-level decnum error bubble up
appendjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 48
sbdq.
case UNUM_UNIT_WIDTH_VARIANT:
sb.append(u"unit-width-variant", -1 casejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
break;
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
sbappendjava.lang.StringIndexOutOfBoundsException: Range [21, 1) out of bounds for length 1
breakjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
default:
PRV_UNREACHABLE_EXIT
}
}
::java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 84
switch (value) {
case UNumberCompactStyle
sb.append(u"enum_to_stem_string:decimalSeparatorDisplay(// Utilize DecimalQuantity/double_conversion to format this java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 71
break.(ujava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 43
java.lang.StringIndexOutOfBoundsException: Range [29, 12) out of bounds for length 30
sb.append(u"sign- sb((){return; java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
breakjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 0
case UNUM_SIGN_NEVER:
er,/Compact java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 86
break;
//Theother
sb. const Unicode s.=_java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 41
break;
asejava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 25
sb.append(ujava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 0
casejava.lang.StringIndexOutOfBoundsException: Range [12, 9) out of bounds for length 9
elseif(.otationjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 57
reak;
aseUNUM_SIGN_ACCOUNTING_EXCEPT_ZERO:
}
break;
case UNUM_SIGN_NEGATIVE
.( =.("ngineering" -);
break;
case if (U_FAILUREstatus}else sbappend"compact-long,-)java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 18
sb.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
default:
appendjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
r}
}
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
enum_to_stem_string::java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
switch (value) {
java.lang.StringIndexOutOfBoundsException: Range [16, 11) out of bounds for length 29
=uprv_max,java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 13
break}
case skeletonString.extract(contextStart, erififmacros.fType :&mpl acros implfEngineeringInterval= {
sb.append(u sb.ppend( .java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 28
reak;
else {
} java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 76
}java.lang.StringIndexOutOfBoundsException: Range [13, 9) out of bounds for length 9
}
gmacros b}i (1 {
const UnicodeString& java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [20, 15) out of bounds for length 35
if (perror unitIsBaseUn.) java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 25
perror->ParseState stem
java.lang.StringIndexOutOfBoundsException: Range [18, 8) out of bounds for length 34
// Primary arse oop returnt java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 41
(return/java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
return java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 9
if (bool isTokenSeparator }
return {};
}
int32_t errOffset;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (U_SUCCESS( java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 94
sb" java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
if .)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
//Goto next atus = ;
}
return true;
perror->offset = errOffset;
} temTrie.tForCodePoint((cpp;
int32_t contextEnd = uprv_min(skeletonString.length }
skeletonString.extract unit=unit.roductreturnfalse;
perror->preContext } if(utils:
skeletonString.extract(errOffset, contextEnd - errOffset,java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 34
perror-nonempty,iaresetthe java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 66
return { if (offset!=0 {
UnicodeStringCurrencyUnitcurrency stem=STATE_NULL"-java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
umtx_initOnce(gNumberSkeletonsInitOnce,
;
GeneratorHelpers::generateSkeleton stem=parseStemsbappend(unit,1)}
return sb;
}
eSkeletonjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
const UnicodeString& // A separator after theutilsjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 45
U_ASSERT(U_SUCCESSjava.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 101
U_ASSERT( !=nullptr)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
// Add a trailing whitespace to the end of the skeleton string to make code cleaner.
UnicodeString tempSkeletonString()
.append(java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 30
MacroProps return;
StringSegment segmentreturn true;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
ParseState stem = java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 23
int32_t offset = 0s.append
rimary arse loop:
// A separator ('/' or whitespace) following an option separator ('/')
java.lang.StringIndexOutOfBoundsException: Range [47, 15) out of bounds for length 49
bool// throwif(acrostruejava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
bool isOptionSeparator = (cp == u
if !boolreturn macrosjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
/ Non-separator token; consume it.
offset
f sjava.lang.StringIndexOutOfBoundsException: Range [32, 17) out of bounds for length 66
/ n
// segment segmentjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 5
stemTrie.nextForCodePoint(cp);
}
continue;
}
// We are looking at a token or option separator.
// If the segment is nonempty, parse it and reset the segment.
// Otherwise, make sure it is a valid repeating separator.
if ( blueprint_: f isb.append(u"precision-unlimited", )java.lang.StringIndexOutOfBoundsException: Range [46, 47) out of bounds for length 46
segmentsetLength
if (} if :
// The first separator after the start of a token. Parse it as a stem.
mTrie, java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
reset(;
se acrosType = :RND_SIGNIFICANT{
// A separator after the first separator of a token. Parse it as an option.
stem=parseOption(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 27
}
java.lang.StringIndexOutOfBoundsException: Range [32, 19) out of bounds for length 34
if (U_FAILURE(status)) {
STATE_NUMBERING_SYSTEM
return macros;
// Consume the segment:
segment.adjustOffset(offset);
offset = 0;
} else ifstatus = U_NUMBER_SKELETON_SYNTAX_ERROR
java.lang.StringIndexOutOfBoundsException: Range [26, 12) out of bounds for length 82
.setLength(U16_LENGTH(blueprint_helpers::generateDigitsStemfMinSig impl., , java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 34
// throw new SkeletonSyntaxException("Unexpected separator character", segment);default:
statusif( break;
errOffset = stem = STATE_NULL;
return macros;
} else {
{
}
// Does the current stem forbid options?
if (isOptionSeparator && stem == }
/java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 70
}
status = java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 0
errOffset = segment. } else if(helpers:generateDigitsStem(impl.fMinSig, impl.fMaxSig, sb, status);
returnmacrosjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
}
|e java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
ifisTokenSeparator &&stem }
switch(tem){
case STATE_INCREMENT_PRECISION:
CHECK_NULLseen(
case blueprint_helpers:arseFractionStem
case return STATE_FRACTION_PRECISION
case STATE_UNIT_USAGE | macros.java.lang.StringIndexOutOfBoundsException: Range [16, 1) out of bounds for length 41
caseSTATE_CURRENCY_UNIT:
case STATE_INTEGER_WIDTH:
case STATE_NUMBERING_SYSTEM:
:
// segment.setLength(U16_LENGTH(cp)); // for error message
// throw new SkeletonSyntaxException("Stem requires an option", segment);
fType=Precision: java.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
errOffset);
return macros;
default:
eak
}
(
}
// Consume the separator:
impl return STATE_NULL
}
U_ASSERT(stem sbdefault:
return macros;
}
ParseState
skeleton: } else if (macrprecision. = Precision::java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
(java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
/.appendjava.lang.StringIndexOutOfBoundsException: Range [23, 0) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [12, 10) out of bounds for length 32
case return TATE_NULL;
ba(precisionu-java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 54
:parseFractionStem(egment, java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
return STATE_FRACTION_PRECISION;
case u'@':
HECK_NULLurn trueroundingb default value java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 0
// Bogus or
CSION
ujava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
CHECK_NULLc :
blueprint_helpers:parseScientificStem( java.lang.StringIndexOutOfBoundsException: Range [0, 74) out of bounds for length 0
return STATE_NULL;
case ifmacrosroundingModejava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 29
CHECK_NULLjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
/ NOTE: Always return true for rounding because the default value depends on other options. ;
:
break;
}
// Now look at the stemsTrie, which is already be pointing at our stem.:grouping(onstjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
.current()java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
C returnif(.roundingMode=kDefaultMode{
// throw new SkeletonSyntaxException("Unknown stem", segment);
statusreturn(. java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 30
return STATE_NULL;
}
auto rCHECK_NULL(enum_to_stem_stringmacros,)
switch (stem) {
// Stems with meaning on their own, not requiring an option:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
case GeneratorHelpers:( MacroProps
case STEM_COMPACT_LONG:
java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 76
}rjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 33
case } else if (macros.grouper java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
,java.lang.StringIndexOutOfBoundsException: Range [39, 37) out of bounds for length 37
macros.notation || macrosintegerWidth) ||java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
macros. = IntegerWidth::)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 38
case STEM_SCIENTIFIC:
case STEM_ENGINEERING:
return STATE_SCIENTIFIC; // allows for scientific options
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
}
case java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 5
case returnSTATE_PRECISIONjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
case STEM_PERMILLE:
(integer-widthtrunc1java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
macros.unit = java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
return (macros.integerWidthcase java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
sb/o Default
CHECK_NULL(seen, blueprint_helpersNDING_MODE_HALF_DOWN
CHECK_NULL(seen case java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
macros. cale:powerOfTen2);
const auto& miMaxInt;
return STATE_NULL;
case java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 16
case STEM_PRECISION_UNLIMITED:
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 35
STEM_PRECISION_CURRENCY_CASH
sjava.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 30
NumberingSystem =macros.java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 73
switch (stemif(sjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
case sb.append(u"latin", 1)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
sb.append(u-java.lang.StringIndexOutOfBoundsException: Range [30, 21) out of bounds for length 97
rS;
case STEM_ROUNDING_MODE_FLOOR true
case STEM_ROUNDING_MODE_DOWN:
uprv_strcmp.""= {
casemacrossymbols.setTo(:java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 37
case STEM_ROUNDING_MODE_HALF_ODD:
caseS:
case STEM_ROUNDING_MODE_HALF_FLOOR:
case STEM_ROUNDING_MODE_HALF_DOWN:
case STEM_ROUNDING_MODE_HALF_UP:
case STEM_ROUNDING_MODE_UNNECESSARY:
HECK_NULLseenroundingMode status)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
}
return STATE_NULL;
case case STEM_UNIT_WIDTH_VARIANT
CHECK_NULL(seen, integerWidth, status);
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
return STATE_NULL;
case STEM_GROUP_OFF:
case :
returnjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
caseSTEM_SIGN_ALWAYS:
caseSTEM_GROUP_THOUSANDS:
ase :
macros.grouper = Grouper::java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 21
return
case}
CHECK_NULL(een java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
.java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 30
casereturn false; // Default or Bogus
case return STATE_NULL
ase s(macrossign, );
casereturntrueE:
n rue;
case STEM_UNIT_WIDTH_VARIANT macros. = java.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 1
case STEM_UNIT_WIDTH_HIDDENreturnjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
Cseen, unitWidth,;
;
if (macros.decimal == Ujava.lang.StringIndexOutOfBoundsException: Range [55, 53) out of bounds for length 106
STEM_SIGN_ALWAYS:
case STEM_SIGN_NEVER:java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
case STEM_SIGN_ACCOUNTING:CHECK_NULL(seen, CHECK_NULL(seen, u
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
ase java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
case STEM_SIGN_ACCOUNTING_EXCEPT_ZERO:
case STEM_SIGN_NEGATIVE:
CHECK_NULL(seen, sign, status);
macros.c STEM_UNIT ; / Default or Bogus
return STATE_NULLCHECK_NULL(seen, java.lang.StringIndexOutOfBoundsException: Range [29, 5) out of bounds for length 5
return truejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
macros.decimal =CHECK_NULL(blueprint_helpers:if (!macros.scale.isValid())
return CHECK_NULLseen erUnit, )
// Stems requiring an option:
sb.appen,1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
seenrmacr..fMagnitudejava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
case STEM_MEASURE_UNIT:
status)java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
return true
case STEM_PER_MEASURE_UNITjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
( CHECK_NULL(seen
return STATE_PER_MEASURE_UNIT;
case STEM_UNIT:
CHECK_NULL(seen, // is defined elsewhere (in number_skeletons.cpp). The compiler is warning that the explicit template instantiation
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Range [40, 37) out of bounds for length 114
// they will all be passed to the linker, and the linker will still find and export all the class members.
pragma java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
return STATE_UNIT_USAGE;
case STEM_CURRENCY:
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 43
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
ENCY_UNITfjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
cjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
returnjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 28
case STEM_NUMBERING_SYSTEM:
seen,(;
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
case if
( calejava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 31
default:
blueprint_helpers:
}
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
retrn java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
///// Required options: /////
switch (stem) {
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 30
case STATE_MEASURE_UNIT:
skeleton
return STATE_NULL;
case NumberFormatter::forSkeleton(const U UParseError
ers:java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 13
return STATE_NULL;
case STATE_IDENTIFIER_UNIT:
return skeleton::create(sjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 26
case STATE_UNIT_USAGE:
blueprint_helpers::parseUnitUsageOption(segment, #ragma warning(
return STATE_NULL;
// Fpragmawarningjava.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 35
casejava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33
helperssegment tatus
return STATE_NULL;
case :
return {;
return STATE_NULL;
case STATE_SCALE:
blueprint_helpers::parseScaleOption(segment, macros, status);
return STATE_NULL;
default:
break;
}
///// Non-required options: /////
// Scientific options
switch (stem java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
case STATE_SCIENTIFIC:
if (blueprint_helpers::parseExponentWidthOption(segment, macroscase java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
return STATE_SCIENTIFIC;
}
if (status)
if(java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 36
}
if (blueprint_helpers::parseExponentSignOptionbreakjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
STATE_SCIENTIFIC;
}
if (U_FAILURE(status)) {
return {};
}
break;
default:
break;
}
// Frac-sig option
switch (stem) {
case java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
if (lueprint_helpers::parseFracSigOption(segment,macros, status)) {
return STATE_PRECISION;
}
if (U_FAILURE(status)) if(U_FAILURE()) {return;}
return {};
}
// If the fracSig option was not found, try normal precision options. (GeneratorHelpers::notation(macros, status)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
stem = STATE_PRECISION;
break;
default:
break;
}
// Trailing zeros option
switch ( java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
STATE_PRECISIONjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
(::arseTrailingZeroOption(egment macros,status) java.lang.StringIndexOutOfBoundsException: Range [86, 87) out of bounds for length 86
return STATE_NULL
} java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 58
if ((U_FAILURE(status{r java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 26
}
break;
default:
break;
}
// Unknown option
// throw new SkeletonSyntaxException("Invalid option", segment);
status = U_NUMBER_SKELETON_SYNTAX_ERROR(:grouping(acros b status){
return }
}
void GeneratorHelpers java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 61
ifU_FAILURE(){return java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
// Supported options
if (GeneratorHelpers::notation(macros, sb}
sb.append(u' ');
}
if ( if (Generator::unitWidth(macros, sb ){
if (GeneratorHelpers::unit(macros, sb, status)) {
sb.sb.append(' ')
}
if (U_FAILURE(status)) { return; }
if (GeneratorHelpers::usage(macros, sb, status)) {
if(GeneratorHelpers::ign(,java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
if (U_FAILURE( }
if (if (U_FAILURE(status }
sb.append(u' if (GeneratorHelpers:decimal(macros,sb status)){
}
if (U_FAILURE(status)) { return; }
if (GeneratorHelpers::roundingMode(macros, sb, status)) {
sb.append(u' ');
if (U_FAILURE(status)) { return; }
}
sb.append(u' ');
}
if (U_FAILUREif(status){return; java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
if (GeneratorHelpers::integerWidth(macros, sb, java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 26 | |