Changeset 1391 for branches/GNU/src/gcc/libjava/java/text
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 6 edited
-
. (modified) (1 prop)
-
libjava/java/text/ChoiceFormat.java (modified) (3 diffs, 1 prop)
-
libjava/java/text/Collator.java (modified) (2 diffs, 1 prop)
-
libjava/java/text/Format.java (modified) (1 diff, 1 prop)
-
libjava/java/text/MessageFormat.java (modified) (2 diffs, 1 prop)
-
libjava/java/text/ParseException.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
-
branches/GNU/src/gcc/libjava/java/text/Collator.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 154 154 * @param str2 The second object to compare 155 155 * 156 * @return A negative integer if str1 <str2, 0 if str1 == str2, or157 * a positive integer if str1 >str2.156 * @return A negative integer if str1 str2, 0 if str1 == str2, or 157 * a positive integer if str1 str2. 158 158 */ 159 159 public abstract int compare (String source, String target); … … 168 168 * @param obj2 The second object to compare 169 169 * 170 * @return A negative integer if obj1 <obj2, 0 if obj1 == obj2, or171 * a positive integer if obj1 >obj2.170 * @return A negative integer if obj1 obj2, 0 if obj1 == obj2, or 171 * a positive integer if obj1 obj2. 172 172 * 173 173 * @exception ClassCastException If the arguments are not instances -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libjava/java/text/Format.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 60 60 public abstract class Format implements Serializable, Cloneable 61 61 { 62 63 62 64 /** 63 65 * This method initializes a new instance of <code>Format</code>. -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libjava/java/text/MessageFormat.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 1 1 /* MessageFormat.java - Localized message formatting. 2 Copyright (C) 1999, 2001 Free Software Foundation, Inc.2 Copyright (C) 1999, 2001 Free Software Foundation, Inc. 3 3 4 4 This file is part of GNU Classpath. … … 374 374 { 375 375 StringBuffer buf = new StringBuffer (); 376 // FIXME: don't actually know what is correct here.377 // Can a sub-format refer to any argument, or just378 // the single argument passed to it? Must test379 // against JDK.380 376 formatter.format(thisArg, buf, ignore); 381 377 MessageFormat mf = new MessageFormat (); 382 378 mf.setLocale(locale); 383 379 mf.applyPattern(buf.toString()); 384 formatter = mf;380 ; 385 381 } 386 formatter.format(thisArg, appendBuf, ignore); 382 else 383 formatter.format(thisArg, appendBuf, ignore); 387 384 } 388 385 -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libjava/java/text/ParseException.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 1 /* ParseException.java -- An error occurred while parsing.2 Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.1 /* ParseException.java -- 2 Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. 3 3 4 4 This file is part of GNU Classpath. … … 8 8 the Free Software Foundation; either version 2, or (at your option) 9 9 any later version. 10 10 11 11 GNU Classpath is distributed in the hope that it will be useful, but 12 12 WITHOUT ANY WARRANTY; without even the implied warranty of … … 39 39 package java.text; 40 40 41 /* Written using "Java Class Libraries", 2nd edition, plus online 42 * API docs for JDK 1.2 beta from http://www.javasoft.com. 43 * Status: Believed complete and correct. 41 /** 42 * This exception is thrown when an unexpected error occurs during parsing. 43 * 44 * @author Aaron M. Renn ([email protected]) 45 * @author Per Bothner <[email protected]> 46 * @see Format 47 * @see FieldPosition 48 * @status updated to 1.4 44 49 */ 45 46 /**47 * This exception is thrown when an unexpected error occurs during parsing.48 *49 * @version 0.050 *51 * @author Aaron M. Renn ([email protected])52 * @author Per Bothner <[email protected]>53 * @date October 25, 1998.54 */55 50 public class ParseException extends Exception 56 51 { 52 53 54 55 57 56 58 /* 59 * Instance Variables 60 */ 57 /** 58 * This is the position where the error was encountered. 59 * 60 * @serial the zero-based offset in the string where the error occurred 61 */ 62 private final int errorOffset; 61 63 62 /** 63 * This is the position where the error was encountered. 64 */ 65 private int errorOffset; 64 /** 65 * This method initializes a new instance of <code>ParseException</code> 66 * with a detailed error message and a error position. 67 * 68 * @param msg the descriptive message describing the error 69 * @param offset the position where the error was encountered 70 */ 71 public ParseException(String s, int offset) 72 { 73 super(s); 74 errorOffset = offset; 75 } 66 76 67 /*************************************************************************/ 68 69 /* 70 * Constructors 71 */ 72 73 /** 74 * This method initializes a new instance of <code>ParseException</code> 75 * with a detailed error message and a error position. 76 * 77 * @param msg The descriptive message describing the error. 78 * @param offset The position where the error was encountered. 79 */ 80 public 81 ParseException(String s, int offset) 82 { 83 super(s); 84 85 errorOffset = offset; 86 } 87 88 /*************************************************************************/ 89 90 /** 91 * This method returns the position where the error occurred. 92 * 93 * @return The position where the error occurred. 94 */ 95 public int 96 getErrorOffset() 97 { 98 return(errorOffset); 99 } 100 77 /** 78 * This method returns the position where the error occurred. 79 * 80 * @return the position where the error occurred 81 */ 82 public int getErrorOffset() 83 { 84 return errorOffset; 85 } 101 86 } // class ParseException 102 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
