summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/mbrtowc.c
Commit message (Collapse)AuthorAgeFilesLines
* Move prototypes of various encoding-related functions into a new headertjr2004-05-121-3/+1
| | | | file to avoid extern'ing them all over the place.
* Prepare to handle state-dependent encodings. This mainly involves nottjr2004-04-061-0/+3
| | | | | taking shortcuts when it comes to storing and passing around conversion states.
* Remove support for emulating mbrtowc() and wcrtomb() in terms of thetjr2004-04-041-50/+1
| | | | old rune interface now that it is no longer needed.
* Allow mbrtowc() and wcrtomb() to be implemented directly, instead oftjr2003-11-011-3/+18
| | | | | | | | | | | | | | | | | as wrappers around the deprecated 4.4BSD rune functions. This paves the way for state-dependent encodings, which the rune API does not support. - Add __emulated_sgetrune() and __emulated_sputrune(), which are implementations of sgetrune() and sputrune() in terms of mbrtowc() and wcrtomb(). - Rename the old rune-wrapper mbrtowc() and wcrtomb() functions to __emulated_mbrtowc() and __emulated_wcrtomb(). - Add __mbrtowc and __wcrtomb function pointers, which point to the current locale's conversion functions, or the __emulated versions. - Implement mbrtowc() and wcrtomb() as calls to these function pointers. - Make the "NONE" encoding implement mbrtowc() and wcrtomb() directly. All of this emulation mess will be removed, together with rune support, in FreeBSD 6.
* Don't check whether the first byte of the buffer is a null byte whentjr2002-11-101-7/+1
| | | | the buffer has zero length (n == 0).
* Style: One space between "restrict" qualifier and "*".tjr2002-09-061-2/+2
|
* Implement the ISO C90 Amd.1 restartable wide and multibyte charactertjr2002-08-181-0/+81
manipulation functions mbrlen(), mbrtowc(), mbsinit(), mbsrtowcs(), wcrtomb(), wcsrtombs().
OpenPOWER on IntegriCloud