function testPunctuation(col, expectedIgnorePunctuation) {
let ignorePunctuation = col.resolvedOptions().ignorePunctuation;
assertEq(ignorePunctuation, expectedIgnorePunctuation);
// Punctuation is ignored iff |ignorePunctuation| is true.
assertEq(col.compare("", "*"), ignorePunctuation ? 0 : -1);
// Whitespace is also ignored when |ignorePunctuation| is true due to ICU limitations.
assertEq(col.compare("", " "), ignorePunctuation ? 0 : -1);
}
// Ensure this works correctly when Thai is the default locale. for (let locale of ["th", "th-TH"]) {
withLocale(locale, () => {
testPunctuation(new Intl.Collator(undefined, {}), true);
});
}
if (typeof reportCompare === "function")
reportCompare(true, true);
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.