utf8_helper.h
author Volker Birk <vb@pep-project.org>
Fri, 24 Apr 2015 20:24:47 +0200
changeset 10 15fd256d4adb
parent 0 0aa9866d751c
child 33 39c7fbbbe028
permissions -rw-r--r--
moving into cpp file
vb@0
     1
#pragma once
vb@0
     2
vb@10
     3
namespace pEp {
vb@10
     4
    namespace utility {
vb@10
     5
vb@10
     6
        std::string utf8_string(std::wstring wstr, NORM_FORM norm = NormalizationC);
vb@10
     7
        std::string utf8_string(BSTR bstr, NORM_FORM norm = NormalizationC);
vb@10
     8
        std::wstring utf16_string(std::string str);
vb@10
     9
        _bstr_t utf16_bstr(std::string str);
vb@10
    10
        ATL::CComSafeArray<BSTR> string_array(const ::stringlist_t *stringlist);
vb@10
    11
        ::stringlist_t * new_stringlist(const SAFEARRAY * safearray);
vb@10
    12
vb@10
    13
    }
vb@10
    14
}