utf8_helper.h
author Volker Birk <vb@pep-project.org>
Sun, 31 May 2015 19:31:19 +0200
changeset 39 6fc5cc7a167c
parent 33 39c7fbbbe028
child 40 dfb59114debe
permissions -rw-r--r--
safer
     1 #pragma once
     2 
     3 namespace pEp {
     4     namespace utility {
     5 
     6         std::string utf8_string(std::wstring wstr, NORM_FORM norm = NormalizationC);
     7         std::string utf8_string(BSTR bstr, NORM_FORM norm = NormalizationC);
     8         std::wstring utf16_string(std::string str);
     9         _bstr_t utf16_bstr(std::string str);
    10         ATL::CComSafeArray<BSTR> string_array(const ::stringlist_t *stringlist);
    11         ::stringlist_t * new_stringlist(const SAFEARRAY * safearray);
    12     }
    13 }