Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.8

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ICUXalanNumberFormatProxy.hpp

Go to the documentation of this file.
00001 /* 00002 * Copyright 1999-2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #if !defined(ICUXALANNUMBERFORMATPROXY_HEADER_GUARD_1357924680) 00017 #define ICUXALANNUMBERFORMATPROXY_HEADER_GUARD_1357924680 00018 00019 00020 00021 // Base header file. Must be first. 00022 #include <xalanc/ICUBridge/ICUBridgeDefinitions.hpp> 00023 00024 00025 00026 #include <xalanc/PlatformSupport/XalanNumberFormat.hpp> 00027 00028 00029 00030 #include <unicode/decimfmt.h> 00031 00032 00033 00034 XALAN_CPP_NAMESPACE_BEGIN 00035 00036 00037 00038 // Class that implements the XSLT function format-number using the ICU. 00039 // 00040 class XALAN_ICUBRIDGE_EXPORT ICUXalanNumberFormatProxy : public XalanNumberFormat 00041 { 00042 public: 00043 00044 explicit 00045 ICUXalanNumberFormatProxy(); 00046 00047 virtual 00048 ~ICUXalanNumberFormatProxy(); 00049 00050 virtual XalanDOMString 00051 format(double theValue); 00052 00053 virtual void 00054 format( 00055 double theValue, 00056 XalanDOMString& theResult); 00057 00058 virtual XalanDOMString 00059 format(int theValue); 00060 00061 virtual void 00062 format( 00063 int theValue, 00064 XalanDOMString& theResult); 00065 00066 virtual XalanDOMString 00067 format(unsigned int theValue); 00068 00069 virtual void 00070 format( 00071 unsigned int theValue, 00072 XalanDOMString& theResult); 00073 00074 virtual XalanDOMString 00075 format(long theValue); 00076 00077 virtual void 00078 format( 00079 long theValue, 00080 XalanDOMString& theResult); 00081 00082 virtual XalanDOMString 00083 format(unsigned long theValue); 00084 00085 virtual void 00086 format( 00087 unsigned long theValue, 00088 XalanDOMString& theResult); 00089 00090 virtual bool 00091 isGroupingUsed() const; 00092 00093 virtual void 00094 setGroupingUsed(bool bUsed); 00095 00096 virtual void 00097 setGroupingSize(unsigned long size); 00098 00099 virtual void 00100 setGroupingSeparator(const XalanDOMString& s); 00101 00102 private: 00103 00104 #if defined(XALAN_HAS_CPP_NAMESPACE) 00105 U_ICU_NAMESPACE::DecimalFormat* m_decimalFormat; 00106 #else 00107 DecimalFormat* m_decimalFormat; 00108 #endif 00109 }; 00110 00111 00112 00113 XALAN_CPP_NAMESPACE_END 00114 00115 00116 00117 #endif // ICUXALANNUMBERFORMATPROXY_HEADER_GUARD_1357924680

Interpreting class diagrams

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

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