| Collator.cpp |
Intl.Collator implementation. |
24263 |
- |
| Collator.h |
Returns a new instance of the standard built-in Collator constructor.
|
4874 |
- |
| CommonFunctions.cpp |
Operations used to implement multiple Intl.* classes. |
5121 |
- |
| CommonFunctions.h |
ChainDateTimeFormat ( dateTimeFormat, newTarget, this )
ChainNumberFormat ( numberFormat, newTarget, this )
|
3163 |
- |
| CurrencyDataGenerated.h |
Mapping from currency codes to the number of decimal digits used for them.
Default is 2 digits.
Spec: ISO 4217 Currency and Funds Code List.
http://www.currency-iso.org/en/home/tables/table-a1.html
|
4411 |
- |
| DateTimeFormat.cpp |
Intl.DateTimeFormat implementation. |
111704 |
- |
| DateTimeFormat.h |
|
10183 |
- |
| DisplayNames.cpp |
Intl.DisplayNames implementation. |
31351 |
- |
| DisplayNames.h |
builtin_intl_DisplayNames_h |
3897 |
- |
| DurationFormat.cpp |
Intl.DurationFormat implementation. |
67007 |
- |
| DurationFormat.h |
|
6270 |
- |
| FormatBuffer.h |
A buffer for formatting unified intl data.
|
4431 |
- |
| GlobalIntlData.cpp |
|
10200 |
- |
| GlobalIntlData.h |
Cached per-global Intl data. In contrast to SharedIntlData, which is
a per-runtime shared Intl cache, this cache is per-global.
|
6208 |
- |
| IcuMemoryUsage.java |
Java program to estimate the memory usage of ICU objects (bug 1585536).
It computes for each Intl constructor the amount of allocated memory. We're
currently using the maximum memory ("max" in the output) to estimate the
memory consumption of ICU objects.
Insert before {@code JS_InitWithFailureDiagnostic} in "js.cpp":
<pre>
<code>
JS_SetICUMemoryFunctions(
[](const void*, size_t size) {
void* ptr = malloc(size);
if (ptr) {
printf(" alloc: %p -> %zu\n", ptr, size);
}
return ptr;
},
[](const void*, void* p, size_t size) {
void* ptr = realloc(p, size);
if (p) {
printf(" realloc: %p -> %p -> %zu\n", p, ptr, size);
} else {
printf(" alloc: %p -> %zu\n", ptr, size);
}
return ptr;
},
[](const void*, void* p) {
if (p) {
printf(" free: %p\n", p);
}
free(p);
});
</code>
</pre>
Run this script with:
{@code java IcuMemoryUsage.java $MOZ_JS_SHELL}.
|
9992 |
- |
| IntlObject.cpp |
Implementation of the Intl object and its non-constructor properties. |
19070 |
- |
| IntlObject.h |
builtin_intl_IntlObject_h |
521 |
- |
| LanguageTag.cpp |
|
8331 |
- |
| LanguageTag.h |
Structured representation of Unicode locale IDs used with Intl functions. |
3543 |
- |
| ListFormat.cpp |
Intl.ListFormat([ locales [, options]])
|
20794 |
- |
| ListFormat.h |
builtin_intl_ListFormat_h |
2902 |
- |
| Locale.cpp |
Intl.Locale implementation. |
43308 |
- |
| Locale.h |
Returns the complete language tag, including any extensions and privateuse
subtags.
|
1380 |
- |
| LocaleNegotiation.cpp |
9.2.2 BestAvailableLocale ( availableLocales, locale )
Compares a BCP 47 language tag against the locales in availableLocales and
returns the best available match. Uses the fallback mechanism of RFC 4647,
section 3.4.
Spec: ECMAScript Internationalization API Specification, 9.2.2.
Spec: RFC 4647, section 3.4.
|
43000 |
- |
| LocaleNegotiation.h |
ca |
11031 |
- |
| make_intl_data.py |
Usage:
make_intl_data.py langtags [cldr_common.zip]
make_intl_data.py tzdata
make_intl_data.py currency
make_intl_data.py units
make_intl_data.py numbering
Target "langtags":
This script extracts information about 1) mappings between deprecated and
current Unicode BCP 47 locale identifiers, and 2) deprecated and current
BCP 47 Unicode extension value from CLDR, and converts it to C++ mapping
code in intl/components/LocaleGenerated.cpp. The code is used in
intl/components/Locale.cpp.
Target "tzdata":
This script computes which time zone informations are not up-to-date in ICU
and provides the necessary mappings to workaround this problem.
https://ssl.icu-project.org/trac/ticket/12044
Target "currency":
Generates the mapping from currency codes to decimal digits used for them.
Target "units":
Generate source and test files using the list of so-called "sanctioned unit
identifiers" and verifies that the ICU data filter includes these units.
Target "numbering":
Generate source and test files using the list of numbering systems with
simple digit mappings and verifies that it's in sync with ICU/CLDR.
|
133865 |
- |
| moz.build |
|
1103 |
- |
| NumberFormat.cpp |
Intl.NumberFormat implementation. |
98067 |
- |
| NumberFormat.h |
|
9298 |
- |
| NumberingSystems.yaml |
|
1091 |
- |
| NumberingSystemsGenerated.h |
The list of numbering systems with simple digit mappings.
|
1356 |
- |
| ParameterNegotiation.cpp |
GetOption ( options, property, type, values, default )
|
13422 |
- |
| ParameterNegotiation.h |
Pair representing options and their corresponding names.
|
10350 |
- |
| PluralRules.cpp |
Intl.PluralRules implementation. |
21296 |
- |
| PluralRules.h |
builtin_intl_PluralRules_h |
3284 |
- |
| RelativeTimeFormat.cpp |
Intl.RelativeTimeFormat implementation. |
22769 |
- |
| RelativeTimeFormat.h |
builtin_intl_RelativeTimeFormat_h |
3878 |
- |
| SanctionedSimpleUnitIdentifiers.yaml |
|
936 |
- |
| Segmenter.cpp |
Intl.Segmenter implementation. |
36694 |
- |
| Segmenter.h |
|
11197 |
- |
| Segmenter.js |
CreateSegmentDataObject ( segmenter, string, startIndex, endIndex )
|
4142 |
- |
| SharedIntlData.cpp |
Runtime-wide Intl data shared across compartments. |
29784 |
- |
| SharedIntlData.h |
This deleter class exists so that mozilla::intl::DateTimePatternGenerator
can be a forward declaration, but still be used inside of a UniquePtr.
|
14805 |
- |
| StringAsciiChars.h |
String view of an ASCII-only string.
This holds a reference to a JSLinearString and can produce a string view
into that string. If the string is represented by Latin1 characters, the
span is returned directly. If the string is represented by UTF-16
characters, it copies the char16_t characters into a char array, and then
returns a span based on the copy.
This allows us to avoid copying for the common use case that the ASCII
characters are represented in Latin1.
|
2148 |
- |
| TimeZoneDataGenerated.h |
|
5535 |
- |
| TimeZoneMapping.yaml |
|
2676 |
- |
| UsingEnum.h |
|
987 |
- |