mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 03:20:59 -05:00
Add utility function dup_wc_to_mb.
This parallels dup_mb_to_wc, which already existed. I haven't needed the same thing this way round yet, but I'm about to.
This commit is contained in:
4
misc.h
4
misc.h
@ -67,6 +67,10 @@ void strbuf_finalise_agent_query(strbuf *buf);
|
||||
* work around the rather deficient interface of mb_to_wc. */
|
||||
wchar_t *dup_mb_to_wc_c(int codepage, int flags, const char *string, int len);
|
||||
wchar_t *dup_mb_to_wc(int codepage, int flags, const char *string);
|
||||
char *dup_wc_to_mb_c(int codepage, int flags, const wchar_t *string, int len,
|
||||
const char *defchr, struct unicode_data *ucsdata);
|
||||
char *dup_wc_to_mb(int codepage, int flags, const wchar_t *string,
|
||||
const char *defchr, struct unicode_data *ucsdata);
|
||||
|
||||
static inline int toint(unsigned u)
|
||||
{
|
||||
|
Reference in New Issue
Block a user