for (let upper of [ascii_upper, latin1_upper]) {
let s = String.fromCodePoint(...upper);
assertEq(isLatin1(s), true);
assertEq(s, s.toUpperCase());
}
for (let lower of [ascii_lower, latin1_lower]) {
let s = String.fromCodePoint(...lower);
assertEq(isLatin1(s), true);
assertEq(s, s.toLowerCase());
}
function toRope(s) { try { return newRope(s[0], s.substring(1));
} catch {} // newRope can fail when |s| fits into an inline string. In that case simply // return the input. return s;
}
for (let i = 0; i <= 32; ++i) {
let strings = [ascii_upper, ascii_lower, latin1_upper, latin1_lower].flatMap(codePoints => [
String.fromCodePoint(...codePoints.slice(0, i)),
// Trailing ASCII upper case character.
String.fromCodePoint(...codePoints.slice(0, i)) + "A",
// Trailing ASCII lower case character.
String.fromCodePoint(...codePoints.slice(0, i)) + "a",
// Trailing Latin-1 upper case character.
String.fromCodePoint(...codePoints.slice(0, i)) + "À",
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.