MCPcopy Create free account
hub / github.com/formatjs/formatjs / fallbackElement

Function fallbackElement

packages/intl-collator/compare.ts:79–85  ·  view source on GitHub ↗
(codePoint: number)

Source from the content-addressed store, hash-verified

77}
78
79function fallbackElement(codePoint: number): PackedCollationElement {
80 // UCA requires an order for code points not in the explicit root table; this
81 // compact fallback gives unassigned/unknown code points deterministic primary
82 // weights until full implicit weighting is implemented.
83 // https://www.unicode.org/reports/tr10/#Implicit_Weights
84 return [0xff0000 + codePoint, 0, 0, 0, 0]
85}
86
87type TailoringEntry = {
88 readonly codePoints: readonly number[]

Callers 1

lookupRootElementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected