utf8_helper.h
author Markus Schaber <markus@pep-security.net>
Wed, 07 Feb 2018 19:42:45 +0100
branchCOM-74
changeset 272 0cd9b4cde17c
parent 40 dfb59114debe
permissions -rw-r--r--
COM-74: Expose _PEP_enc_format to app for EncryptMessage

- Suppress exception in the now-common case of PEP_KEY_NOT_FOUND as requested by Thomas.
     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 utf16_bstr(std::string str);
    10         LPSAFEARRAY string_array(const ::stringlist_t *stringlist);
    11         ::stringlist_t * new_stringlist(const SAFEARRAY * safearray);
    12     }
    13 }