Changeset 1391 for branches/GNU/src/gcc/libjava/java/text/ChoiceFormat.java
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/text/ChoiceFormat.java (modified) (3 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/text/ChoiceFormat.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 1 1 /* ChoiceFormat.java -- Format over a range of numbers 2 Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.2 Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. 3 3 4 4 This file is part of GNU Classpath. … … 53 53 * explaining it. Consider the following example: 54 54 * <p> 55 * <pre>56 *terminators = { 1, ChoiceFormat.nextDouble(1) }57 * formats = { "file", "files" } 58 * </pre>55 * 56 terminators = { 1, ChoiceFormat.nextDouble(1) } 57 formats = { "file", "files" }</pre> 58 * 59 59 * <p> 60 60 * In this case if the actual number tested is one or less, then the word … … 260 260 return appendBuf; 261 261 262 int index = 0;262 int index = 0; 263 263 if (! Double.isNaN(num) && num >= choiceLimits[0]) 264 264 { 265 265 for (; index < choiceLimits.length - 1; ++index) 266 266 { 267 if (choiceLimits[index] <= num 268 && index != choiceLimits.length - 2 269 && num < choiceLimits[index + 1]) 267 if (choiceLimits[index] <= num && num < choiceLimits[index + 1]) 270 268 break; 271 269 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
