Commit Graph

128 Commits

Author SHA1 Message Date
Bernhard Übelacker 4fa616c37c msvcrt: Fix strtok_s and _mbstok_s for empty strings.
Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 20:38:15 +09:00
Piotr Caban f091d9edf6 msvcrt: Fix C locale handling in mbstowcs.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-14 19:20:19 +09:00
Piotr Caban 7efd0c2c79 msvcrt: Return error in mbstowcs if conversion fails.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-14 19:20:17 +09:00
Hadrien Boizard 39037a14e8 msvcrt: Use BOOL type where appropriate.
Signed-off-by: Hadrien Boizard <h.boizard@laposte.net>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-31 11:31:01 +09:00
Piotr Caban 540d969150 msvcrt: Add mbsrtowcs_s implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 21:16:49 +09:00
Piotr Caban 4f5a68412b msvcrt: Fix mbsrtowcs behavior when no out buffer is passed.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 21:16:43 +09:00
Piotr Caban a36b5f0741 msvcrt: Fix mbtowc behavior for buffers containing more than one character.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-14 12:09:22 +09:00
Piotr Caban 9f532321d0 msvcrt: Return error if last known character is further in the string then current character.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:20:00 +01:00
Piotr Caban aa612612b7 msvcr60: Fix _mbscoll implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2015-10-02 15:38:35 +09:00
Francois Gouget f8a7d6ed74 Assorted spelling fixes. 2015-08-07 23:50:48 +09:00
Piotr Caban cf20731447 msvcrt: Add _mbscat_s_l implementation. 2015-07-07 16:52:20 +09:00
Piotr Caban 0eb112aa6e msvcrt: Add ismbblead_l implementation. 2015-07-07 16:52:20 +09:00
Hans Leidekker bbd0e56a58 msvcrt: Handle NULL arguments in _mbscmp. 2015-04-24 22:04:09 +09:00
Akihiro Sagawa cd5a76b182 msvcrt: Add _mbctokata implementation. 2015-03-17 00:20:00 +09:00
Akihiro Sagawa b6ab2b6268 msvcrt: Add _mbctohira implementation. 2015-03-17 00:19:58 +09:00
Akihiro Sagawa a2149ba7ba msvcrt: Fix _ismbckata() for Halfwidth Katakana characters. 2015-03-17 00:19:57 +09:00
Piotr Caban 9f17544bc9 msvcrt: Add _mbscpy_s implementation. 2014-05-19 13:01:34 +02:00
Piotr Caban aebe1c69f9 msvcrt: Add _mbsnbcpy_s_l implementation. 2014-05-19 13:01:22 +02:00
Alexandre Julliard 0c496f0280 msvcrt: Update comments for non-exported functions. 2014-04-21 14:32:40 +02:00
Piotr Caban 49e503c55a msvcrt: Remove no longer needed exports. 2014-04-21 14:31:48 +02:00
Piotr Caban beeea28a53 msvcr100: Move functions implementation to msvcrt. 2014-04-16 18:00:15 +02:00
Piotr Caban 544d179434 msvcrt: Handle null mbstr parameter in mbstowcs. 2014-01-08 16:11:31 +01:00
Piotr Caban 779c1f8049 msvcrt: Don't call invalid parameter handler when string to be tokenized and context are not set in mbstok. 2013-06-21 16:23:35 +02:00
Piotr Caban ff7388ca3f msvcrt: Added _mbstok_s_l implementation. 2013-04-30 18:44:46 +02:00
Jactry Zeng 7cd91b6452 msvcrt: Fixed typo of _strncoll and _strncoll_l. 2013-04-29 20:30:55 +02:00
Akihiro Sagawa 23b8c4df19 msvcrt: Fix mbtowc_l in C locale. 2013-03-27 20:12:28 +01:00
Piotr Caban 7afc98a7f7 msvcrt: Fixed codepage setting code in create_locale. 2012-12-18 12:38:12 +01:00
Piotr Caban f5c8647919 msvcrt: Added _mbsnbcoll_l implementation. 2012-12-12 12:01:36 +01:00
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