RuleBasedCollator.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_text_RuleBasedCollator__
  3. #define __java_text_RuleBasedCollator__
  4. #pragma interface
  5. #include <java/text/Collator.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace text
  12. {
  13. class CharacterIterator;
  14. class CollationElementIterator;
  15. class CollationKey;
  16. class RuleBasedCollator;
  17. class RuleBasedCollator$CollationElement;
  18. }
  19. }
  20. }
  21. class java::text::RuleBasedCollator : public ::java::text::Collator
  22. {
  23. public:
  24. RuleBasedCollator(::java::lang::String *);
  25. public: // actually package-private
  26. static jint findPrefixLength(::java::lang::String *, ::java::lang::String *);
  27. private:
  28. void mergeRules(jint, ::java::lang::String *, ::java::util::ArrayList *, ::java::util::ArrayList *);
  29. jint subParseString(jboolean, ::java::util::ArrayList *, jint, ::java::lang::String *);
  30. public:
  31. virtual ::java::lang::Object * clone();
  32. private:
  33. ::java::util::ArrayList * parseString(::java::lang::String *);
  34. void buildCollationVector(::java::util::ArrayList *);
  35. void buildPrefixAccess();
  36. public:
  37. virtual jint compare(::java::lang::String *, ::java::lang::String *);
  38. virtual jboolean equals(::java::lang::Object *);
  39. public: // actually package-private
  40. virtual ::java::text::RuleBasedCollator$CollationElement * getDefaultElement(jchar);
  41. virtual ::java::text::RuleBasedCollator$CollationElement * getDefaultAccentedElement(jchar);
  42. public:
  43. virtual ::java::text::CollationElementIterator * getCollationElementIterator(::java::lang::String *);
  44. virtual ::java::text::CollationElementIterator * getCollationElementIterator(::java::text::CharacterIterator *);
  45. virtual ::java::text::CollationKey * getCollationKey(::java::lang::String *);
  46. virtual ::java::lang::String * getRules();
  47. virtual jint hashCode();
  48. private:
  49. ::java::lang::String * __attribute__((aligned(__alignof__( ::java::text::Collator)))) rules;
  50. JArray< ::java::text::RuleBasedCollator$CollationElement * > * ce_table;
  51. public: // actually package-private
  52. ::java::util::HashMap * prefix_tree;
  53. private:
  54. jint last_primary_value;
  55. jint last_tertiary_value;
  56. jboolean inverseAccentComparison;
  57. public: // actually package-private
  58. static ::java::text::RuleBasedCollator$CollationElement * SPECIAL_UNKNOWN_SEQ;
  59. public:
  60. static ::java::lang::Class class$;
  61. };
  62. #endif // __java_text_RuleBasedCollator__