DecimalFormat.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __java_text_DecimalFormat__
  3. #define __java_text_DecimalFormat__
  4. #pragma interface
  5. #include <java/text/NumberFormat.h>
  6. extern "Java"
  7. {
  8. namespace gnu
  9. {
  10. namespace java
  11. {
  12. namespace lang
  13. {
  14. class CPStringBuilder;
  15. }
  16. }
  17. }
  18. namespace java
  19. {
  20. namespace math
  21. {
  22. class BigDecimal;
  23. }
  24. namespace text
  25. {
  26. class AttributedCharacterIterator;
  27. class DecimalFormat;
  28. class DecimalFormatSymbols;
  29. class FieldPosition;
  30. class NumberFormat$Field;
  31. class ParsePosition;
  32. }
  33. }
  34. }
  35. class java::text::DecimalFormat : public ::java::text::NumberFormat
  36. {
  37. public:
  38. DecimalFormat();
  39. DecimalFormat(::java::lang::String *);
  40. DecimalFormat(::java::lang::String *, ::java::text::DecimalFormatSymbols *);
  41. virtual void applyLocalizedPattern(::java::lang::String *);
  42. virtual void applyPattern(::java::lang::String *);
  43. virtual ::java::lang::Object * clone();
  44. virtual jboolean equals(::java::lang::Object *);
  45. virtual jint hashCode();
  46. virtual ::java::lang::StringBuffer * format(::java::lang::Object *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
  47. virtual ::java::lang::StringBuffer * format(jdouble, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
  48. virtual ::java::lang::StringBuffer * format(jlong, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
  49. virtual ::java::text::AttributedCharacterIterator * formatToCharacterIterator(::java::lang::Object *);
  50. virtual ::java::util::Currency * getCurrency();
  51. virtual ::java::text::DecimalFormatSymbols * getDecimalFormatSymbols();
  52. virtual jint getGroupingSize();
  53. virtual jint getMultiplier();
  54. virtual ::java::lang::String * getNegativePrefix();
  55. virtual ::java::lang::String * getNegativeSuffix();
  56. virtual ::java::lang::String * getPositivePrefix();
  57. virtual ::java::lang::String * getPositiveSuffix();
  58. virtual jboolean isDecimalSeparatorAlwaysShown();
  59. virtual void setParseBigDecimal(jboolean);
  60. virtual jboolean isParseBigDecimal();
  61. virtual ::java::lang::Number * parse(::java::lang::String *, ::java::text::ParsePosition *);
  62. virtual void setCurrency(::java::util::Currency *);
  63. virtual void setDecimalFormatSymbols(::java::text::DecimalFormatSymbols *);
  64. virtual void setDecimalSeparatorAlwaysShown(jboolean);
  65. virtual void setGroupingSize(jint);
  66. virtual void setMaximumIntegerDigits(jint);
  67. virtual void setMinimumIntegerDigits(jint);
  68. virtual void setMaximumFractionDigits(jint);
  69. virtual void setMinimumFractionDigits(jint);
  70. virtual void setMultiplier(jint);
  71. virtual void setNegativePrefix(::java::lang::String *);
  72. virtual void setNegativeSuffix(::java::lang::String *);
  73. virtual void setPositivePrefix(::java::lang::String *);
  74. virtual void setPositiveSuffix(::java::lang::String *);
  75. virtual ::java::lang::String * toLocalizedPattern();
  76. virtual ::java::lang::String * toPattern();
  77. private:
  78. jboolean equals(::java::lang::String *, ::java::lang::String *);
  79. ::java::lang::String * patternChars(::java::text::DecimalFormatSymbols *);
  80. ::gnu::java::lang::CPStringBuilder * quoteFix(::java::lang::String *, ::java::lang::String *);
  81. ::java::lang::String * computePattern(::java::text::DecimalFormatSymbols *);
  82. void applyPatternWithSymbols(::java::lang::String *, ::java::text::DecimalFormatSymbols *);
  83. jint scanFix(::java::lang::String *, ::java::text::DecimalFormatSymbols *, jint, jboolean);
  84. jint scanNumberInteger(::java::lang::String *, ::java::text::DecimalFormatSymbols *, jint);
  85. jint scanFractionalPortion(::java::lang::String *, ::java::text::DecimalFormatSymbols *, jint);
  86. jint scanExponent(::java::lang::String *, ::java::text::DecimalFormatSymbols *, jint);
  87. void scanNegativePattern(::java::lang::String *, ::java::text::DecimalFormatSymbols *, jint);
  88. void formatInternal(::java::math::BigDecimal *, jboolean, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
  89. void handleFractionalPart(::java::lang::StringBuffer *, ::java::lang::String *, ::java::text::FieldPosition *, jboolean);
  90. void appendZero(::java::lang::StringBuffer *, jint, jint);
  91. void appendDigit(::java::lang::String *, ::java::lang::StringBuffer *, jboolean);
  92. jlong getExponent(::java::math::BigDecimal *);
  93. ::java::lang::String * adjustTrailingZeros(::java::lang::String *, jint);
  94. void addAttribute(::java::text::NumberFormat$Field *, jint, jint);
  95. void setDefaultValues();
  96. static const jlong serialVersionUID = 864413376551465018LL;
  97. static const jint DEFAULT_INTEGER_DIGITS = 309;
  98. static const jint DEFAULT_FRACTION_DIGITS = 340;
  99. static ::java::text::DecimalFormatSymbols * nonLocalizedSymbols;
  100. jboolean __attribute__((aligned(__alignof__( ::java::text::NumberFormat)))) parseBigDecimal;
  101. jboolean useCurrencySeparator;
  102. jboolean decimalSeparatorAlwaysShown;
  103. jboolean showDecimalSeparator;
  104. jboolean groupingSeparatorInPattern;
  105. jbyte groupingSize;
  106. jbyte minExponentDigits;
  107. jint exponentRound;
  108. jint multiplier;
  109. jint negativePatternMultiplier;
  110. ::java::lang::String * negativePrefix;
  111. ::java::lang::String * negativeSuffix;
  112. ::java::lang::String * positivePrefix;
  113. ::java::lang::String * positiveSuffix;
  114. ::java::text::DecimalFormatSymbols * symbols;
  115. jboolean useExponentialNotation;
  116. jint maxIntegerDigitsExponent;
  117. jboolean hasNegativePrefix;
  118. jboolean hasFractionalPattern;
  119. ::java::util::ArrayList * attributes;
  120. public:
  121. static ::java::lang::Class class$;
  122. };
  123. #endif // __java_text_DecimalFormat__