Lines Matching +full:convert +full:- +full:source +full:- +full:map
1 /* -*- Mode: c; tab-width: 8; indent-tabs-mode: 1; c-basic-offset: 8; -*- */
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
50 * Map from the specified code page to UTF-16LE. in cp_to_utf_16le()
53 utf16le_len = MultiByteToWideChar(codepage, flags, cp_string, -1, in cp_to_utf_16le()
76 * Now convert. in cp_to_utf_16le()
78 utf16le_len = MultiByteToWideChar(codepage, flags, cp_string, -1, in cp_to_utf_16le()
83 * XXX - should this ever happen, given that in cp_to_utf_16le()
102 * Map from UTF-16LE to the specified code page. in utf_16le_to_cp()
104 * We convert composite characters to precomposed characters, in utf_16le_to_cp()
108 utf16le_string, -1, NULL, 0, NULL, NULL); in utf_16le_to_cp()
130 * Now convert. in utf_16le_to_cp()
133 utf16le_string, -1, cp_string, cp_len, NULL, NULL); in utf_16le_to_cp()
137 * XXX - should this ever happen, given that in utf_16le_to_cp()
150 * Convert an error message string from UTF-8 to the local code page, as
164 * Do this by converting to UTF-16LE and then to the local in utf_8_to_acp_truncated()
168 * can convert in place. in utf_8_to_acp_truncated()
172 * Map from UTF-8 to UTF-16LE. in utf_8_to_acp_truncated()
174 * Convert any invalid characters to REPLACEMENT CHARACTER. in utf_8_to_acp_truncated()
182 "Can't convert error string to the local code page"); in utf_8_to_acp_truncated()
187 * Now, convert that to the local code page. in utf_8_to_acp_truncated()
191 * XXX - we'd like some way to do what utf_16le_to_utf_8_truncated() in utf_8_to_acp_truncated()
196 * cutting a multi-byte character into pieces. in utf_8_to_acp_truncated()
198 * Converting to an un-truncated string using Windows APIs, and in utf_8_to_acp_truncated()
202 retval = WideCharToMultiByte(CP_THREAD_ACP, 0, utf_16_errbuf, -1, in utf_8_to_acp_truncated()
212 "Can't convert error string to the local code page"); in utf_8_to_acp_truncated()