Skip to content

Commit d18caaa

Browse files
TylerMSFTTylerMSFT
authored andcommitted
acrolinx
1 parent 99adbf4 commit d18caaa

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/text/how-to-convert-between-various-string-types.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ Hello, World! (basic_string)
785785

786786
## Converting between narrow and wide strings
787787

788-
Legacy C and Windows apps use code pages rather than Unicode encodings when handling narrow strings ("C"-style strings) and wide strings ("Unicode" strings).
788+
Legacy C and Windows apps use code pages rather than Unicode encodings when handling narrow strings (C-style strings) and wide strings (Unicode strings).
789789

790790
.NET strings are UTF-16, but ATL's `CStringA` is a narrow string, and the conversion from wide to narrow is performed by the [`WideCharToMultiByte`](/windows/win32/api/stringapiset/nf-stringapiset-widechartomultibyte) Win32 function. When converting a C-style `CHAR*` (a C-style `CHAR*` is a .NET `byte*`) to a string, the opposite Win32 function, [`MultiByteToWideChar`](/windows/win32/api/stringapiset/nf-stringapiset-multibytetowidechar) is called.
791791

@@ -801,11 +801,11 @@ Another approach is to use [`pinvoke`](/dotnet/standard/native-interop/pinvoke)
801801

802802
## See also
803803

804-
[ATL and MFC String Conversion Macros](../atl/reference/string-conversion-macros.md)\
805-
[CString Operations Relating to C-Style Strings](../atl-mfc-shared/cstring-operations-relating-to-c-style-strings.md)\
806-
[How to: Convert Standard String to `System::String`](../dotnet/how-to-convert-standard-string-to-system-string.md)\
807-
[How to: Convert `System::String` to Standard String](../dotnet/how-to-convert-system-string-to-standard-string.md)\
808-
[How to: Convert `System::String` to `wchar_t*` or `char*`](../dotnet/how-to-convert-system-string-to-wchar-t-star-or-char-star.md)\
804+
[ATL and MFC string conversion macros](../atl/reference/string-conversion-macros.md)\
805+
[`CString` operations relating to C-style strings](../atl-mfc-shared/cstring-operations-relating-to-c-style-strings.md)\
806+
[How to: convert standard `String` to `System::String`](../dotnet/how-to-convert-standard-string-to-system-string.md)\
807+
[How to: convert `System::String` to standard `String`](../dotnet/how-to-convert-system-string-to-standard-string.md)\
808+
[How to: convert `System::String` to `wchar_t*` or `char*`](../dotnet/how-to-convert-system-string-to-wchar-t-star-or-char-star.md)\
809809
[Programming with `CComBSTR`](../atl/programming-with-ccombstr-atl.md)\
810810
[`mbstowcs_s, _mbstowcs_s_l`](../c-runtime-library/reference/mbstowcs-s-mbstowcs-s-l.md)\
811811
[`wcstombs_s, _wcstombs_s_l`](../c-runtime-library/reference/wcstombs-s-wcstombs-s-l.md)\

0 commit comments

Comments
 (0)