summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/mblen.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement xlocale APIs from Darwin, mainly for use by libc++. This adds atheraven2011-11-201-4/+15
| | | | | | | | | | | | 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)
* Remove unnecessary #include directives.tjr2004-07-291-2/+0
|
* Remove useless checks for characters longer than INT_MAX bytes.tjr2004-07-291-4/+0
|
* Reduce overhead by calling internal versions of the multibyte conversiontjr2004-05-121-1/+2
| | | | functions directly wherever possible.
* Prepare to handle state-dependent encodings. This mainly involves nottjr2004-04-061-6/+20
| | | | | taking shortcuts when it comes to storing and passing around conversion states.
* Implement mblen(s, n) as mbtowc(NULL, s, n) to avoid calling sgetrune()tjr2003-08-071-26/+9
| | | | | and to simplify things. This is only valid until we start supporting state-dependent encodings.
* Handle boundary cases more correctly; mblen(s, 0) and mbtowc(NULL, s, 0)tjr2002-10-281-4/+3
| | | | | | | return -1 regardless of what s points to, mbtowc(&w, s, 1) sets w to a null wide character when s points to a null byte. This seems to be closer to what most other implementations do, but the C99 standard contradicts itself for these cases.
* Style sweep.tjr2002-10-271-7/+6
|
* Set errno to EILSEQ when invalid multibyte sequences are detectedtjr2002-09-031-1/+4
| | | | (XSI extension to 1003.1-2001).
* Split ansi.c into a separate source file for each function.tjr2002-08-311-0/+57
OpenPOWER on IntegriCloud