summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale
Commit message (Collapse)AuthorAgeFilesLines
* FA, FB and FC are lead bytes according to recent Microsoft documentation.tjr2002-10-141-1/+1
|
* Style changes. Mainly removing excessive whitespace and parens.tjr2002-10-141-24/+29
|
* Cosmetic: use LCMONETARY_SIZE_{FULL,MIN} defines like in other placesache2002-10-121-4/+5
|
* Add a UTF-8 encoding method, which will eventually replace the antiquetjr2002-10-1010-9/+349
| | | | | | | "UTF2" method. Although UTF-8 and the old UTF2 encoding are compatible for 16-bit characters, the new UTF-8 implementation is much more strict about rejecting malformed input and also handles the full 31 bit range of characters.
* Add support for the 6 new C99 struct lconv members dealing with formattingtjr2002-10-094-4/+76
| | | | | | | | | international monetary values: int_p_cs_precedes, int_n_cs_precedes, int_p_sep_by_space, int_n_sep_by_space, int_p_sign_posn, int_n_sign_posn. This should not break existing binaries or LC_MONETARY data files. Reviewed by: ache MFC after: 1 month
* Add a note to the Compatiblity section suggesting that these functionstjr2002-10-0613-13/+162
| | | | | only be used for byte values. Add cross-references to the wide-char counterparts.
* Remove rants/whines about the rune interface being superior to thetjr2002-10-061-16/+2
| | | | ISO C interface.
* Remove a completely incorrect statement from the Return Values section.tjr2002-10-061-5/+6
| | | | Add cross-references to the restartable mulitybte functions (mbrlen(3) etc.)
* Improve three instances of questionable or confusing grammar.tjr2002-10-031-5/+8
|
* Add an example.tjr2002-10-031-1/+22
|
* Document towlower() and towupper() in separate manual pages instead oftjr2002-10-033-24/+89
| | | | | trying to confusingly document both on the same page. The new manual pages are based on tolower(3) and toupper(3) instead of the old towlower(3).
* Point out that although toupper() and tolower() really accept rune_t'stjr2002-10-032-4/+28
| | | | | and not just unsigned char's, callers should use towupper() and towlower() instead when working with wide characters if portability is a concern.
* towlower() appeared twice in the synopsis; one of the occurrences shouldtjr2002-10-031-3/+3
| | | | | | have been towupper(). Add towupper() to the Name section while I'm at it. Obtained from: NetBSD (junyoung)
* Add an Examples section with an example of how to use the functions.tjr2002-10-033-3/+54
|
* Warn when setinvalidrune() is referenced for consistency with the resttjr2002-09-241-0/+1
| | | | | of the rune functions (except sgetrune() and sputrune(), which are really macros).
* Add the remaining C99 wide character string to integer conversion functions.tjr2002-09-226-16/+550
| | | | | Restrict qualifiers were added to the existing prototypes in <inttypes.h> and the typedef for wchar_t was removed.
* Deprecate the rest of the rune interface.tjr2002-09-182-0/+22
|
* Mark mbmb(), mbrune(), and mbrrune() as deprecated functions. We want totjr2002-09-182-0/+19
| | | | | | get applications to move to the ISO C interfaces as well as have the freedom to replace the rune interfaces with ones that support stateful conversions some time in the future.
* Add wcstod() as a wrapper around strtod(). It does not handle any characterstjr2002-09-153-2/+162
| | | | that strtod() does not (alternate digit characters, etc. are not handled).
* Use the heap instead of the stack to store temporary multibyte stringtjr2002-09-151-10/+28
| | | | | buffers; this is slower but safer for threaded programs where threads often have relatively low stack size limits.
* Correct type of second argument: it is wchar_t ** restrict,tjr2002-09-121-2/+2
| | | | not wchar_t * restrict.
* Add an implementation of wcsftime() (wide character version of strftime()).tjr2002-09-113-2/+152
|
* Add wcstol() and wcstoul(), based on strtol() and strtoul().tjr2002-09-084-4/+314
|
* Style: One space between "restrict" qualifier and "*".tjr2002-09-0614-22/+22
|
* Set errno to EILSEQ when invalid multibyte sequences are detectedtjr2002-09-033-3/+14
| | | | (XSI extension to 1003.1-2001).
* Typo: refer to MB_LEN_MAX instead of MB_CHAR_MAX (which does not exist).tjr2002-09-011-1/+1
|
* Add restrict qualifiers to the arguments of mbstowcs, mbtowc() andtjr2002-09-014-9/+9
| | | | wcstombs().
* Implement the XSI extension which allows the destination string to betjr2002-08-312-6/+48
| | | | | | | 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-316-85/+253
|
* Use ntohl() to read cnains number in new formatache2002-08-311-2/+4
|
* Style fixache2002-08-301-3/+3
|
* Prepare for switching to unlimited chains format.ache2002-08-302-23/+46
| | | | Optimize chains lookup a bit.
* o Merge <machine/ansi.h> and <machine/types.h> into a new headermike2002-08-213-5/+5
| | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien
* Add a manual page for wcwidth().tjr2002-08-202-1/+63
|
* Remove wcswidth.c from here (and move it to "string")ache2002-08-202-65/+1
|
* Remove space at the end of continuation line in prev. commitache2002-08-201-1/+1
|
* Implement wcswidth()ache2002-08-192-2/+66
|
* Use modern-style arguments declarationache2002-08-191-2/+1
|
* Write null wide-character as L'\0' like in other placesache2002-08-191-1/+1
|
* According to SUSv2, always return 0 for null wide-character codeache2002-08-191-1/+6
|
* Move internal defines from ctype.h hereache2002-08-191-0/+4
|
* Implement the ISO C90 Amd.1 restartable wide and multibyte charactertjr2002-08-1813-4/+1020
| | | | | manipulation functions mbrlen(), mbrtowc(), mbsinit(), mbsrtowcs(), wcrtomb(), wcsrtombs().
* Move wcwidth() to separate file, it doesn't belong to iswctype.c at allache2002-08-173-11/+58
|
* According to SUSv2, wcwidth() should return -1 for non-printing charactersache2002-08-171-1/+1
|
* Cosmetic - remove unneded brackets and #undefache2002-08-172-41/+40
|
* wcwidth: fix espression to work correctly with SWIDTH0ache2002-08-171-2/+4
|
* Add iswctype wcwidth function codekeichii2002-08-161-0/+10
| | | | | | | Submitted by: clkao@clkao.org Reviewed by: keichii Obtained from: NetBSD MFC after: 1 month
* Reduce BSS size for programs which not load collate by eliminatingache2002-08-132-10/+13
| | | | static buffer.
* Now malloc() is fixed, remove errno hardcoding to ENOMEMache2002-08-121-3/+6
|
* Add safeguards to never use errno == 0 as setrunelocale() error return codeache2002-08-093-7/+5
|
OpenPOWER on IntegriCloud