Skip to content

Commit d70631b

Browse files
author
Colin Robertson
committed
Acrolinx all the things.
1 parent 942db8b commit d70631b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/cpp/spectre.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Tells the compiler not to insert Spectre variant 1 speculative execution barrier
1616
1717
## Remarks
1818

19-
The [/Qspectre](../build/reference/qspectre.md) compiler option causes the compiler to insert speculative execution barrier instructions where analysis indicates that a Spectre variant 1 security vulnerability exists. The specific instructions emitted depend on the processor. While these instructions should have a minimal impact on code size or performance, there may be cases where your code is not affected by the vulnerability, and requires maximum performance.
19+
The [/Qspectre](../build/reference/qspectre.md) compiler option causes the compiler to insert speculative execution barrier instructions. They're inserted where analysis indicates that a Spectre variant 1 security vulnerability exists. The specific instructions emitted depend on the processor. While these instructions should have a minimal impact on code size or performance, there may be cases where your code is not affected by the vulnerability, and requires maximum performance.
2020

2121
Expert analysis might determine that a function is safe from a Spectre variant 1 bounds check bypass defect. In that case, you can suppress the generation of mitigation code within a function by applying `__declspec(spectre(nomitigation))` to the function declaration.
2222

‎docs/text/support-for-unicode.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ helpviewer_keywords: ["globalization [C++], character sets", "portable data type
55
---
66
# Support for Unicode
77

8-
Unicode is a specification for supporting all character sets, including those that cannot be represented in just one byte (that is, most of them). If you are programming for an international market, we recommend that you use either Unicode or a [multibyte character set](../text/support-for-multibyte-character-sets-mbcss.md) (MBCS), or code your program so you can build it for either by changing a switch.
8+
Unicode is a specification for supporting all character sets, including ones that can't be represented in a single byte. If you're programming for an international market, we recommend you use either Unicode or a [multibyte character set](../text/support-for-multibyte-character-sets-mbcss.md) (MBCS). Or, code your program so you can build it for either by changing a switch.
99

10-
A wide character is a 2-byte multilingual character code. Tens of thousands of characters, comprising almost all characters used in modern computing worldwide, including technical symbols and special publishing characters, can be represented according to the Unicode specification as a single wide character encoded by using UTF-16. Characters that cannot be represented in just one wide character can be represented in a Unicode pair by using the Unicode surrogate pair feature. Because almost every character in common use is represented in UTF-16 in a single 16 bit wide character, using wide characters simplifies programming with international character sets. Wide characters encoded using UTF-16LE (for little-endian) are the native character format for Windows.
10+
A wide character is a 2-byte multilingual character code. Tens of thousands of characters, comprising almost all characters used in modern computing worldwide, including technical symbols and special publishing characters, can be represented according to the Unicode specification as a single wide character encoded by using UTF-16. Characters that cannot be represented in just one wide character can be represented in a Unicode pair by using the Unicode surrogate pair feature. Because almost every character in common use is represented in UTF-16 in a single 16-bit wide character, using wide characters simplifies programming with international character sets. Wide characters encoded using UTF-16LE (for little-endian) are the native character format for Windows.
1111

1212
A wide-character string is represented as a `wchar_t[]` array and is pointed to by a `wchar_t*` pointer. Any ASCII character can be represented as a wide character by prefixing the letter L to the character. For example, L'\0' is the terminating wide (16-bit) NULL character. Similarly, any ASCII string literal can be represented as a wide-character string literal by prefixing the letter L to the ASCII literal (L"Hello").
1313

0 commit comments

Comments
 (0)