comparison common/strhelp.h @ 1158:ffdc8cba139a

(issue36) Add acp_to_wchar based on utf8_to_wchar
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 18 Sep 2014 15:43:48 +0200
parents 17e1c8f37d72
children 82fab0c689bf
comparison
equal deleted inserted replaced
1157:fd7d04bb37cb 1158:ffdc8cba139a
130 * @returns pointer to a newly allocated wchar array. NULL on error. 130 * @returns pointer to a newly allocated wchar array. NULL on error.
131 * 131 *
132 **/ 132 **/
133 wchar_t *utf8_to_wchar (const char *string, size_t len); 133 wchar_t *utf8_to_wchar (const char *string, size_t len);
134 134
135 /** @brief convert a local 8 bit (acp) string to utf16 wchar
136 *
137 * @param[in] string acp string. Must be at least len characters long.
138 * @param[in] len number of characters to be converted.
139 *
140 * @returns pointer to a newly allocated wchar array. NULL on error.
141 *
142 **/
143 wchar_t *acp_to_wchar (const char *string, size_t len);
144
135 /** @brief convert a utf16 string to utf8 145 /** @brief convert a utf16 string to utf8
136 * 146 *
137 * @param[in] string utf16 string. Must be at least len characters long. 147 * @param[in] string utf16 string. Must be at least len characters long.
138 * @param[in] len number of characters to be converted. 148 * @param[in] len number of characters to be converted.
139 * 149 *

http://wald.intevation.org/projects/trustbridge/