diff 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
line wrap: on
line diff
--- a/common/strhelp.h	Thu Sep 18 15:43:22 2014 +0200
+++ b/common/strhelp.h	Thu Sep 18 15:43:48 2014 +0200
@@ -132,6 +132,16 @@
  **/
 wchar_t *utf8_to_wchar (const char *string, size_t len);
 
+/** @brief convert a local 8 bit (acp) string to utf16 wchar
+ *
+ * @param[in] string acp string. Must be at least len characters long.
+ * @param[in] len number of characters to be converted.
+ *
+ * @returns pointer to a newly allocated wchar array. NULL on error.
+ *
+ **/
+wchar_t *acp_to_wchar (const char *string, size_t len);
+
 /** @brief convert a utf16 string to utf8
  *
  * @param[in] string utf16 string. Must be at least len characters long.

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