UTF8Conv

  • warning: Declaration of views_handler_filter::options_validate(&$form, &$form_state) should be compatible with views_handler::options_validate($form, &$form_state) in /web/sites/result42.com/html/sites/all/modules/views/handlers/views_handler_filter.inc on line 0.
  • warning: Declaration of views_handler_filter::options_submit(&$form, &$form_state) should be compatible with views_handler::options_submit($form, &$form_state) in /web/sites/result42.com/html/sites/all/modules/views/handlers/views_handler_filter.inc on line 0.
  • warning: Declaration of views_plugin_style_default::options(&$options) should be compatible with views_object::options() in /web/sites/result42.com/html/sites/all/modules/views/plugins/views_plugin_style_default.inc on line 0.
  • warning: Declaration of views_plugin_row::options_validate($form, &$form_state) should be compatible with views_plugin::options_validate(&$form, &$form_state) in /web/sites/result42.com/html/sites/all/modules/views/plugins/views_plugin_row.inc on line 0.
  • warning: Declaration of views_plugin_row::options_submit($form, &$form_state) should be compatible with views_plugin::options_submit(&$form, &$form_state) in /web/sites/result42.com/html/sites/all/modules/views/plugins/views_plugin_row.inc on line 0.

Downloads

Description

UTF8Conv is a C++ helper class that uses the Windows Win32 API to convert text to and from UTF8 format.

Functions

MacroDescription
UTF82TConvert UTF8 to T
T2UTF8T to UTF8
W2UTF8WCHAR* to UTF8
UTF82WUTF8 to WCHAR*

T is in unicode build defined a WCHAR* else it is defined as CHAR*

Usage examples

#include "UTF8Conv.h";

...
...
std::wstring strW = "My Unicode string";
std::string strUTF8 = W2UTF8(strW.c_str());

Tagged:  

( Try Multi Commander, A file manager for professionals )

Copyright (c) 2015 - Mathias Svensson