Commit Graph

200 Commits

Author SHA1 Message Date
Piotr Caban a2b71b732a msvcrt: Added _mbsnbicoll_l implementation. 2012-12-12 12:01:22 +01:00
Piotr Caban 5e50ec3df2 msvcrt: Added mbsrtowcs implementation. 2012-11-29 11:23:03 +01:00
Piotr Caban 4b67531bf7 msvcrt: Added mbrtowc implementation. 2012-11-29 11:16:51 +01:00
Piotr Caban b8ee0dd7ab msvcrt: Added mbrlen implementation. 2012-11-29 11:16:38 +01:00
Daniel Lehman ffa7ac7331 msvcrt: Return value from MSVCRT____mb_cur_max_func instead of pointer. 2012-11-01 19:01:34 +01:00
Alexandre Julliard 06989a0483 msvcrt: Make sure that errno is always set when calling the invalid parameter handler. 2012-07-26 11:05:32 +02:00
Akihiro Sagawa ece5d712f6 msvcrt: Fix _mbsnbcmp and _mbsnbicmp implementation. 2012-03-26 18:15:33 +02:00
Akihiro Sagawa 7535b367dd msvcrt: Fix _mbcjistojms off by one error. 2012-03-26 18:15:33 +02:00
Akihiro Sagawa 578d85f320 msvcrt: Improve _mbbtombc to handle Japanese characters. 2012-03-26 18:15:31 +02:00
Akihiro Sagawa c9f1489cab msvcrt: Implement _mbcjmstojis. 2012-03-16 11:11:07 +01:00
Akihiro Sagawa 0800572257 msvcrt: Add semi stub _mbcjmstojis implementation. 2012-03-16 11:10:54 +01:00
Akihiro Sagawa 28184600e7 msvcrt: Add validity checks for _mbstrlen_l. 2011-12-01 14:17:35 +01:00
Akihiro Sagawa f9403bfb90 msvcrt: Use given locale info in _mbtowcs_l. 2011-12-01 14:15:12 +01:00
Piotr Caban 698afdca98 msvcrt: Don't search for LCID in _setmbcp_l if it was already done. 2011-10-26 17:07:05 +02:00
Piotr Caban fea69b2305 msvcrt: Don't duplicate _setmbcp functionality inside _create_locale function. 2011-10-13 19:57:19 +02:00
Piotr Caban 99579ca42a msvcrt: Added _mbtowc_l implementation. 2011-10-12 17:09:34 +02:00
Piotr Caban c32d4e8840 msvcrt: Use _ismbblead instead of _isleadbyte in mbcodepage dependent functions. 2011-10-12 17:09:25 +02:00
Piotr Caban cfca12e486 msvcrt: Use ismbcodepage instead of mb_cur_max in mbcodepage dependent functions. 2011-10-12 17:09:20 +02:00
Piotr Caban c9cdb55066 msvcrt: Handle C locale in _setmbcp. 2011-10-12 17:09:12 +02:00
Piotr Caban 6991ac0331 msvcrt: Use get_locinfo instead of get_locale. 2011-05-25 11:45:42 +02:00
Piotr Caban fdffe548f1 msvcrt: Added space for nullbyte in size returned by wcstombs_s and mbstowcs_s. 2011-03-30 18:59:22 +02:00
Konrad Rzepecki 332d5954ed msvcrt: Implement _mbslwr_s. 2011-03-29 12:19:37 +02:00
Konrad Rzepecki 0b3175cb24 msvcrt: Implement _mbsupr_s. 2011-03-29 12:19:30 +02:00
Eric Pouech 8583bd317e msvcrt: Use parameter validation macros for mcstowcs_s_l. 2010-11-01 12:34:50 +01:00
Andrew Nguyen a622af49a7 msvcrt: Implement _mbsnbcat_s. 2010-10-21 12:30:35 +02:00
Alexander Scott-Johns 2663079c60 msvcrt: Rename _TRUNCATE to MSVCRT__TRUNCATE. 2010-06-07 13:51:34 +02:00
Piotr Caban 2ca3b9e016 msvcrt: Fix mbstowcs_l implementation. 2010-05-24 11:25:04 +02:00
Piotr Caban 7352ee844e msvcrt: Added mbstowcs(_s_l) implementation. 2010-05-06 15:19:52 +02:00
Piotr Caban d367314b46 msvcrt: Added _mbstrlen_l implementation. 2010-05-06 15:18:57 +02:00
Piotr Caban 100e925cb4 msvcrt: Added ___mb_cur_max_l_func implementation. 2010-05-05 15:26:50 +02:00
Piotr Caban d1fa8b64e4 msvcrt: Use per thread locale in many functions. 2010-04-15 16:51:47 +02:00
Piotr Caban b90320652d msvcrt: Rename functions conflicting with mingw headers. 2010-03-29 15:50:19 +02:00
David Hedberg 4148ac0ab5 msvcrt: Implement _mbctombb. 2010-02-24 15:12:30 +01:00
David Hedberg 30f6dc9510 msvcrt: Implement _ismbclegal. 2010-02-23 12:09:45 +01:00
David Hedberg 85cc5dd1b2 msvcrt: Add trail bytes info for codepage 1361. 2010-02-23 12:09:33 +01:00
Michael Stefaniuc 5f0fb8350f msvcrt: Replace size_t with MSVCRT_size_t. 2009-05-27 15:39:57 +02:00
David Hedberg 2254a549a6 msvcrt: Implement _mbcjistojms. 2009-02-06 13:03:34 +01:00
Alexandre Julliard b19913ac70 msvcrt: Add a few more *_func functions to replace the __p_* ones. 2008-12-15 16:03:32 +01:00
Alexandre Julliard 7a6c6747a9 msvcrt: Don't include msvcrt headers, instead duplicate the definitions in msvcrt.h. 2008-12-12 10:19:55 +01:00
Alexandre Julliard 9c29dbd987 Avoid exporting common symbols since that's broken on Mac OS X. 2008-07-21 14:47:55 +02:00
Alexandre Julliard d66b9f7e48 msvcrt: Use the correct msvcrt defines for errno values. 2008-02-27 14:52:25 +01:00
Alexandre Julliard a470afca6c msvcrt: Fix incorrect uses of msvcrt_set_errno. 2008-02-27 14:52:25 +01:00
Stefan Dösinger a529ef4875 msvcrt: Implement _mbsnbcpy_s. 2007-11-16 15:07:55 +01:00
Francois Gouget a116879507 Assorted spelling fixes. 2007-08-30 12:26:02 +02:00
Alexandre Julliard 26d50d6ee1 msvcrt: Don't include mbstring.h to avoid conflicts with system headers. 2007-08-24 15:11:17 +02:00
Mikolaj Zalewski 758539c8a3 msvcrt: Implement and test _mbsbtype. 2007-08-24 10:57:16 +02:00
Mikolaj Zalewski 884d718c49 msvcrt: Test and fix _ismbslead and _ismbstrail. 2007-08-24 10:57:16 +02:00
Mikolaj Zalewski 9a2d605dd9 msvcrt: Test and fix _mbsinc/_mbsninc. 2007-08-23 12:43:16 +02:00
Mikolaj Zalewski cf8cf1d7f9 msvcrt: Don't test codepage 20932. 2007-08-23 12:43:04 +02:00
Mikolaj Zalewski c5268a20ab msvcrt: Test and fix _mbccpy, _mbsncpy and _mbsnbcpy. 2007-08-23 12:42:54 +02:00
Mikolaj Zalewski 12ff6788b3 msvcrt: Test that some functions depends on locale codepage, not the one set by _setmbcp. 2007-08-21 13:00:41 +02:00
Mikolaj Zalewski cea1052f62 msvcrt: Test and fix _mbclen/_mbslen. 2007-08-21 13:00:33 +02:00
Mikolaj Zalewski 545f446bf3 msvcrt: Test and fix _mbsnextc. 2007-08-21 13:00:16 +02:00
Mikolaj Zalewski ba43c67f8f msvcrt: Implement _ismbblead/_ismbbtrail using _mbctype (with tests). 2007-08-21 13:00:06 +02:00
Mikolaj Zalewski ea824f830f msvcrt: Fill _mbctype table in _setmbcp. 2007-08-21 12:59:56 +02:00
Mikolaj Zalewski e9ec5d4aff msvcrt: __mb_cur_max is not updated in _setmbcp (with testcase) and should not be used in _ismbblead. 2007-08-17 12:43:19 +02:00
Damjan Jovanovic d85b10accb msvcrt: mbsnbicmp should be case insensitive. 2007-08-06 13:57:58 +02:00
Juan Lang 24dbdf8fa5 msvcrt: Implement _mbbtype according to MSDN. 2007-02-07 11:34:26 +01:00
Alexandre Julliard 6f9ad1b981 msvcrt: Export various locale and codepage variables. 2007-01-16 12:08:59 +01:00
Duane Clark 67386352c8 msvcrt: Add function _mbsspnp. 2006-12-24 13:07:22 +01:00
Alexandre Julliard 24beabfd4e msvcrt: Explicitly specify CDECL calling convention on exported functions. 2006-06-13 11:40:23 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Alexandre Julliard b7b7f2b679 Avoid importing _strlwr/_strupr from ntdll. 2006-01-24 12:24:05 +01:00
Alexandre Julliard b34ac466b1 msvcrt: Added wrappers for a few functions instead of linking them
directly to libc.
2006-01-14 17:40:29 +01:00
Rein Klazes 3d96c56f24 Do not forward _mbccpy to strcpy.
Remove the error message in _mbccpy, it is not an error.
2005-11-21 13:34:29 +00:00
Rein Klazes 6f92870a80 Fix _mbsspn() with conformance tests. 2005-11-21 12:03:18 +00:00
Vitaly Lipatov 442c253a01 Add missed _mbscoll function. 2005-08-24 18:14:06 +00:00
Mike McCormack 792d7eb23d Fix gcc 4.0 warnings. 2005-08-23 18:49:18 +00:00
Alexandre Julliard 240d4ee9e1 Remove a few more instances of strncpy. 2005-04-25 15:51:45 +00:00
Eric Pouech 05413fccc5 Fixed some signed / unsigned pointer casts. 2005-04-18 09:54:03 +00:00
Jon Griffiths eb5bf7dd38 Documentation spelling fixes. 2005-02-25 14:07:56 +00:00
Francois Gouget f8e01efb3d Assorted spelling fixes. 2004-07-23 23:02:09 +00:00
Dimitrie O. Paun 0377462460 Split the MSVCRT implementation headers from the public headers.
Fix some naming conventions aberrations.
Add tests to ensure consistency between the two sets of symbols.
2004-06-25 01:19:15 +00:00
Michael Stefaniuc 7d77d77d71 mbtowc returns -1 if we can't find a valid multibyte char in the non
NULL source string.
2003-04-17 02:15:03 +00:00
Michael Stefaniuc 909ffb7930 Implemented _mbsnbcat. 2003-02-14 23:26:58 +00:00
Michael Stefaniuc 3dcd451bf6 Remove dead code after return or properly comment it out. 2003-02-12 01:23:17 +00:00
Alexandre Julliard bb2210bc45 Store mbstok() next pointer in the per-thread data. 2003-02-01 00:59:22 +00:00
Michael Stefaniuc d76455df74 Implemented _mbstok and _mbsnbset. 2003-02-01 00:45:22 +00:00
Marcus Meissner af39862fe3 Implemented mbsicoll (without locale handling). 2003-01-31 03:20:25 +00:00
Alexandre Julliard 5f31b32946 Use MSVCRT_wchar_t instead of WCHAR so that the implementation matches
the prototypes.
2002-12-19 04:21:30 +00:00
Alexandre Julliard 083b0beb0b Implemented some ismbc* functions (based on a patch by Greg Turner). 2002-11-19 00:52:38 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
François Gouget 7ccf8bc87d Implemented _mbsnbicmp. 2002-04-02 02:42:58 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Alexandre Julliard bd1689ec0a Don't include debugtools.h in the header file, moved it to the C files
that need it (and used the new wine/debug.h while we are at it).
2002-01-22 00:57:16 +00:00
François Gouget 63d133172b Cleanup and improve the mbcs support.
Add mbctype.h and mbstring.h.
Implement putwc and putwchar.
2001-12-05 22:11:35 +00:00
Gerard Patel 3953614bbd - implement mbscspn mostly as a stub
- reimplement mktime
2001-11-12 15:47:26 +00:00
Francois Gouget bab91aa4af Implemented _mbsupr. 2001-09-17 19:02:21 +00:00
Marcus Meissner 2378305c89 Implemented mbsnbcnt, added stubs for _Gettnames and __lc_collate_cp. 2001-09-07 18:34:45 +00:00
Mike McCormack 0dae258385 Implemented msvcrt._mbspbrk. 2001-08-10 22:24:54 +00:00
Mike McCormack 7b3495ac93 Implemented multibyte string reverse. 2001-08-09 21:37:19 +00:00
Patrik Stridvall 4b1574577d - Made sure that the files that contains the declarations
of the implementated functions are included.
- Corrected mismatching prototypes.
- Cleaned up the include section.
2001-07-23 23:50:18 +00:00
Patrik Stridvall 33929be46f - Made sure that the files that contains the declarations
of implementated functions are included.
- Corrected mismatching prototypes.
- Cleaned up the include section.
2001-07-18 21:04:23 +00:00
Uwe Bonnes e0cef27056 Semistubs for _ismbcdigit,_ismbcspace,_mbslwr,_mbsnbcmp,_mbsspn. 2001-07-11 20:13:14 +00:00
Patrik Stridvall 8b216b3d02 Documentation ordinal fixes. 2001-06-19 18:20:47 +00:00
Francois Gouget e7f75c5dfb Include the msvcrt headers, remove duplicate definitions.
Fixed the signature of a few functions.
Don't use wcs* functions, use *W (from unicode.h) instead.
2001-04-10 23:25:25 +00:00
Francois Gouget 203a8f8290 Adjust the 'MSVCRT_' prefix to match the msvcrt headers
Prefix internal methods with 'msvcrt_' instead of 'MSVCRT_', '__MSVCRT_', etc.
Remove '_cdecl', it's unnecessary
2001-04-10 21:16:07 +00:00
Francois Gouget 05fc3cdf9a Typo fixes in comments. 2001-01-22 02:22:26 +00:00
Jon Griffiths a91a28cf5a Fixes as a result of testing builtin crtdll against builtin msvcrt. 2001-01-12 19:56:22 +00:00
Jon Griffiths 1db20bfd33 - Migrate CRTDLL to MSVCRT.
- Many fixes and a load of new functions.
2001-01-10 23:59:25 +00:00