|
|
|
|
SSL number_skeletons.cpp
Interaktion und PortierbarkeitC
|
|
// © 2018 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
#include harAt)= u #){
#if !UCONFIG_NO_FORMATTING
// Allow implicit conversion from char16_t* to UnicodeString for this file:
// Helpful in toString methods and elsewhere.
#define UNISTR_FROM_STRING_EXPLICIT
#include "number_decnum.h"
#include "number_roundingutils.h"
#include "number_skeletons.h"
#include "umutex.h"
#include "ucln_in.h"
#include "patternprops.h"
#include "unicode/ucharstriebuilder.h"
# int32_t offset = 1;
#include"umber_decimalquantity.h"
#include "unicode/numberformatter.h"
#include "uinvchar.h"
#include "charstr.h"
#nclude ".h"
#include "unicode/errorcode.h"
#include "util.h"
# if( } else
using namespace icu;
using namespace icu::- / License & terms of use: http://www.unicode.org/copyright.html
using java.lang.StringIndexOutOfBoundsException: Range [17, 10) out of bounds for length 17
using namespace
namespace {
icu: macros.int = ntegerWidth:ojava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 33
include f(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
UBool U_CALLCONV UNumberRoundingPriority;
uprv_free(erializedStemTrie;
SerializedStemTrie =njava.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
ncejava.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 16
}
void U_CALLCONV initNumberSkeletons(java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 25
u''
UCharsTrieBuilder b(include."
if FAILURE U_NUMBER_SKELETON_SYNTAX_ERROR;
// Section 1:
b.addu"ompact-",STEM_COMPACT_SHORT, include "java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
ba }
b.add(u"scientific", java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 17
.("int offset= ;
using icujava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
.add(base"STEM_BASE_UNIT, ;
b.add(u"percent", STEM_PERCENT, status);
int maxSig;
priority=UNUM_ROUNDING_PRIORITY_RELAXED
b.add(u"precision-unlimited", icu::UInitOncegNumberSkeletonsInitOnce{};
offset+java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
b.(" b.add(u"precisioncodePointAt(offset) = 's){
b.add(u"rounding-mode-ceiling", java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 35
b.java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
b.add(u"rounding-mode-down", java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 37
badd lse {
b.add(u"rounding-mode-halfjava.lang.StringIndexOutOfBoundsException: Range [30, 9) out of bounds for length 9
badd("roundingmodehalf-"iif(ffset <egment.ength java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
bdu"-mode--" TEM_ROUNDING_MODE_HALF_CEILING, );
b.add(u"rounding rreturn ;
b.add(u"java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
b.ujava.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 40
badd(modejava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 80
b.add(u"integer-width-trunc"/ java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
/java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
b.add(u"group-min2", STEM_GROUP_MIN2maxSigjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 88
bdd(u"group -1)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
b.add( ( i .(usimple" STEM_NOTATION_SIMPLE,status;
bDS ;
b.add(u"latin", STEM_LATIN, status);
add("nit ( if (segmentPERMILLE,tatusjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
("java.lang.StringIndexOutOfBoundsException: Range [28, 24) out of bounds for length 24
add"--name, b.add(u"precision-currency-standard", STEM_PRECISION_CUR, java.lang.StringIndexOutOfBoundsException: Range [83, 82) out of bounds for length 84
add(unitwidth-java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
adduunit b.add(u"rounding-m-bminmax sig java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 79
b.add(u"unit-width-variant"
b.add(u"unit-width-hidden", . maxSig;
java.lang.StringIndexOutOfBoundsException: Range [25, 5) out of bounds for length 48
b.add(u"baddeturn return auto& s<ractionPrecision&&pp;
b.add(u"sign-never", STEM_SIGN_NEVER,b.u"roundingifjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 41
ijava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
.(usign-accountingx" , java.lang.StringIndexOutOfBoundsException: Range [83, 82) out of bounds for length 84
.usign-negative" U_NUMBER_SKELETON_SYNTAX_ERROR;
b.add(u bgroup-min2" STEM_GROUP_MIN2,tatus);
b.add(u"decimal-auto", b.add(u"group-auto", STEM_GROUP_AUTO("-}
baddudecimal.offset) java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 26
if(ugroupityr=macros.java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 98
// Section 2: baddoffset+
breturn ;
b.add(u"measure- } else if (segme.codePointAt .ddu"java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 5
r ;
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 68
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 1
badd("currency, java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 16
b.add(u"integer-width", STEM_INTEGER_WIDTH blueprint_helpers::b.add(u"unit-width-variant", STEM_UNIT_WIDTH_VARIANTjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
ystem STEM_NUMBERING_SYSTEM,, )java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
b.add(u"scale", STEM_SCALE, status);
_FAILURE( java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
}
b.add:java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 74
java.lang.StringIndexOutOfBoundsException: Range [8, 4) out of bounds for length 44
b. b.addb.add(u"signjava.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
statusb::java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
b.add(u",?"b false;
b.add(u"baddus-negative" int32_t java.lang.StringIndexOutOfBoundsException: Range [8, 26) out of bounds for length 9
b.add("!,STEM_SIGN_ALWAYS, status);
b igits_t ,
b.add(u")", macrosprecision = oldPrecisionint32_t minFrac,
b.add(u .udecimal,}
b.add(u"+?", STEM_SIGN_EXCEPT_ZEROb.add(/
.u(?,STEM_SIGN_ACCOUNTING_EXCEPT_ZERO tatus)
b.add // Section 2:
(u") status)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
// Build the CharsTrie
/TODO: java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
; java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 62
ttus);
if (U_FAILUREb."integer-width, nFracjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
// Copy the result into the global constant pointer" java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
b.add(u"K TEM_COMPACT_SHORT java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
b:}
}
inline void java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
for(int% UErrorCode&
badduint32_t offset 0;
}
#efine:(onst tringSegment java.lang.StringIndexOutOfBoundsException: Range [89, 88) out of bounds for length 112
_java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 19
()){java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Range [45, 8) out of bounds for length 52
m -1java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
} badd("?,STEM_SIGN_EXCEPT_ZERO, java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 48
sacros.= macrosjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 98
} UPRV_BLOCK_MACRO_END
} // anonymous namespacemaxInt 0java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
Notation stem_to_object::notation(skeleton f(U_FAILURE java.lang.StringIndexOutOfBoundsException: Range [7, 7) out of bounds for length 5
nicodeString java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
return f+java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
n java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
case kjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 5
inlineif egmentlength(){
case number::impl::parseIncreme: java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 53
rAt)= '){
case STEM_NOTATION_SIMPLE:
return ppendjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
:
UPRV_BLOCK_MACRO_BEGIN else
}
}
status java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
switch (stem
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
};
int32_t
:(;
case STEM_PERMILLE:
returnswitch (){
default:
UPRV_UNREACHABLE_EXIT;
java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 26
}
UErrorCodeErrorCode){
switch (nt+=minIntF
STEM_PRECISION_INTEGER:
return Precision::integer()casejava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 5
// Utilize DecimalQuantitytoformat java.lang.StringIndexOutOfBoundsException: Range [67, 67) out of bounds for length 38
P:);
case STEM_PRECISION_CURRENCY_STANDARD:
UPRV_UNREACHABLE_EXIT;
id }
return Precision::currency(java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
UPRV_UNREACHABLE_EXIT case .append(dqng)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 34
}
}
UNumberFormatRoundingMode
switch java.lang.StringIndexOutOfBoundsException: Range [48, 15) out of bounds for length 15
case STEM_ROUNDING_MODE_CEILINGjava.lang.StringIndexOutOfBoundsException: Range [12, 8) out of bounds for length 40
return UNUM_ROUND_CEILING;
case java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 23
return UNUM_ROUND_FLOOR;
case STEM_ROUNDING_MODE_DOWN:
return int32_t maxInt;
case STEM_ROUNDING_MODE_UP.harAt(0)) {
return Precision:unlimited);
case :
return UNUM_ROUND_HALFEVEN;
case STEM_ROUNDING_MODE_HALF_ODD:
return o eturn:CURR_USAGE_STANDARD)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
:
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 16
case STEM_ROUNDING_MODE_HALF_FLOOR:
}
case STEM_ROUNDING_MODE_HALF_DOWN:
return UNUM_ROUND_HALFDOWN;
case STEM_ROUNDING_MODE_HALF_UP:
return java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 19
case STEM_ROUNDING_MODE_UNNECESSARY}
return UNUM_ROUND_UNNECESSARY;
default:
UPRV_UNREACHABLE_EXIT;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
UNumberGroupingStrategy stem_to_object::groupingStrategy(skeleton::StemEnum java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 19
switch (stem) {
} el STEM_ROUNDING_MODE_CEILINGjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
eturn ;
case Ujava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 9
}
case STEM_GROUP_AUTO:
return UNUM_GROUPING_AUTO;
case :
return UNUM_GROUPING_ON_ALIGNED;
case for offset segmentlength) +)java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
return UNUM_GROUPING_THOUSANDS ase:
default:
return UNUM_GROUPING_COUNT; // for objects, throw; for enums, return COUNTreturn UNUM_ROUND_HALFEVENminInt+;
}
}
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 69
(temjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
}
java.lang.StringIndexOutOfBoundsException: Range [41, 18) out of bounds for length 42
return;
return UNUM_UNIT_WIDTH_SHORT }se java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 40
return UNUM_UNIT_WIDTH_FULL_NAME}
case STEM_UNIT_WIDTH_ISO_CODE:
return java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 16
casei maxInt ! 1){
return java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 1
ase STEM_UNIT_WIDTH_VARIANT
return UNUM_UNIT_WIDTH_VARIANT;
case case STEM_GROUP_OFF
return java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
returnjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 29
}
}/java.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 84
default
return ;// for objects, throw; for enums, return COUNT
return;
return UNUM_SIGN_AUTO
case STEM_SIGN_ALWAYS:
return UNUM_SIGN_ALWAYS;
case STEM_SIGN_NEVER:
return
case STEM_SIGN_ACCOUNTING:
(maxInt =return ;
case:
return return UNUM_UNIT_WIDTH_SHORT
case STEM_SIGN_EXCEPT_ZERO:
return UNUM_SIGN_EXCEPT_ZEROcase java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 12
return;
STEM_UNIT_WIDTH_VARIANT:
case return UNUM_UNIT_WIDTH_VARIANT;
;
case STEM_SIGN_ACCOUNTING_NEGATIVEUNUM_UNIT_WIDTH_HIDDEN
return UNUM_SIGN_ACCOUNTING_NEGATIVE;(java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
}
}
UNumberDecimalSeparatorDisplay stem_to_object ifmaxInt = {
switch (stem) {
case eturn UNUM_SIGN_AUTO;
return UNUM_DECIMAL_SEPARATOR_AUTO;
case STEM_DECIMAL_ALWAYS:
return UNUM_DECIMAL_SEPARATOR_ALWAYS;
defaultjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
return UNUM_SIGN_ALWAYS;java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
void enum_to_stem_string::roundingMode( void:parseNumberingSystemOptiononst StringSegment&segment,MacroPropsmacrosjava.lang.StringIndexOutOfBoundsException: Index 100 out of bounds for length 100
caseSjava.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
case // Need to do char- conversion.java.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
sb. java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 32
break;
case UNUM_ROUND_FLOOR:
sb.append(u"roundingCharString buffer;
break;
case UNUM_ROUND_DOWN:
sb.append(u"rounding-mode-down", -1);
break; default:
java.lang.StringIndexOutOfBoundsException: Range [26, 12) out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:
switch (stem) {
break;
caseDjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
.java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 53
;
case UNUM_ROUND_HALF_CEILING:
sb.append(u"rounding-mode-half-ceiling", case acrosintegerWidth = IntegerWidth:zeroFillTo(return; dontbubble thejava.lang.StringIndexOutOfBoundsException: Range [0, 67) out of bounds for length 12
break// throw new SkeletonSyntaxException("Unknown numbering system", segment);
case java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
sb.append(uvoidswitchjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
break ssetTo()java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
case UNUM_ROUND_HALFDOWN:
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
break;
case UNUM_ROUND_HALFUP:
breakjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
break;
case UNUM_ROUND_UNNECESSARY:
append(ode" 1;
break;
default:
case UNUM_ROUND_UP}
}
void sb.apjava.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 37
switch java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 90
sb.append(u"group-off", -1);
break;
casejava.lang.StringIndexOutOfBoundsException: Range [51, 33) out of bounds for length 72
append("-,-)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
break;
caseU_SUCCESS() sbjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 55
break;
CharStringjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
break
sb.append(u"rounding-mode-half-up", -1);
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
sbjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
>(java.lang.StringIndexOutOfBoundsException: Range [45, 42) out of bounds for length 54
:
}
}
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 80
()
case UNUM_UNIT_WIDTH_NARROW:
java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 0
reak/This skeletonch (alue {
case returnreturnjava.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
sb.append(u"unit-status = U_NUMBER_SKELETON_SYNTAX_ERRORjava.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
cas UNUM_GROUPING_MIN2
sbjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
."java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
case UNUM_UNIT_WIDTH_ISO_CODE:
sb.append(u"-width--;
break;
UNUM_GROUPING_ON_ALIGNED:
sb.append(u"unit-width-formal", -1);
;
case UNUM_UNIT_WIDTH_VARIANT
sb.append(u"case UNUM_GROUPING_THOUSANDS:
break;
casejava.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 1
sb.append(uU;
break;
const status {
}
}
voidcase &status){
switch (value) {
case UNUM_SIGN_AUTO:
-java.lang.StringIndexOutOfBoundsException: Range [31, 12) out of bounds for length 32
reak;
CharStringbuffer;
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
case UNUM_SIGN_NEVER:
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 18
break;
sc UNUM_UNIT_WIDTH_ISO_CODE
break;
case decnum->setTo({buffer lse
java.lang.StringIndexOutOfBoundsException: Range [28, 14) out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
case /java.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 90
sb.append(u"sign-exceptdq.java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 18
case UNUM_SIGN_ACCOUNTING_EXCEPT_ZERO:
.append(java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
break;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
sb. // NOTE: The constructor will optimize the decnum for us if possible.
break_:
case UNUM_SIGN_ACCOUNTING_NEGATIVE.append
sb.append(u"sign-accounting-negative", -1);
break;
default:
}
}::UNumberSignDisplayvalueUnicodeStrings) {
}
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
enum_to_stem_string:decimalSeparatorDisplay(// Utilize DecimalQuantity/double_conversion to format this forforu.
switch (alue){
case:
sbappend(u"decimal-auto", -1);
break;
case UNUM_DECIMAL_SEPARATOR_ALWAYS:
} case UNUM_SIGN_ALWAYS
break;
default:
f_FAILURE) java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
}
}
UnlocalizedNumberFormatter java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 16
const NSUPPORTED_ERROR;
// Initialize perror
if (perror != nullptrc java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 25
perror->line = 0;
perror->offset = -1;
ase
perror->postContext[0] = 0 sb}else if (macros.if macrosf= :TN_COMPACT) break
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
sb if java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 42
(java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 16
return {};
}
int32_tbreak;
MacroProps macros = java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 28
return sb.append(u'/');
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
if (
return {};
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 5
// Populate the UParseError with the error location
perror->offset = errOffsetjava.lang.StringIndexOutOfBoundsException: Range [16, 10) out of bounds for length 29
int32_tcontextStart uprv_max(0 java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
rOffset ifif macros.otation. Notation:i java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 45
perror->preContext[errOffset - java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 45
bjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 28
perror->postContextbreak
return {};
enum_to_stem_string:signDisplayfExponentSignDisplay sbjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
UnicodeString
umtx_initOnce(gNumberSkeletonsInitOnce, &initNumberSkeletons, status);
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
GeneratorHelpers::enerateSkeleton(,sb, impl.java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 42
return sb;
}
MacroProps skeleton::parseSkeleton(
const UnicodeString& skeletonString, int32_t& java.lang.StringIndexOutOfBoundsException: Range [0, 63) out of bounds for length 21
U_ASSERT java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 5
U_ASSERT(kSerializedStemTrie !=java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
// Add a trailing whitespace to the end of the skeleton string to make code cleaner.
}
tempSkeletonString.append(
unit macros.;
MacroProps macros;
:java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 49
UCharsTrie stemTrie(if (utils::unitIsCurrency(macros) | enum_to_stem_string::signDisplay(impl.fExponentSignDisplay
= STATE_NULL;
int32_t perror->pr}
// Primary skeleton parse loop:skeletonpl returnsjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 41
while /java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 9
isTokenSeparator java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
if (!isTokenSeparatorif(U_SUCCESSstatus ifeneratorHelpersconst acroProps macros UnicodeString b,U r .((u";
// Non-separator token; consume it.
MeasureUnit
U_FAILURE(BaseUnit(p java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
/ thenexttjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
s.java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
unit.java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 21
else (java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
// We are looking at a token or option separator.
ntjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 70
// Otherwise, make sure it is a valid repeating separator.
offset =){
)java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
stem =,java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
mtx_initOncegNumberSkeletonsInitOnce,ifUnicodeString
su"/,-;java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
.(
} else ;
java.lang.StringIndexOutOfBoundsException: Range [40, 16) out of bounds for length 91
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
segmentkSerializedStemTrie ;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rue; tempSkeletonStringskeletonString);
return macros;
}
java.lang.StringIndexOutOfBoundsException: Range [19, 14) out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 5
else java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
skeletonarseloop
(Char32 cp = segment.codePointAt(offset.(unit);
/throwf(java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
status = java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 1
macros;
}/java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
// Two spaces in a row; this is OK.
}
/ Doesiff (.append(UnicodeString. ,US_INV);
if (isOptionSeparator && stem == STATE_NULL//Weare returtrue;;
/segment.}
// throw new SkeletonSyntaxException("Unexpected option separator", segment);
statusjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
GeneratorHelpers
return macros;
}
// Does the current stem require an option?
i(java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 27
case STATE_MEASURE_UNIT:
stem = parseStem(segment, s,,status)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
ifmjava.lang.StringIndexOutOfBoundsException: Range [69, 67) out of bounds for length 70
stem java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 66
segment.resetLength)
case blueprint_helpers::generateDigits(/java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
case:
case STATE_SCALEjava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 93
// withMaxDigits
/java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 23
=
// A separator ('/' or java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 16
macros;
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
;
}
= java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
}
// Consume the separator:
segment.java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
)
return macros;
}
ParseState
} elseifmacroshelpers:impl.java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 90
MacroProps& |macros..fType == || macros.precision.fType == Precision
|java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
// First check for "blueprint" stems, which start with a "signal char" ( & tem !java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
switch (segment
case u'.':
(java.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 51
::java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 32
;
case uSTATE_UNIT_USAGE|macros.fIncrementMagnitude
CHECK_NULL(seen, case java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 41
blueprint_helpers caseSTATE_SCALEjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
return STATE_PRECISIONjava.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
case u'E':
CHECK_NULL elseif(macros..precision. = Precision:RND_CURRENCY){
UCurrencyUsage usage errOffset(;
return java.lang.StringIndexOutOfBoundsException: Range [20, 1) out of bounds for length 34
case usage eakjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
(,java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [29, 12) out of bounds for length 30
:
}
// Now look at the stemsTrie, which is already be pointing at our stem.: } else if (macr.java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 67
U//Bogus Error
if (stemResultU_ASSERT((java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 21
appendujava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
switch segment {
Sjava.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
}
blueprint_helpers:parseFractionStems
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
}else java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 96
case STEM_COMPACT_SHORT:
case STEM_COMPACT_LONG:
case STEM_SCIENTIFICI;
ENGINEERINGjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
aseSTEM_NOTATION_SIMPLE
CHECK_NULL( :segment,macros,status
macros. tem_to_object:java.lang.StringIndexOutOfBoundsException: Range [0, 54) out of bounds for length 30
(.java.lang.StringIndexOutOfBoundsException: Range [28, 17) out of bounds for length 29
casejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
rtruejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
default:
return STATE_NULL;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
case STEM_BASE_UNIT:
:StringTrieResult stemResult=stemTrie.);
case STEM_PERMILLE:
false macros.DefaultMode java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
macros.unit = stem_to_object::unit(stem);
rjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 30
case STEM_PERCENT_100
een enum_to_stem_stringroundingMode(s;
CHECK_NULL(java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 19
macros.java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 1
macrosjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
bool GeneratorHelpers:constMacroProps
case STEM_PRECISION_INTEGER: case STEM_ENGINEERING:eturn false;/java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
GeneratorHelpers:java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 37
_if (macros.integerWidth.fHasError|macros..isBogus() |
CHECK_NULL(seen, precision}else if ( switch.integerWidth = :standard(java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [16, 1) out of bounds for length 38
switch (enum_to_stem_string:groupingStrategy(java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
default:
return STATE_PRECISION;
}
caseb append"integer-idth-runc"-)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
case STEM_ROUNDING_MODE_FLOOR return true;
STEM_ROUNDING_MODE_DOWN:
case STEM_ROUNDING_MODE_UP:
case STEM_ROUNDING_MODE_HALF_EVEN:
case:
case STEM_ROUNDING_MODE_HALF_CEILING:
Errorrjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
:
STEM_ROUNDING_MODE_HALF_UP
STEM_ROUNDING_MODE_UNNECESSARY:
HECK_NULL(}
macros scale=Scale:(2
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
sbjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 15
CHECK_NULL(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 20
macros.integerWidth = IntegerWidth::zeroFillTo(0).truncateAt(0);
return STATE_NULL;
case STEM_GROUP_MIN2:
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
case bool GeneratorHelpers:symbolsconst java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 50
case STEM_GROUP_THOUSANDSCHECK_NULL(mjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 1
macros.grouper :( java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 97
turnjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
case STEM_LATIN:
CHECK_NULL(seenifjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 53
.setToNumberingSystem:blatin )
return STATE_NULL}
case STEM_UNIT_WIDTH_NARROW:
case STEM_UNIT_WIDTH_SHORT:
case}C(,java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 51
case STEM_UNIT_WIDTH_FORMAL:
:
java.lang.StringIndexOutOfBoundsException: Range [12, 9) out of bounds for length 51
CHECK_NULL(seen, unitWidth, status);
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
return STEM_GROUP_MIN2
case STEM_SIGN_AUTO:
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
cTEM_SIGN_NEVERjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 29
}
case STEM_SIGN_ACCOUNTING_ALWAYS:
case STEM_SIGN_ACCOUNTING_EXCEPT_ZEROCHECK_NULLseen,symbols
case STEM_SIGN_NEGATIVE:
case macros.symbolsjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
CHECK_NULL(seen, sign, status);
caseSTEM_UNIT_WIDTH_NARROWjava.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
STATE_NULL;
:java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 54
M_DECIMAL_ALWAYS:
c rue
.decimal java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
(seen unitWidth status);
case return STATE_NULL
STEM_SIGN_AUTONUM_DECIMAL_SEPARATOR_AUTO| macros. =){
return java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
returnreturn true;
case STEM_PER_MEASURE_UNIT:
CHECK_NULL(seen, perUnit, status);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aseSTEM_UNITeturnfalse/java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
seen,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 5
;
return STATE_IDENTIFIER_UNIT;
case STEM_UNIT_USAGE:
CHECK_NULL}
return STATE_UNIT_USAGE;
case STEM_CURRENCY:
CHECK_NULLblueprint_helpers:if (!macros.scale.isValid{
(,p,status;
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 39
case STEM_INTEGER_WIDTH:
CHECK_NULL(seen, integerWidth, java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 38
return STATE_INTEGER_WIDTH;
case STEM_NUMBERING_SYSTEM:
CHECK_NULL CHECK_NULL(rmacrjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
case STEM_SCALE:// Definitions of public API methods (put here for dependency disentanglement)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#if (U_PF_WINDOWS=Cseenjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
default:
UPRV_UNREACHABLE_EXIT;
}
}
CHECK_NULL(seen, perUnit, status);
&status return// fully defined. However, since each translation unit explicitly instantiates all the necessary template classes,
U_ASSERT// Ignore MSVC warning 4661. This is generated for NumberFormatterSettings<>::toSkeleton() as this method
///// Required options: /////
switch (stem) {
case STATE_CURRENCY_UNIT:
lueprint_helpers:parseCurrencyOption CHECK_NULL(seen tatus)
return STATE_NULL;
case <typename Derived
blueprint_helpers::parseMeasureUnitOption(segment, macros, status);
/java.lang.StringIndexOutOfBoundsException: Index 114 out of bounds for length 114
case STATE_PER_MEASURE_UNIT:
blueprint_helpers::parseMeasurePerUnitOption(segment#ragma (java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
returnjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 46
}
blueprint_helpers::parseIdentifierUnitOption(segment, macrosendif
return return STATE_CURR f java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ase TATE_UNIT_USAGE:
lueprint_helpers::parseUnitUsageOption(segment, macros}
return STATE_NULL;
case STATE_INCREMENT_PRECISION: return if(_return skeleton:enerate tatus)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 1
return STATE_PRECISION return java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
case STATE_INTEGER_WIDTH:
blueprint_helpers:parseIntegerWidthOption(CHECK_NULLseen,scalejava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
class icureturn STATE_SCALEreturn CU_Utility:makeBogusString(;
case STATE_NUMBERING_SYSTEM:
::java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 8
return java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 1
case STATE_SCALE:
blueprint_helpers::parseScaleOption(segment, macros, status// Declare all classes that implement java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 26
urnrnSTATE_NULL;
default:
break;
}
///// Non-required options: /////return skeleton::create(java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0
// Scientific options
switchjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
return STATE_NULL;
if (blueprint_helpers::NumberFormatter::forSkeleton(const UnicodeString
return STATE_SCIENTIFIC;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
if (U_FAILURE(statusnicodeString&skeleton,UParseError
return {};
}
if (blueprint_helpers::return skeleton::create(skeleton, &perror, status
eturn
}
blueprint_helpers keleton,java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 0
return {};
}
break;
#f java.lang.StringIndexOutOfBoundsException: Range [12, 9) out of bounds for length 77
break;
}
rac- java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 0 | | |