[multiple changes]
2005-11-17 Mark Wielaard <mark@klomp.org> * java/text/SimpleDateFormat.java: Removed, fully merged now. * sources.am: Regenerated. * Makefile.in: Regenerated. 2005-11-17 Sven de Marothy <sven@physto.se> * java/text/SimpleDateFormat.java (computeOffset): Allow timezone to be first in the parsed String. 2005-11-17 Mark Wielaard <mark@klomp.org> * java/text/SimpleDateFormat.java (field, size): Make package private. 2005-11-17 Tom Tromey <tromey@redhat.com> * java/text/SimpleDateFormat.java (compileFormat): Correctly handle quoted single quotes. PR classspath/23183. 2005-11-17 Tom Tromey <tromey@redhat.com> * java/text/SimpleDateFormat.java (compileFormat): Reformatted. 2005-11-17 Tom Tromey <tromey@redhat.com> * java/text/DateFormat.java (serialVersionUID): New field. 2005-11-17 Mark Wielaard <mark@klomp.org> * java/text/DateFormat.java (equals): Reimplement. 2005-11-17 David Gilbert <david.gilbert@object-refinery.com> * java/text/Collator.java: API doc fixes, * java/text/DateFormat.java: likewise, * java/text/DecimalFormatSymbols.java: likewise, * java/text/DateFormatSymbols.java: likewise, * java/text/SimpleDateFormat.java: likewise. 2005-11-17 Jeroen Frijters <jeroen@frijters.net> * java/text/Collator.java (getInstance(Locale)): Added default collation pattern to handle case when resource is missing and throw InternalError instead of returning null should parsing fail. From-SVN: r107121
This commit is contained in:
parent
b424a57253
commit
035db16b87
8 changed files with 132 additions and 1293 deletions
|
@ -150,8 +150,8 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* <code>Collator</code> and the strength and decomposition rules in
|
||||
* effect.
|
||||
*
|
||||
* @param str1 The first object to compare
|
||||
* @param str2 The second object to compare
|
||||
* @param source The first object to compare
|
||||
* @param target The second object to compare
|
||||
*
|
||||
* @return A negative integer if str1 < str2, 0 if str1 == str2, or
|
||||
* a positive integer if str1 > str2.
|
||||
|
@ -164,8 +164,8 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* equal to, or greater than the second argument. These two objects
|
||||
* must be <code>String</code>'s or an exception will be thrown.
|
||||
*
|
||||
* @param obj1 The first object to compare
|
||||
* @param obj2 The second object to compare
|
||||
* @param o1 The first object to compare
|
||||
* @param o2 The second object to compare
|
||||
*
|
||||
* @return A negative integer if obj1 < obj2, 0 if obj1 == obj2, or
|
||||
* a positive integer if obj1 > obj2.
|
||||
|
@ -208,8 +208,8 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* according to the collation rules for the locale of this object and
|
||||
* the current strength and decomposition settings.
|
||||
*
|
||||
* @param str1 The first <code>String</code> to compare
|
||||
* @param str2 The second <code>String</code> to compare
|
||||
* @param source The first <code>String</code> to compare
|
||||
* @param target The second <code>String</code> to compare
|
||||
*
|
||||
* @return <code>true</code> if the two strings are equal,
|
||||
* <code>false</code> otherwise.
|
||||
|
@ -256,7 +256,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* comparisons against a string might be performed multiple times, such
|
||||
* as during a sort operation.
|
||||
*
|
||||
* @param str The <code>String</code> to convert.
|
||||
* @param source The <code>String</code> to convert.
|
||||
*
|
||||
* @return A <code>CollationKey</code> for the specified <code>String</code>.
|
||||
*/
|
||||
|
@ -292,7 +292,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* specified locale. If no <code>Collator</code> exists for the desired
|
||||
* locale, a <code>Collator</code> for the default locale will be returned.
|
||||
*
|
||||
* @param locale The desired localed to load a <code>Collator</code> for.
|
||||
* @param loc The desired localed to load a <code>Collator</code> for.
|
||||
*
|
||||
* @return A <code>Collator</code> for the requested locale
|
||||
*/
|
||||
|
@ -308,7 +308,8 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
}
|
||||
catch (MissingResourceException x)
|
||||
{
|
||||
return null;
|
||||
pattern = "<0<1<2<3<4<5<6<7<8<9<A,a<b,B<c,C<d,D<e,E<f,F<g,G<h,H<i,I<j,J<k,K" +
|
||||
"<l,L<m,M<n,N<o,O<p,P<q,Q<r,R<s,S<t,T<u,U<v,V<w,W<x,X<y,Y<z,Z";
|
||||
}
|
||||
try
|
||||
{
|
||||
|
@ -316,7 +317,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
}
|
||||
catch (ParseException x)
|
||||
{
|
||||
return null;
|
||||
throw (InternalError)new InternalError().initCause(x);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -346,7 +347,7 @@ public abstract class Collator implements Comparator, Cloneable
|
|||
* exception will be thrown. See the documentation for those
|
||||
* contants for an explanation of this setting.
|
||||
*
|
||||
* @param decmp The new decomposition setting.
|
||||
* @param mode The new decomposition setting.
|
||||
*
|
||||
* @exception IllegalArgumentException If the requested
|
||||
* decomposition setting is not valid.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue