< prev index next >
src/java.desktop/share/classes/sun/font/ScriptRun.java
Print this page
@@ -33,14 +33,14 @@
*/
package sun.font;
/**
- * <code>ScriptRun</code> is used to find runs of characters in
- * the same script, as defined in the <code>Script</code> class.
+ * {@code ScriptRun} is used to find runs of characters in
+ * the same script, as defined in the {@code Script} class.
* It implements a simple iterator over an array of characters.
- * The iterator will assign <code>COMMON</code> and <code>INHERITED</code>
+ * The iterator will assign {@code COMMON} and {@code INHERITED}
* characters to the same script as the preceding characters. If the
* COMMON and INHERITED characters are first, they will be assigned to
* the same script as the following characters.
*
* The iterator will try to match paired punctuation. If it sees an
@@ -86,11 +86,11 @@
public ScriptRun() {
// must call init later or we die.
}
/**
- * Construct a <code>ScriptRun</code> object which iterates over a subrange
+ * Construct a {@code ScriptRun} object which iterates over a subrange
* of the given characetrs.
*
* @param chars the array of characters over which to iterate.
* @param start the index of the first character over which to iterate
* @param count the number of characters over which to iterate
@@ -143,14 +143,14 @@
public int getScriptCode() {
return scriptCode;
}
/**
- * Find the next script run. Returns <code>false</code> if there
- * isn't another run, returns <code>true</code> if there is.
+ * Find the next script run. Returns {@code false} if there
+ * isn't another run, returns {@code true} if there is.
*
- * @return <code>false</code> if there isn't another run, <code>true</code> if there is.
+ * @return {@code false} if there isn't another run, {@code true} if there is.
*/
public boolean next() {
int startSP = parenSP; // used to find the first new open character
// if we've fallen off the end of the text, we're done
@@ -271,11 +271,11 @@
* Compare two script codes to see if they are in the same script. If one script is
* a strong script, and the other is INHERITED or COMMON, it will compare equal.
*
* @param scriptOne one of the script codes.
* @param scriptTwo the other script code.
- * @return <code>true</code> if the two scripts are the same.
+ * @return {@code true} if the two scripts are the same.
* @see Script
*/
private static boolean sameScript(int scriptOne, int scriptTwo) {
return scriptOne == scriptTwo || scriptOne <= Script.INHERITED || scriptTwo <= Script.INHERITED;
}
< prev index next >