Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 2.87 KB

interpretation-of-multibyte-character-sequences.md

File metadata and controls

37 lines (34 loc) · 2.87 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Interpretation of Multibyte-Character Sequences | Microsoft Docs
11/04/2016
cpp-standard-libraries
article
c.character.multibyte
C++
MBCS [C++], locale code page
da9150de-70ea-4d2f-90e6-ddb9202dd80b
7
corob-msft
corob
ghogen

Interpretation of Multibyte-Character Sequences

Most multibyte-character routines in the Microsoft run-time library recognize multibyte-character sequences relating to a multibyte code page. The output value is affected by the setting of the LC_CTYPE category setting of the locale; see setlocale for more information. The versions of these functions without the _l suffix use the current locale for this locale-dependent behavior; the versions with the _l suffix are identical except that they use the locale parameter passed in instead.

Locale-Dependent Multibyte Routines

Routine Use
_mbclen, mblen, _mblen_l Validate and return number of bytes in multibyte character
strlen, wcslen, _mbslen, _mbslen_l, _mbstrlen, _mbstrlen_l For multibyte character strings: validate each character in string; return string length. For wide character strings: return string length.
mbstowcs, _mbstowcs_l, mbstowcs_s, _mbstowcs_s_l Convert sequence of multibyte characters to corresponding sequence of wide characters
mbtowc, _mbtowc_l Convert multibyte character to corresponding wide character
wcstombs, _wcstombs_l, wcstombs_s, _wcstombs_s_l Convert sequence of wide characters to corresponding sequence of multibyte characters
wctomb, _wctomb_l, wctomb_s, _wctomb_s_l Convert wide character to corresponding multibyte character
mbrtoc16, mbrtoc32 Convert multibyte character to equivalent UTF-16 or UTF-32 character
c16rtomb, c32rtomb Convert UTF-16 or UTF-32 character to equivalent multibyte character

See Also

Internationalization
Run-Time Routines by Category