Collator.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_text_Collator__
  3. #define __java_text_Collator__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace text
  12. {
  13. class CollationKey;
  14. class Collator;
  15. }
  16. }
  17. }
  18. class java::text::Collator : public ::java::lang::Object
  19. {
  20. public: // actually protected
  21. Collator();
  22. public:
  23. virtual jint compare(::java::lang::String *, ::java::lang::String *) = 0;
  24. virtual jint compare(::java::lang::Object *, ::java::lang::Object *);
  25. virtual jboolean equals(::java::lang::Object *);
  26. virtual jboolean equals(::java::lang::String *, ::java::lang::String *);
  27. virtual ::java::lang::Object * clone();
  28. static JArray< ::java::util::Locale * > * getAvailableLocales();
  29. virtual ::java::text::CollationKey * getCollationKey(::java::lang::String *) = 0;
  30. virtual jint getDecomposition();
  31. static ::java::text::Collator * getInstance();
  32. static ::java::text::Collator * getInstance(::java::util::Locale *);
  33. virtual jint getStrength();
  34. virtual jint hashCode() = 0;
  35. virtual void setDecomposition(jint);
  36. virtual void setStrength(jint);
  37. public: // actually package-private
  38. virtual void decomposeCharacter(jchar, ::java::lang::StringBuffer *);
  39. public:
  40. static const jint PRIMARY = 0;
  41. static const jint SECONDARY = 1;
  42. static const jint TERTIARY = 2;
  43. static const jint IDENTICAL = 3;
  44. static const jint NO_DECOMPOSITION = 0;
  45. static const jint CANONICAL_DECOMPOSITION = 1;
  46. static const jint FULL_DECOMPOSITION = 2;
  47. public: // actually package-private
  48. jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) decmp;
  49. jint strength;
  50. public:
  51. static ::java::lang::Class class$;
  52. };
  53. #endif // __java_text_Collator__