Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

ICUXalanNumberFormatProxy.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #if !defined(ICUXALANNUMBERFORMATPROXY_HEADER_GUARD_1357924680)
17 #define ICUXALANNUMBERFORMATPROXY_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base header file. Must be first.
23 
24 
25 
27 
28 
29 
30 #include <unicode/decimfmt.h>
31 
32 
33 
34 XALAN_CPP_NAMESPACE_BEGIN
35 
36 
37 
38 // Class that implements the XSLT function format-number using the ICU.
39 //
41 {
42 public:
43 
44  explicit
46 
47  virtual
49 
50  virtual XalanDOMString&
51  format(double theValue,
52  XalanDOMString& theResult);
53 
54 
55  virtual XalanDOMString&
56  format(int theValue,
57  XalanDOMString& theResult);
58 
59 
60  virtual XalanDOMString&
61  format(unsigned int theValue, XalanDOMString& theResult);
62 
63 
64  virtual XalanDOMString&
65  format(long theValue, XalanDOMString& theResult);
66 
67 
68  virtual XalanDOMString&
69  format(unsigned long theValue, XalanDOMString& theResult);
70 
71 
72  virtual bool
73  isGroupingUsed() const;
74 
75  virtual void
76  setGroupingUsed(bool bUsed);
77 
78  virtual void
79  setGroupingSize(unsigned long size);
80 
81  virtual void
83 
84 private:
85 
86 #if defined(XALAN_HAS_CPP_NAMESPACE)
87  typedef U_ICU_NAMESPACE::DecimalFormat DecimalFormatType;
88 #else
89  typedef DecimalFormat* DecimalFormatType;
90 #endif
91 
92  DecimalFormatType* m_decimalFormat;
93 
94 };
95 
96 
97 
98 XALAN_CPP_NAMESPACE_END
99 
100 
101 
102 #endif // ICUXALANNUMBERFORMATPROXY_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
virtual XalanDOMString & format(double theValue, XalanDOMString &theResult)
Format a number into a string.
Definition: XalanNumberFormat.hpp:34
virtual void setGroupingSeparator(const XalanDOMString &s)
Change the separator string used for groupings, for example, "234,678" uses the separator "...
Definition: ICUXalanNumberFormatProxy.hpp:40
virtual void setGroupingUsed(bool bUsed)
Change whether groupings are used for numbers, for example, "234,678".
DecimalFormat DecimalFormatType
Definition: ICUFormatNumberFunctor.hpp:54
virtual void setGroupingSize(unsigned long size)
Change the size of groupings, for example, "234,678" uses a size of "3".
Definition: XalanDOMString.hpp:42
virtual bool isGroupingUsed() const
Whether groupings are used for numbers, for example, "234,678".
#define XALAN_ICUBRIDGE_EXPORT
Definition: ICUBridgeDefinitions.hpp:33

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo