mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-3348 changed @draft 2.2 to @stable 2.8
X-SVN-Rev: 13743
This commit is contained in:
parent
eb3d7a8d9c
commit
ff48e3b211
7 changed files with 105 additions and 155 deletions
|
@ -95,7 +95,7 @@ import java.text.CharacterIterator;
|
|||
* @see RuleBasedCollator
|
||||
* @see StringSearch
|
||||
* @author Syn Wee Quek
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final class CollationElementIterator
|
||||
{
|
||||
|
@ -110,7 +110,7 @@ public final class CollationElementIterator
|
|||
* collation elements to return.</p>
|
||||
*
|
||||
* <p>See class documentation for an example of use.</p>
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
* @see #next
|
||||
* @see #previous */
|
||||
public final static int NULLORDER = 0xffffffff;
|
||||
|
@ -121,7 +121,7 @@ public final class CollationElementIterator
|
|||
* ignored.</p>
|
||||
*
|
||||
* <p>See class documentation for an example of use.</p>
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
* @see #next
|
||||
* @see #previous */
|
||||
public static final int IGNORABLE = 0;
|
||||
|
@ -155,7 +155,7 @@ public final class CollationElementIterator
|
|||
* @return The character offset in the source string corresponding to the
|
||||
* collation element that will be returned by the next call to
|
||||
* next().
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int getOffset()
|
||||
{
|
||||
|
@ -177,7 +177,7 @@ public final class CollationElementIterator
|
|||
* @param ce a collation element returned by previous() or next().
|
||||
* @return the maximum length of any expansion sequence ending
|
||||
* with the specified collation element.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int getMaxExpansion(int ce)
|
||||
{
|
||||
|
@ -219,7 +219,7 @@ public final class CollationElementIterator
|
|||
* attributes changed, calling reset() will reinitialize the
|
||||
* iterator to use the new attributes.</p>
|
||||
*
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void reset()
|
||||
{
|
||||
|
@ -247,7 +247,7 @@ public final class CollationElementIterator
|
|||
*
|
||||
* @return the next collation element or NULLORDER if the end of the
|
||||
* iteration has been reached.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int next()
|
||||
{
|
||||
|
@ -323,7 +323,7 @@ public final class CollationElementIterator
|
|||
*
|
||||
* @return the previous collation element, or NULLORDER when the start of
|
||||
* the iteration has been reached.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int previous()
|
||||
{
|
||||
|
@ -426,7 +426,7 @@ public final class CollationElementIterator
|
|||
* i.e. the first 16 bits. This value is unsigned.
|
||||
* @param ce the collation element
|
||||
* @return the element's 16 bits primary order.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final static int primaryOrder(int ce)
|
||||
{
|
||||
|
@ -438,7 +438,7 @@ public final class CollationElementIterator
|
|||
* i.e. the 16th to 23th bits, inclusive. This value is unsigned.
|
||||
* @param ce the collation element
|
||||
* @return the element's 8 bits secondary order
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final static int secondaryOrder(int ce)
|
||||
{
|
||||
|
@ -451,7 +451,7 @@ public final class CollationElementIterator
|
|||
* 8 bits. This value is unsigned.
|
||||
* @param ce the collation element
|
||||
* @return the element's 8 bits tertiary order
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final static int tertiaryOrder(int ce)
|
||||
{
|
||||
|
@ -478,7 +478,7 @@ public final class CollationElementIterator
|
|||
* @param offset the character offset into the original source string to
|
||||
* set. Note that this is not an offset into the corresponding
|
||||
* sequence of collation elements.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setOffset(int offset)
|
||||
{
|
||||
|
@ -534,7 +534,7 @@ public final class CollationElementIterator
|
|||
* to the beginning of the text.</p>
|
||||
*
|
||||
* @param source the new source string for iteration.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setText(String source)
|
||||
{
|
||||
|
@ -564,7 +564,7 @@ public final class CollationElementIterator
|
|||
* offset to the beginning of the text.
|
||||
* </p>
|
||||
* @param source the new source string iterator for iteration.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setText(CharacterIterator source)
|
||||
{
|
||||
|
@ -581,7 +581,7 @@ public final class CollationElementIterator
|
|||
* the same source text and have the same current position in iteration.
|
||||
* @param that object to test if it is equals to this
|
||||
* CollationElementIterator
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean equals(Object that)
|
||||
{
|
||||
|
@ -613,7 +613,7 @@ public final class CollationElementIterator
|
|||
*
|
||||
* @param source the source string.
|
||||
* @param collator the RuleBasedCollator
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
CollationElementIterator(String source, RuleBasedCollator collator)
|
||||
{
|
||||
|
@ -636,7 +636,7 @@ public final class CollationElementIterator
|
|||
*
|
||||
* @param source the source string iterator.
|
||||
* @param collator the RuleBasedCollator
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
CollationElementIterator(CharacterIterator source,
|
||||
RuleBasedCollator collator)
|
||||
|
@ -660,7 +660,7 @@ public final class CollationElementIterator
|
|||
*
|
||||
* @param source the source string iterator.
|
||||
* @param collator the RuleBasedCollator
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
CollationElementIterator(UCharacterIterator source,
|
||||
RuleBasedCollator collator)
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/CollationKey.java,v $
|
||||
* $Date: 2003/09/23 04:16:46 $
|
||||
* $Revision: 1.19 $
|
||||
* $Date: 2003/11/18 17:53:53 $
|
||||
* $Revision: 1.20 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -84,7 +84,7 @@ package com.ibm.icu.text;
|
|||
* @see Collator
|
||||
* @see RuleBasedCollator
|
||||
* @author Syn Wee Quek
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final class CollationKey implements Comparable
|
||||
{
|
||||
|
@ -143,7 +143,7 @@ public final class CollationKey implements Comparable
|
|||
* @param key array of bytes that represent the collation order of argument
|
||||
* source terminated by a null
|
||||
* @see Collator
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public CollationKey(String source, byte key[])
|
||||
{
|
||||
|
@ -177,7 +177,7 @@ public final class CollationKey implements Comparable
|
|||
/**
|
||||
* Return the source string that this CollationKey represents.
|
||||
* @return source string that this CollationKey represents
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public String getSourceString()
|
||||
{
|
||||
|
@ -213,7 +213,7 @@ public final class CollationKey implements Comparable
|
|||
* </p>
|
||||
* @return CollationKey value in a sequence of big-endian byte bytes
|
||||
* terminated by a null.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public byte[] toByteArray()
|
||||
{
|
||||
|
@ -248,7 +248,7 @@ public final class CollationKey implements Comparable
|
|||
* than target.
|
||||
* @exception NullPointerException is thrown if argument is null.
|
||||
* @see Collator#compare(String, String)
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int compareTo(CollationKey target)
|
||||
{
|
||||
|
@ -303,7 +303,7 @@ public final class CollationKey implements Comparable
|
|||
* a CollationKey. NullPointerException is thrown when the argument
|
||||
* is null.
|
||||
* @see #compareTo(CollationKey)
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int compareTo(Object obj)
|
||||
{
|
||||
|
@ -324,7 +324,7 @@ public final class CollationKey implements Comparable
|
|||
* @exception ClassCastException is thrown when the argument is not
|
||||
* a CollationKey. NullPointerException is thrown when the argument
|
||||
* is null.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean equals(Object target)
|
||||
{
|
||||
|
@ -348,7 +348,7 @@ public final class CollationKey implements Comparable
|
|||
* @param target the CollationKey to compare to.
|
||||
* @return true if two objects are equal, false otherwise.
|
||||
* @exception NullPointerException is thrown when the argument is null.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean equals(CollationKey target)
|
||||
{
|
||||
|
@ -380,7 +380,7 @@ public final class CollationKey implements Comparable
|
|||
* hash table.
|
||||
* </p>
|
||||
* @return the hash value.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int hashCode()
|
||||
{
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/Collator.java,v $
|
||||
* $Date: 2003/11/14 23:51:19 $
|
||||
* $Revision: 1.36 $
|
||||
* $Date: 2003/11/18 17:53:53 $
|
||||
* $Revision: 1.37 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -118,7 +118,7 @@ import com.ibm.icu.util.VersionInfo;
|
|||
* @see RuleBasedCollator
|
||||
* @see CollationKey
|
||||
* @author Syn Wee Quek
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public abstract class Collator implements Comparator, Cloneable
|
||||
{
|
||||
|
@ -129,7 +129,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* between base characters. See class documentation for more explanation.
|
||||
* @see #setStrength
|
||||
* @see #getStrength
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final static int PRIMARY = 0;
|
||||
|
||||
|
@ -141,7 +141,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* See class documentation for more explanation.
|
||||
* @see #setStrength
|
||||
* @see #getStrength
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final static int SECONDARY = 1;
|
||||
|
||||
|
@ -153,7 +153,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* See class documentation for more explanation.
|
||||
* @see #setStrength
|
||||
* @see #getStrength
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final static int TERTIARY = 2;
|
||||
|
||||
|
@ -167,7 +167,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* See class documentation for more explanation.
|
||||
* @see #setStrength
|
||||
* @see #getStrength
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final static int QUATERNARY = 3;
|
||||
|
||||
|
@ -182,7 +182,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* <p>
|
||||
* Note this value is different from JDK's
|
||||
* </p>
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final static int IDENTICAL = 15;
|
||||
|
||||
|
@ -196,7 +196,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see #CANONICAL_DECOMPOSITION
|
||||
* @see #getDecomposition
|
||||
* @see #setDecomposition
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final static int NO_DECOMPOSITION = 16;
|
||||
|
||||
|
@ -212,7 +212,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see #NO_DECOMPOSITION
|
||||
* @see #getDecomposition
|
||||
* @see #setDecomposition
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final static int CANONICAL_DECOMPOSITION = 17;
|
||||
|
||||
|
@ -238,7 +238,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see #IDENTICAL
|
||||
* @exception IllegalArgumentException if the new strength value is not one
|
||||
* of PRIMARY, SECONDARY, TERTIARY, QUATERNARY or IDENTICAL.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setStrength(int newStrength)
|
||||
{
|
||||
|
@ -280,7 +280,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see #CANONICAL_DECOMPOSITION
|
||||
* @exception IllegalArgumentException If the given value is not a valid
|
||||
* decomposition mode.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setDecomposition(int decomposition)
|
||||
{
|
||||
|
@ -302,7 +302,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* will be returned.
|
||||
* @see java.util.Locale#getDefault()
|
||||
* @see #getInstance(Locale)
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public static final Collator getInstance()
|
||||
{
|
||||
|
@ -424,7 +424,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see java.util.Locale
|
||||
* @see java.util.ResourceBundle
|
||||
* @see #getInstance()
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public static final Collator getInstance(Locale locale)
|
||||
{
|
||||
|
@ -522,7 +522,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see #TERTIARY
|
||||
* @see #QUATERNARY
|
||||
* @see #IDENTICAL
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int getStrength()
|
||||
{
|
||||
|
@ -541,7 +541,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see #setDecomposition
|
||||
* @see #NO_DECOMPOSITION
|
||||
* @see #CANONICAL_DECOMPOSITION
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int getDecomposition()
|
||||
{
|
||||
|
@ -567,7 +567,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @exception NullPointerException thrown if either arguments is null.
|
||||
* IllegalArgumentException thrown if either source or target is
|
||||
* not of the class String.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int compare(Object source, Object target)
|
||||
{
|
||||
|
@ -588,7 +588,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* rules, otherwise false.
|
||||
* @see #compare
|
||||
* @exception NullPointerException thrown if either arguments is null.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean equals(String source, String target)
|
||||
{
|
||||
|
@ -613,7 +613,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @param that the Collator to be compared with this.
|
||||
* @return true if this Collator is the same as that Collator;
|
||||
* false otherwise.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public abstract boolean equals(Object that);
|
||||
|
||||
|
@ -621,7 +621,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
|
||||
/**
|
||||
* Generates a unique hash code for this Collator.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
* @return 32 bit unique hash code
|
||||
*/
|
||||
public abstract int hashCode();
|
||||
|
@ -643,7 +643,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see CollationKey
|
||||
* @see #getCollationKey
|
||||
* @exception NullPointerException thrown if either arguments is null.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public abstract int compare(String source, String target);
|
||||
|
||||
|
@ -661,7 +661,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* @see CollationKey
|
||||
* @see #compare(String, String)
|
||||
* @see #getRawCollationKey
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public abstract CollationKey getCollationKey(String source);
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/RuleBasedCollator.java,v $
|
||||
* $Date: 2003/11/13 20:21:13 $
|
||||
* $Revision: 1.50 $
|
||||
* $Date: 2003/11/18 17:53:53 $
|
||||
* $Revision: 1.51 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -183,7 +183,7 @@ import com.ibm.icu.impl.StringUCharacterIterator;
|
|||
* This class is not subclassable
|
||||
* </p>
|
||||
* @author Syn Wee Quek
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final class RuleBasedCollator extends Collator
|
||||
{
|
||||
|
@ -204,7 +204,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @exception ParseException and IOException thrown. ParseException thrown
|
||||
* when argument rules have an invalid syntax. IOException
|
||||
* thrown when an error occured while reading internal data.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public RuleBasedCollator(String rules) throws Exception
|
||||
{
|
||||
|
@ -220,7 +220,7 @@ public final class RuleBasedCollator extends Collator
|
|||
/**
|
||||
* Clones the RuleBasedCollator
|
||||
* @return a new instance of this RuleBasedCollator object
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public Object clone() throws CloneNotSupportedException
|
||||
{
|
||||
|
@ -235,7 +235,7 @@ public final class RuleBasedCollator extends Collator
|
|||
/**
|
||||
* Return a CollationElementIterator for the given String.
|
||||
* @see CollationElementIterator
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public CollationElementIterator getCollationElementIterator(String source)
|
||||
{
|
||||
|
@ -247,7 +247,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* The source iterator's integrity will be preserved since a new copy
|
||||
* will be created for use.
|
||||
* @see CollationElementIterator
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public CollationElementIterator getCollationElementIterator(
|
||||
CharacterIterator source)
|
||||
|
@ -281,7 +281,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* otherwise
|
||||
* @see #setHiraganaQuaternaryDefault
|
||||
* @see #isHiraganaQuaternary
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setHiraganaQuaternary(boolean flag)
|
||||
{
|
||||
|
@ -294,7 +294,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* See setHiraganaQuaternary(boolean) for more details.
|
||||
* @see #setHiraganaQuaternary(boolean)
|
||||
* @see #isHiraganaQuaternary
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setHiraganaQuaternaryDefault()
|
||||
{
|
||||
|
@ -314,7 +314,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @see #isUpperCaseFirst
|
||||
* @see #setLowerCaseFirst
|
||||
* @see #setCaseFirstDefault
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setUpperCaseFirst(boolean upperfirst)
|
||||
{
|
||||
|
@ -348,7 +348,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @see #isUpperCaseFirst
|
||||
* @see #setUpperCaseFirst
|
||||
* @see #setCaseFirstDefault
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setLowerCaseFirst(boolean lowerfirst)
|
||||
{
|
||||
|
@ -376,7 +376,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @see #isUpperCaseFirst
|
||||
* @see #setLowerCaseFirst(boolean)
|
||||
* @see #setUpperCaseFirst(boolean)
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final void setCaseFirstDefault()
|
||||
{
|
||||
|
@ -393,7 +393,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* See setAlternateHandling(boolean) for more details.
|
||||
* @see #setAlternateHandlingShifted(boolean)
|
||||
* @see #isAlternateHandlingShifted()
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setAlternateHandlingDefault()
|
||||
{
|
||||
|
@ -407,7 +407,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* See setCaseLevel(boolean) for more details.
|
||||
* @see #setCaseLevel(boolean)
|
||||
* @see #isCaseLevel
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setCaseLevelDefault()
|
||||
{
|
||||
|
@ -421,7 +421,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* See setDecomposition(int) for more details.
|
||||
* @see #getDecomposition
|
||||
* @see #setDecomposition(int)
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setDecompositionDefault()
|
||||
{
|
||||
|
@ -434,7 +434,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* See setFrenchCollation(boolean) for more details.
|
||||
* @see #isFrenchCollation
|
||||
* @see #setFrenchCollation(boolean)
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setFrenchCollationDefault()
|
||||
{
|
||||
|
@ -451,7 +451,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* See setStrength(int) for more details.
|
||||
* @see #setStrength(int)
|
||||
* @see #getStrength
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setStrengthDefault()
|
||||
{
|
||||
|
@ -482,7 +482,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* <a href=http://oss.software.ibm.com/icu/userguide/Collate_ServiceArchitecture.html>
|
||||
* French collation</a> for more information.
|
||||
* @param flag true to set the French collation on, false to set it off
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
* @see #isFrenchCollation
|
||||
* @see #setFrenchCollationDefault
|
||||
*/
|
||||
|
@ -514,7 +514,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* desired, false for the NON_IGNORABLE behaviour.
|
||||
* @see #isAlternateHandlingShifted
|
||||
* @see #setAlternateHandlingDefault
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setAlternateHandlingShifted(boolean shifted)
|
||||
{
|
||||
|
@ -540,7 +540,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* case level</a> for more information.
|
||||
* </p>
|
||||
* @param flag true if case level sorting is required, false otherwise
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
* @see #setCaseLevelDefault
|
||||
* @see #isCaseLevel
|
||||
*/
|
||||
|
@ -567,7 +567,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @see #IDENTICAL
|
||||
* @exception IllegalArgumentException If the new strength value is not one
|
||||
* of PRIMARY, SECONDARY, TERTIARY, QUATERNARY or IDENTICAL.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setStrength(int newStrength)
|
||||
{
|
||||
|
@ -674,7 +674,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* Equivalent to String getRules(RuleOption.FULL_RULES).
|
||||
* @return returns the collation rules
|
||||
* @see #getRules(boolean)
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public String getRules()
|
||||
{
|
||||
|
@ -743,7 +743,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @see CollationKey
|
||||
* @see #compare(String, String)
|
||||
* @see #getRawCollationKey
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public CollationKey getCollationKey(String source) {
|
||||
if (source == null) {
|
||||
|
@ -843,7 +843,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @see #setCaseFirstDefault
|
||||
* @return true if upper cased characters are sorted before lower cased
|
||||
* characters, false otherwise
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean isUpperCaseFirst()
|
||||
{
|
||||
|
@ -859,7 +859,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @see #setCaseFirstDefault
|
||||
* @return true lower cased characters are sorted before upper cased
|
||||
* characters, false otherwise
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean isLowerCaseFirst()
|
||||
{
|
||||
|
@ -876,7 +876,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @return true or false
|
||||
* @see #setAlternateHandlingShifted(boolean)
|
||||
* @see #setAlternateHandlingDefault
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean isAlternateHandlingShifted()
|
||||
{
|
||||
|
@ -890,7 +890,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @see #setCaseLevelDefault
|
||||
* @see #isCaseLevel
|
||||
* @see #setCaseLevel(boolean)
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean isCaseLevel()
|
||||
{
|
||||
|
@ -903,7 +903,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @return true if French Collation is set to true, false otherwise
|
||||
* @see #setFrenchCollation(boolean)
|
||||
* @see #setFrenchCollationDefault
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean isFrenchCollation()
|
||||
{
|
||||
|
@ -916,7 +916,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @return flag true if Hiragana Quaternary mode is on, false otherwise
|
||||
* @see #setHiraganaQuaternaryDefault
|
||||
* @see #setHiraganaQuaternary(boolean)
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean isHiraganaQuaternary()
|
||||
{
|
||||
|
@ -959,7 +959,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* @param obj the RuleBasedCollator to be compared to.
|
||||
* @return true if this RuleBasedCollator has exactly the same
|
||||
* collation behaviour as obj, false otherwise.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
|
@ -1053,7 +1053,7 @@ public final class RuleBasedCollator extends Collator
|
|||
/**
|
||||
* Generates a unique hash code for this RuleBasedCollator.
|
||||
* @return the unique hash code for this Collator
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int hashCode()
|
||||
{
|
||||
|
@ -1095,7 +1095,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* value is greater than zero if source is greater than target.
|
||||
* @see CollationKey
|
||||
* @see #getCollationKey
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int compare(String source, String target)
|
||||
{
|
||||
|
@ -1286,7 +1286,7 @@ public final class RuleBasedCollator extends Collator
|
|||
* to the next trail surrogate data.
|
||||
* @param ce collation element of the lead surrogate
|
||||
* @return data offset or 0 for the next trail surrogate
|
||||
* @draft 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public final int getFoldingOffset(int ce)
|
||||
{
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/SearchIterator.java,v $
|
||||
* $Date: 2002/12/05 22:27:43 $
|
||||
* $Revision: 1.15 $
|
||||
* $Date: 2003/11/18 17:53:53 $
|
||||
* $Revision: 1.16 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
|
@ -156,7 +156,7 @@ public abstract class SearchIterator
|
|||
* @exception IndexOutOfBoundsException thrown if argument position is out
|
||||
* of the target text range.
|
||||
* @see #getIndex
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setIndex(int position) {
|
||||
if (position < targetText.getBeginIndex()
|
||||
|
@ -180,7 +180,7 @@ public abstract class SearchIterator
|
|||
* </p>
|
||||
* @param allowOverlap flag indicator if overlapping matches are allowed
|
||||
* @see #isOverlapping
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setOverlapping(boolean allowOverlap)
|
||||
{
|
||||
|
@ -257,7 +257,7 @@ public abstract class SearchIterator
|
|||
* @see #previous
|
||||
* @see #last
|
||||
* @see #DONE
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int getMatchStart()
|
||||
{
|
||||
|
@ -271,7 +271,7 @@ public abstract class SearchIterator
|
|||
* the beginning for a backwards search, {@link #DONE} is returned.
|
||||
* @return index in the target text at which the iterator is currently
|
||||
* positioned.
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
* @see #first
|
||||
* @see #next
|
||||
* @see #previous
|
||||
|
@ -503,7 +503,7 @@ public abstract class SearchIterator
|
|||
* See setOverlapping(boolean) for more information.
|
||||
* @see #setOverlapping
|
||||
* @return true if the overlapping property has been set, false otherwise
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean isOverlapping()
|
||||
{
|
||||
|
@ -520,7 +520,7 @@ public abstract class SearchIterator
|
|||
* start of the target text. Otherwise, if a backwards iteration is initiated,
|
||||
* the next search will begin at the end of the target text.
|
||||
* </p>
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void reset()
|
||||
{
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/StringSearch.java,v $
|
||||
* $Date: 2003/10/08 21:51:44 $
|
||||
* $Revision: 1.26 $
|
||||
* $Date: 2003/11/18 17:53:53 $
|
||||
* $Revision: 1.27 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
|
@ -258,23 +258,6 @@ public final class StringSearch extends SearchIterator
|
|||
|
||||
// public getters -----------------------------------------------------
|
||||
|
||||
/**
|
||||
* Returns the strength property of the RuleBasedCollator used in searching.
|
||||
* See the RuleBasedCollator class documentation for a description of the
|
||||
* strength property.
|
||||
* @return the strength property of the RuleBasedCollator used in searching
|
||||
* @see RuleBasedCollator
|
||||
* @see #setStrength
|
||||
* @see #getCollator
|
||||
* @obsolete ICU 2.2. Use this.getCollator().getStrength() instead since it
|
||||
* will be removed in that release.
|
||||
*/
|
||||
///CLOVER:OFF
|
||||
public int getStrength() {
|
||||
return m_collator_.getStrength();
|
||||
}
|
||||
///CLOVER:ON
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Gets the RuleBasedCollator used for the language rules.
|
||||
|
@ -313,7 +296,7 @@ public final class StringSearch extends SearchIterator
|
|||
* the beginning for a backwards search, {@link #DONE} is returned.
|
||||
* @return index in the target text where the iterator is currently
|
||||
* positioned at
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public int getIndex()
|
||||
{
|
||||
|
@ -330,7 +313,7 @@ public final class StringSearch extends SearchIterator
|
|||
* See setCanonical(boolean) for more information.
|
||||
* @see #setCanonical
|
||||
* @return true if canonical matches is set, false otherwise
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public boolean isCanonical()
|
||||
{
|
||||
|
@ -339,39 +322,6 @@ public final class StringSearch extends SearchIterator
|
|||
|
||||
// public setters -----------------------------------------------------
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Sets the strength property of the RuleBasedCollator used for searching.
|
||||
* See the Collator documentation for a description of the strengths.
|
||||
* </p>
|
||||
* @obsolete ICU 2.2. Use this.getCollator().setStrength(int) instead since
|
||||
* it will be removed in that release.
|
||||
* After which StringSearch.reset()
|
||||
* or StringSearch.setCollator(this.getCollator()) should be
|
||||
* called to update StringSearch.]
|
||||
* @see Collator
|
||||
* @see Collator#PRIMARY
|
||||
* @see Collator#SECONDARY
|
||||
* @see Collator#TERTIARY
|
||||
* @see Collator#QUATERNARY
|
||||
* @see Collator#IDENTICAL
|
||||
* @see #setCollator
|
||||
* @see #getCollator
|
||||
*/
|
||||
///CLOVER:OFF
|
||||
public void setStrength(int newStrength)
|
||||
{
|
||||
// Due to a bug (?) in CollationElementIterator, we must set the
|
||||
// collator's strength as well, since the iterator is going to
|
||||
// mask out the portions of the collation element that are not
|
||||
// relevant for the collator's current strength setting
|
||||
// Note that this makes it impossible to share a Collator among
|
||||
// multiple StringSearch objects if you adjust Strength settings.
|
||||
m_collator_.setStrength(newStrength);
|
||||
initialize();
|
||||
}
|
||||
///CLOVER:ON
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Sets the RuleBasedCollator to be used for language-specific searching.
|
||||
|
@ -430,7 +380,7 @@ public final class StringSearch extends SearchIterator
|
|||
* @exception IllegalArgumentException thrown when text is null or has
|
||||
* 0 length
|
||||
* @see #getTarget
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setTarget(CharacterIterator text)
|
||||
{
|
||||
|
@ -458,7 +408,7 @@ public final class StringSearch extends SearchIterator
|
|||
* @exception IndexOutOfBoundsException thrown if argument position is out
|
||||
* of the target text range.
|
||||
* @see #getIndex
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setIndex(int position)
|
||||
{
|
||||
|
@ -474,7 +424,7 @@ public final class StringSearch extends SearchIterator
|
|||
* </p>
|
||||
* @param allowCanonical flag indicator if canonical matches are allowed
|
||||
* @see #isCanonical
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void setCanonical(boolean allowCanonical)
|
||||
{
|
||||
|
@ -513,7 +463,7 @@ public final class StringSearch extends SearchIterator
|
|||
* <p>
|
||||
* Canonical match option will be reset to false, ie an exact match.
|
||||
* </p>
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public void reset()
|
||||
{
|
||||
|
@ -544,7 +494,7 @@ public final class StringSearch extends SearchIterator
|
|||
* otherwise
|
||||
* @see #handlePrevious(int)
|
||||
* @see #DONE
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
protected int handleNext(int start)
|
||||
{
|
||||
|
@ -619,7 +569,7 @@ public final class StringSearch extends SearchIterator
|
|||
* otherwise
|
||||
* @see #handleNext(int)
|
||||
* @see #DONE
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
protected int handlePrevious(int start)
|
||||
{
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/util/VersionInfo.java,v $
|
||||
* $Date: 2003/09/09 21:30:45 $
|
||||
* $Revision: 1.16 $
|
||||
* $Date: 2003/11/18 17:53:53 $
|
||||
* $Revision: 1.17 $
|
||||
*
|
||||
* jitterbug 1741
|
||||
*****************************************************************************************
|
||||
|
@ -104,7 +104,7 @@ public final class VersionInfo
|
|||
|
||||
/**
|
||||
* ICU4J current release version
|
||||
* @draft ICU 2.2
|
||||
* @stable ICU 2.8
|
||||
*/
|
||||
public static final VersionInfo ICU_VERSION;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue