Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unnecessary inclusion of <rune.h> to make it obvious that this file | tjr | 2002-10-29 | 1 | -1/+0 |
| | | | | does not use the deprecated rune system. | ||||
* | Handle boundary cases more correctly; mblen(s, 0) and mbtowc(NULL, s, 0) | tjr | 2002-10-28 | 2 | -8/+6 |
| | | | | | | | 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. | ||||
* | Do not include <sys/syslimits.h> directly; it is not intended for general | wollman | 2002-10-27 | 1 | -1/+2 |
| | | | | consumption. | ||||
* | Style sweep. | tjr | 2002-10-27 | 5 | -40/+32 |
| | |||||
* | Use an internal buffer for the result when the first argument is NULL. | tjr | 2002-10-25 | 1 | -0/+4 |
| | |||||
* | Avoid truncating invalid wide characters that are outside the range of | tjr | 2002-10-16 | 1 | -1/+8 |
| | | | | 'unsigned char'; signal an error instead. | ||||
* | FA, FB and FC are lead bytes according to recent Microsoft documentation. | tjr | 2002-10-14 | 1 | -1/+1 |
| | |||||
* | Style changes. Mainly removing excessive whitespace and parens. | tjr | 2002-10-14 | 1 | -24/+29 |
| | |||||
* | Cosmetic: use LCMONETARY_SIZE_{FULL,MIN} defines like in other places | ache | 2002-10-12 | 1 | -4/+5 |
| | |||||
* | Add a UTF-8 encoding method, which will eventually replace the antique | tjr | 2002-10-10 | 10 | -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 formatting | tjr | 2002-10-09 | 4 | -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 functions | tjr | 2002-10-06 | 13 | -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 the | tjr | 2002-10-06 | 1 | -16/+2 |
| | | | | ISO C interface. | ||||
* | Remove a completely incorrect statement from the Return Values section. | tjr | 2002-10-06 | 1 | -5/+6 |
| | | | | Add cross-references to the restartable mulitybte functions (mbrlen(3) etc.) | ||||
* | Improve three instances of questionable or confusing grammar. | tjr | 2002-10-03 | 1 | -5/+8 |
| | |||||
* | Add an example. | tjr | 2002-10-03 | 1 | -1/+22 |
| | |||||
* | Document towlower() and towupper() in separate manual pages instead of | tjr | 2002-10-03 | 3 | -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's | tjr | 2002-10-03 | 2 | -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 should | tjr | 2002-10-03 | 1 | -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. | tjr | 2002-10-03 | 3 | -3/+54 |
| | |||||
* | Warn when setinvalidrune() is referenced for consistency with the rest | tjr | 2002-09-24 | 1 | -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. | tjr | 2002-09-22 | 6 | -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. | tjr | 2002-09-18 | 2 | -0/+22 |
| | |||||
* | Mark mbmb(), mbrune(), and mbrrune() as deprecated functions. We want to | tjr | 2002-09-18 | 2 | -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 characters | tjr | 2002-09-15 | 3 | -2/+162 |
| | | | | that strtod() does not (alternate digit characters, etc. are not handled). | ||||
* | Use the heap instead of the stack to store temporary multibyte string | tjr | 2002-09-15 | 1 | -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, | tjr | 2002-09-12 | 1 | -2/+2 |
| | | | | not wchar_t * restrict. | ||||
* | Add an implementation of wcsftime() (wide character version of strftime()). | tjr | 2002-09-11 | 3 | -2/+152 |
| | |||||
* | Add wcstol() and wcstoul(), based on strtol() and strtoul(). | tjr | 2002-09-08 | 4 | -4/+314 |
| | |||||
* | Style: One space between "restrict" qualifier and "*". | tjr | 2002-09-06 | 14 | -22/+22 |
| | |||||
* | Set errno to EILSEQ when invalid multibyte sequences are detected | tjr | 2002-09-03 | 3 | -3/+14 |
| | | | | (XSI extension to 1003.1-2001). | ||||
* | Typo: refer to MB_LEN_MAX instead of MB_CHAR_MAX (which does not exist). | tjr | 2002-09-01 | 1 | -1/+1 |
| | |||||
* | Add restrict qualifiers to the arguments of mbstowcs, mbtowc() and | tjr | 2002-09-01 | 4 | -9/+9 |
| | | | | wcstombs(). | ||||
* | Implement the XSI extension which allows the destination string to be | tjr | 2002-08-31 | 2 | -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. | tjr | 2002-08-31 | 6 | -85/+253 |
| | |||||
* | Use ntohl() to read cnains number in new format | ache | 2002-08-31 | 1 | -2/+4 |
| | |||||
* | Style fix | ache | 2002-08-30 | 1 | -3/+3 |
| | |||||
* | Prepare for switching to unlimited chains format. | ache | 2002-08-30 | 2 | -23/+46 |
| | | | | Optimize chains lookup a bit. | ||||
* | o Merge <machine/ansi.h> and <machine/types.h> into a new header | mike | 2002-08-21 | 3 | -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(). | tjr | 2002-08-20 | 2 | -1/+63 |
| | |||||
* | Remove wcswidth.c from here (and move it to "string") | ache | 2002-08-20 | 2 | -65/+1 |
| | |||||
* | Remove space at the end of continuation line in prev. commit | ache | 2002-08-20 | 1 | -1/+1 |
| | |||||
* | Implement wcswidth() | ache | 2002-08-19 | 2 | -2/+66 |
| | |||||
* | Use modern-style arguments declaration | ache | 2002-08-19 | 1 | -2/+1 |
| | |||||
* | Write null wide-character as L'\0' like in other places | ache | 2002-08-19 | 1 | -1/+1 |
| | |||||
* | According to SUSv2, always return 0 for null wide-character code | ache | 2002-08-19 | 1 | -1/+6 |
| | |||||
* | Move internal defines from ctype.h here | ache | 2002-08-19 | 1 | -0/+4 |
| | |||||
* | Implement the ISO C90 Amd.1 restartable wide and multibyte character | tjr | 2002-08-18 | 13 | -4/+1020 |
| | | | | | manipulation functions mbrlen(), mbrtowc(), mbsinit(), mbsrtowcs(), wcrtomb(), wcsrtombs(). | ||||
* | Move wcwidth() to separate file, it doesn't belong to iswctype.c at all | ache | 2002-08-17 | 3 | -11/+58 |
| | |||||
* | According to SUSv2, wcwidth() should return -1 for non-printing characters | ache | 2002-08-17 | 1 | -1/+1 |
| |