stlab.adobe.com Adobe Systems Incorporated

platform_number_formatter_data.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2007 Adobe Systems Incorporated
00003     Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
00004     or a copy at http://stlab.adobe.com/licenses.html)
00005 */
00006 
00007 /****************************************************************************************************/
00008 
00009 #ifndef ADOBE_PLATFORM_NUMBER_FORMATTER_DATA_HPP
00010 #define ADOBE_PLATFORM_NUMBER_FORMATTER_DATA_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 #include <adobe/any_regular.hpp>
00015 #include <adobe/dictionary.hpp>
00016 #include <adobe/macintosh_carbon_safe.hpp>
00017 #include <adobe/macintosh_memory.hpp>
00018 
00019 #include <string>
00020 
00021 /****************************************************************************************************/
00022 
00023 namespace adobe {
00024 
00025 /****************************************************************************************************/
00026 
00027 struct number_formatter_platform_data_t
00028 {
00029     number_formatter_platform_data_t()
00030     { initialize(); }
00031 
00032     void          initialize();
00033     void          set_format(const std::string& format);
00034     std::string   get_format() const;
00035     std::string   format(const any_regular_t& x);
00036     any_regular_t parse(const std::string& str, any_regular_t the_type);
00037     void          monitor_locale(const dictionary_t&);
00038 
00039     auto_resource< ::CFNumberFormatterRef > formatter_m;
00040 
00041     // not for public consumption
00042     void do_format_update();
00043 };
00044 
00045 /****************************************************************************************************/
00046 
00047 } // namespace adobe
00048 
00049 /****************************************************************************************************/
00050 
00051 // ADOBE_PLATFORM_NUMBER_FORMATTER_DATA_HPP
00052 #endif
00053 
00054 /****************************************************************************************************/

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google