summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/mbstowcs.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement xlocale APIs from Darwin, mainly for use by libc++. This adds atheraven2011-11-201-2/+13
| | | | | | | | | | | | load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation. Please test any code you have that uses the C standard locale functions! Reviewed by: das (gdtoa changes) Approved by: dim (mentor)
* Introduce a local variable and use it instead of passed in parameterrdivacky2009-01-151-1/+3
| | | | | | | | to get rid of restrict qualifier discarding. This lets libc compile cleanly in gnu99 mode. Suggested by: kib, christoph.mallon at gmx.de Approved by: kib (mentor)
* Implement the GNU extensions of mbsnrtowcs() and wcsnrtombs(). These aretjr2004-07-211-1/+2
| | | | | | | convenient when the source string isn't null-terminated. Implement the other conversion functions (mbstowcs(), mbsrtowcs(), wcstombs(), wcsrtombs()) in terms of these new functions.
* Allow encoding modules to override the default implementations oftjr2004-05-131-1/+2
| | | | | mbsrtowcs() and wcsrtombs(). Provide a fast implementation for the trivial "NONE" encoding.
* Begin in the initial shift state in mbstowcs() and wcstombs().tjr2004-04-071-1/+3
| | | | (This change is non-functional since nothing uses states yet.)
* Prepare to handle state-dependent encodings. This mainly involves nottjr2004-04-061-8/+3
| | | | | taking shortcuts when it comes to storing and passing around conversion states.
* Implement mbstowcs() as a wrapper around mbsrtowcs(), and wcstombs()tjr2003-08-071-56/+12
| | | | as a wrapper around wcsrtombs().
* Add a missing return statement for the pwcs == NULL case (XSI extension).tjr2002-11-091-0/+1
|
* Style sweep.tjr2002-10-271-8/+7
|
* Style: One space between "restrict" qualifier and "*".tjr2002-09-061-2/+2
|
* Add restrict qualifiers to the arguments of mbstowcs, mbtowc() andtjr2002-09-011-2/+2
| | | | wcstombs().
* Implement the XSI extension which allows the destination string to betjr2002-08-311-2/+23
| | | | | | | NULL, and returns the number of bytes that would be required to store the result of the conversion without storing anything. PR: 17694
* Split ansi.c into a separate source file for each function.tjr2002-08-311-0/+67
OpenPOWER on IntegriCloud