| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
file to avoid extern'ing them all over the place.
|
|
|
|
|
| |
taking shortcuts when it comes to storing and passing around conversion
states.
|
|
|
|
| |
old rune interface now that it is no longer needed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
the buffer has zero length (n == 0).
|
| |
|
|
manipulation functions mbrlen(), mbrtowc(), mbsinit(), mbsrtowcs(),
wcrtomb(), wcsrtombs().
|