Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/latin1/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 644 B image not shown  

Quelle  bug1033113.js   Sprache: JAVA

 
var s = "aaaaaaaaaaaaaaaaaa111aaaa";
var latin1Rope1 = "foo" + s;
var latin1Rope2 = "bar" + latin1Rope1;
var twoByteRope = "\u1200--" + latin1Rope1;

// Flatten twoByteRope.
assertEq(twoByteRope.lastIndexOf("11"), 25);

// latin1Rope1 is now a TwoByte dependent string.
assertEq(isLatin1(latin1Rope1), false);
assertEq(latin1Rope1, "fooaaaaaaaaaaaaaaaaaa111aaaa");

// latin1Rope2 should still be Latin1, but now has a
// TwoByte descendent (latin1Rope1).
if (isLatin1(s))
    assertEq(isLatin1(latin1Rope2), true);

// Flatten latin1Rope2.
assertEq(latin1Rope2.lastIndexOf("11"), 25);
assertEq(latin1Rope2, "barfooaaaaaaaaaaaaaaaaaa111aaaa");

Messung V0.5
C=90 H=96 G=93

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.