( left: string, right: string, slots: IntlCollatorInternal )
| 446 | } |
| 447 | |
| 448 | function comparePreparedStrings( |
| 449 | left: string, |
| 450 | right: string, |
| 451 | slots: IntlCollatorInternal |
| 452 | ): number { |
| 453 | const locale = localeBase(slots.locale) |
| 454 | const tailoring = tailoringEntries( |
| 455 | locale, |
| 456 | collationForComparison(locale, slots.collation) |
| 457 | ) |
| 458 | return compareCollationElements( |
| 459 | collationElements(left, tailoring), |
| 460 | collationElements(right, tailoring), |
| 461 | levelCount(slots), |
| 462 | slots.ignorePunctuation |
| 463 | ) |
| 464 | } |
| 465 | |
| 466 | function compareNumeric( |
| 467 | left: string, |
no test coverage detected