ChipMaster's trial hacks on C++CMS starting with v1.2.1. Not sure I'll follow on with the v2 since it looks to be breaking and mostly frivolous.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
526 B

  1. #ifndef CPPCMS_ICU_UTIL_H
  2. #define CPPCMS_ICU_UTIL_H
  3. #include "defs.h"
  4. #include "config.h"
  5. #include <string>
  6. #include <locale>
  7. #ifdef HAVE_ICU
  8. #include <unicode/unistr.h>
  9. namespace cppcms {
  10. namespace impl {
  11. std::string icu_to_utf8(icu::UnicodeString const &str);
  12. icu::UnicodeString utf8_to_icu(std::string const &str);
  13. std::string icu_to_std(icu::UnicodeString const &str,std::locale const &l);
  14. icu::UnicodeString std_to_icu(std::string const &str,std::locale const &l);
  15. } // util
  16. } // cppcms
  17. #endif
  18. #endif