/[classpath]/classpath/java/text/CollationElementIterator.java
ViewVC logotype

Diff of /classpath/java/text/CollationElementIterator.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by tromey, Thu Dec 5 02:15:34 2002 UTC revision 1.6 by cbj, Sat Jan 25 23:14:08 2003 UTC
# Line 96  private int pos; Line 96  private int pos;
96    *    *
97    * @return The primary order value of the specified collation value.  This is the high 16 bits.    * @return The primary order value of the specified collation value.  This is the high 16 bits.
98    */    */
99  public static final int  public static final int primaryOrder (int order)
 primaryOrder(int value)  
100  {  {
101    return((int)((value & 0xFFFF0000L) >> 16));    // From the JDK 1.2 spec.
102      return order >>> 16;
103  }  }
104    
105  /*************************************************************************/  /*************************************************************************/
# Line 112  primaryOrder(int value) Line 112  primaryOrder(int value)
112    *    *
113    * @return The secondary order value of the specified collation value.  This is the bits 8-15.    * @return The secondary order value of the specified collation value.  This is the bits 8-15.
114    */    */
115  public static final int  public static final short secondaryOrder (int order)
 secondaryOrder(int value)  
116  {  {
117    return((value & 0xFF00) >> 8);    // From the JDK 1.2 spec.
118      return (short) ((order >>> 8) & 255);
119  }  }
120    
121  /*************************************************************************/  /*************************************************************************/
# Line 128  secondaryOrder(int value) Line 128  secondaryOrder(int value)
128    *    *
129    * @return The tertiary order value of the specified collation value.  This is the low eight bits.    * @return The tertiary order value of the specified collation value.  This is the low eight bits.
130    */    */
131  public static final int  public static final short tertiaryOrder (int order)
 tertiaryOrder(int value)  
132  {  {
133    return(value & 0xFF);    // From the JDK 1.2 spec.
134      return (short) (order & 255);
135  }  }
136    
137  /*************************************************************************/  /*************************************************************************/

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26