utf8_helper.h
changeset 10 15fd256d4adb
parent 0 0aa9866d751c
child 33 39c7fbbbe028
     1.1 --- a/utf8_helper.h	Fri Apr 24 17:40:16 2015 +0200
     1.2 +++ b/utf8_helper.h	Fri Apr 24 20:24:47 2015 +0200
     1.3 @@ -1,6 +1,14 @@
     1.4  #pragma once
     1.5  
     1.6 -std::string utf8_string(std::wstring wstr, NORM_FORM norm = NormalizationC);
     1.7 -std::string utf8_string(BSTR bstr, NORM_FORM norm = NormalizationC);
     1.8 -std::wstring utf16_string(std::string str);
     1.9 -_bstr_t utf16_bstr(std::string str);
    1.10 +namespace pEp {
    1.11 +    namespace utility {
    1.12 +
    1.13 +        std::string utf8_string(std::wstring wstr, NORM_FORM norm = NormalizationC);
    1.14 +        std::string utf8_string(BSTR bstr, NORM_FORM norm = NormalizationC);
    1.15 +        std::wstring utf16_string(std::string str);
    1.16 +        _bstr_t utf16_bstr(std::string str);
    1.17 +        ATL::CComSafeArray<BSTR> string_array(const ::stringlist_t *stringlist);
    1.18 +        ::stringlist_t * new_stringlist(const SAFEARRAY * safearray);
    1.19 +
    1.20 +    }
    1.21 +}