for (int dir = 0; dir < directions.length; dir ++) {
Bidi bidi = new Bidi(str, directions[dir]); for (int index = 0; index < str.length(); index ++) { int gotLevel = bidi.getLevelAt(index); if (gotLevel != expectedLevels[index]) {
err = true;
System.err.println("Unexpected level for the character 0x" +
Integer.toHexString(str.charAt(index)).toUpperCase() + ": Expected level = " + expectedLevels[index] + ", actual level = " + bidi.getLevelAt(index) + " in direction = " + directions[dir] + ".");
}
}
}
if (err) { thrownew RuntimeException("Failed.");
}
}
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.