Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/tests/non262/Intl/Collator/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  phonebk.js   Sprache: JAVA

 

/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */


// Non-phonebk collates as root.
{
  let locales = ["de", "de-DE", "de-AT", "de-CH"];
  for (let locale of locales) {
    let collator = new Intl.Collator(locale, { sensitivity: "base" });
    assertEq(collator.resolvedOptions().collation, "default");
    assertEq(collator.compare("ae", "ä"), 1);
  }
}

// In de-u-co-phonebk, "ä" is primary-equal to "ae".
{
  let locales = ["de", "de-DE", "de-CH"];
  for (let locale of locales) {
    let collator = new Intl.Collator(locale, { sensitivity: "base", collation: "phonebk" });
    assertEq(collator.resolvedOptions().collation, "phonebk");
    assertEq(collator.compare("ae", "ä"), 0);
  }
}

// In de-AT-u-co-phonebk, "ä" is a base letter.
{
  let locales = ["de-AT"];
  for (let locale of locales) {
    let collator = new Intl.Collator(locale, { sensitivity: "base", collation: "phonebk" });
    assertEq(collator.resolvedOptions().collation, "phonebk");
    assertEq(collator.compare("ae", "ä"), -1);
  }
}

if (typeof reportCompare === "function")
  reportCompare(0, 0, "ok");

Messung V0.5 in Prozent
C=89 H=80 G=84

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-10-12) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.