summaryrefslogtreecommitdiff
path: root/android_icu4j/src/main/java/android/icu/lang/UCharacter.java
diff options
context:
space:
mode:
authorFredrik Roubert <roubert@google.com>2016-02-24 23:47:28 +0100
committerPaul Duffin <paulduffin@google.com>2016-03-01 16:20:40 +0000
commit7241d93e30f4c7c527c019cd6ca3a791ca22d9b2 (patch)
tree4cc6a33360a1709b10cdc6183c9c70c74f219b3f /android_icu4j/src/main/java/android/icu/lang/UCharacter.java
parent2a7db240a11150ab654325587d653754c62b71a7 (diff)
downloadicu-7241d93e30f4c7c527c019cd6ca3a791ca22d9b2.tar.gz
Integrate changes cherry-picked for ticket #12003 into android_icu4j.
User more links to actual Java classes in ICU API doc. Bug: 22023363 (cherry picked from 5a559d08b74c555d7f997b51acd311b7a8756d26) Change-Id: I40b6c459fe92d0008c492d8823dd601cd6ba0b4e
Diffstat (limited to 'android_icu4j/src/main/java/android/icu/lang/UCharacter.java')
-rw-r--r--android_icu4j/src/main/java/android/icu/lang/UCharacter.java33
1 files changed, 21 insertions, 12 deletions
diff --git a/android_icu4j/src/main/java/android/icu/lang/UCharacter.java b/android_icu4j/src/main/java/android/icu/lang/UCharacter.java
index 96c72ae5a..ad24d9e05 100644
--- a/android_icu4j/src/main/java/android/icu/lang/UCharacter.java
+++ b/android_icu4j/src/main/java/android/icu/lang/UCharacter.java
@@ -1,7 +1,7 @@
/* GENERATED SOURCE. DO NOT MODIFY. */
/**
*******************************************************************************
- * Copyright (C) 1996-2015, International Business Machines Corporation and
+ * Copyright (C) 1996-2016, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
@@ -2054,8 +2054,9 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
}
/**
- * Cover the JDK 1.5 API. Return the Unicode block with the
- * given name. <strong>[icu] Note:</strong> Unlike JDK 1.5, this only matches
+ * Alternative to the {@link java.lang.Character.UnicodeBlock#forName(String)} method.
+ * Returns the Unicode block with the given name. <strong>[icu] Note:</strong> Unlike
+ * {@link java.lang.Character.UnicodeBlock#forName(String)}, this only matches
* against the official UCD name and the Java block name
* (ignoring case).
* @param blockName the name of the block to match
@@ -5266,7 +5267,8 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
public static final int MIN_CODE_POINT = Character.MIN_CODE_POINT;
/**
- * Cover the JDK 1.5 API, for convenience.
+ * Equivalent to {@link Character#isValidCodePoint}.
+ *
* @param cp the code point to check
* @return true if cp is a valid code point
*/
@@ -5508,11 +5510,12 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
}
/**
- * Cover the JDK API, for convenience. Return a byte representing the directionality of
- * the character.
+ * Equivalent to the {@link Character#getDirectionality(char)} method, for
+ * convenience. Returns a byte representing the directionality of the
+ * character.
*
- * <strong>[icu] Note:</strong> Unlike the JDK, this returns DIRECTIONALITY_LEFT_TO_RIGHT for undefined
- * or out-of-bounds characters.
+ * <strong>[icu] Note:</strong> Unlike {@link Character#getDirectionality(char)}, this returns
+ * DIRECTIONALITY_LEFT_TO_RIGHT for undefined or out-of-bounds characters.
*
* <strong>[icu] Note:</strong> The return value must be tested using the constants defined in {@link
* UCharacterDirection} and its interface {@link
@@ -5528,7 +5531,9 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
}
/**
- * Cover the JDK API, for convenience. Count the number of code points in the range of text.
+ * Equivalent to the {@link Character#codePointCount(CharSequence, int, int)}
+ * method, for convenience. Counts the number of code points in the range
+ * of text.
* @param text the characters to check
* @param start the start of the range
* @param limit the limit of the range
@@ -5556,7 +5561,8 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
}
/**
- * Cover the JDK API, for convenience. Count the number of code points in the range of text.
+ * Equivalent to the {@link Character#codePointCount(char[], int, int)} method, for
+ * convenience. Counts the number of code points in the range of text.
* @param text the characters to check
* @param start the start of the range
* @param limit the limit of the range
@@ -5584,7 +5590,8 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
}
/**
- * Cover the JDK API, for convenience. Adjust the char index by a code point offset.
+ * Equivalent to the {@link Character#offsetByCodePoints(CharSequence, int, int)}
+ * method, for convenience. Adjusts the char index by a code point offset.
* @param text the characters to check
* @param index the index to adjust
* @param codePointOffset the number of code points by which to offset the index
@@ -5627,7 +5634,9 @@ public final class UCharacter implements ECharacterCategory, ECharacterDirection
}
/**
- * Cover the JDK API, for convenience. Adjust the char index by a code point offset.
+ * Equivalent to the
+ * {@link Character#offsetByCodePoints(char[], int, int, int, int)}
+ * method, for convenience. Adjusts the char index by a code point offset.
* @param text the characters to check
* @param start the start of the range to check
* @param count the length of the range to check