diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2015-04-02 20:04:52 +0100 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2015-04-02 20:04:52 +0100 |
| commit | 3df564da98071d088879b6c15e0b02e0e7952668 (patch) | |
| tree | ea78e4cbbf3a0f42a97dadf8ad58c796cf734d8f /emu/Nt/ie-os.c | |
| parent | 779758698838199ce6b9ebd308692cd5375b02d7 (diff) | |
Rune16 conversion routines because Rune is 32 bits
Diffstat (limited to 'emu/Nt/ie-os.c')
| -rw-r--r-- | emu/Nt/ie-os.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/emu/Nt/ie-os.c b/emu/Nt/ie-os.c index f97b4e32..3e2654e7 100644 --- a/emu/Nt/ie-os.c +++ b/emu/Nt/ie-os.c @@ -789,39 +789,3 @@ segflush(void *a, ulong n) { return 0; } - -wchar_t * -widen(char *s) -{ - int n; - wchar_t *ws; - - n = utflen(s) + 1; - ws = smalloc(n*sizeof(wchar_t)); - utftorunes(ws, s, n); - return ws; -} - - -char * -narrowen(wchar_t *ws) -{ - char *s; - int n; - - n = widebytes(ws); - s = smalloc(n); - runestoutf(s, ws, n); - return s; -} - - -int -widebytes(wchar_t *ws) -{ - int n = 0; - - while (*ws) - n += runelen(*ws++); - return n+1; -} |
