You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/setlocale-wsetlocale.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -172,12 +172,12 @@ The function [`_configthreadlocale`](configthreadlocale.md) is used to control w
172
172
173
173
Starting in Windows 10 build 17134 (April 2018 Update), the Universal C Runtime supports using a UTF-8 code page. This means that `char` strings passed to C runtime functions will expect strings in the UTF-8 encoding. To enable UTF-8 mode, use `".UTF8"` as the code page when using `setlocale`. For example, `setlocale(LC_ALL, ".UTF8")` will use the current default Windows ANSI code page (ACP) for the locale and UTF-8 for the code page.
174
174
175
-
The UTF-8 string is:
175
+
The string to specify UTF-8 mode is:
176
176
- case-insensitive
177
177
- the hypen (-) is optional
178
178
- It must be in the code page part of the locale name, so must have a leading period '.' For example, `"en_US.UTF8"` or `".utf8"`
179
179
180
-
The following are examples of ways to specify the UTF-8 string:
180
+
The following examples show how to specify the UTF-8 string:
Copy file name to clipboardExpand all lines: docs/mfc/windows-sockets-using-class-casyncsocket.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ This article covers:
22
22
23
23
#### To use `CAsyncSocket`
24
24
25
-
1. Construct a [`CAsyncSocket`](../mfc/reference/casyncsocket-class.md) object and use the object to create the underlying **SOCKET** handle.
25
+
1. Construct a [`CAsyncSocket`](../mfc/reference/casyncsocket-class.md) object and use the object to create the underlying **`SOCKET`** handle.
26
26
27
27
Creation of a socket follows the MFC pattern of two-stage construction.
28
28
@@ -44,7 +44,7 @@ This article covers:
44
44
45
45
- A socket type: **`SOCK_STREAM`** (the default) or **`SOCK_DGRAM`**.
46
46
47
-
- A socket "address," such as `"ftp.microsoft.com"` or `"128.56.22.8"`.
47
+
- A socket "address" such as `"ftp.microsoft.com"` or `"128.56.22.8"`.
48
48
49
49
This is your Internet Protocol (IP) address on the network. You will probably always rely on the default value for this parameter.
50
50
@@ -75,7 +75,7 @@ For an example of this sequence in code (actually for a `CSocket` object), see [
75
75
76
76
## <aname="_core_your_responsibilities_with_casyncsocket"></a> Your responsibilities with `CAsyncSocket`
77
77
78
-
When you create an object of class [`CAsyncSocket`](../mfc/reference/casyncsocket-class.md), the object encapsulates a Windows **SOCKET** handle and supplies operations on that handle. When you use `CAsyncSocket`, you must deal with all the issues you might face if using the API directly. For example:
78
+
When you create an object of class [`CAsyncSocket`](../mfc/reference/casyncsocket-class.md), the object encapsulates a Windows **`SOCKET`** handle and supplies operations on that handle. When you use `CAsyncSocket`, you must deal with all the issues you might face if using the API directly. For example:
Copy file name to clipboardExpand all lines: docs/standard-library/bitset-class.md
+25-25Lines changed: 25 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -69,15 +69,15 @@ A bit is set if its value is 1 and reset if its value is 0. To flip or invert a
69
69
|Name|Description|
70
70
|-|-|
71
71
|[`operator!=`](#op_neq)|Tests a target `bitset` for inequality with a specified `bitset`.|
72
-
|[`operator&=`](#op_and_eq)|Performs a bitwise combination of bitsets with the logical `AND` operation.|
72
+
|[`operator&=`](#op_and_eq)|Performs a bitwise combination of bitsets with the bitwise `AND` operation.|
73
73
|[`operator<<`](#op_lshift)|Shifts the bits in a `bitset` to the left a specified number of positions and returns the result to a new `bitset`.|
74
74
|[`operator<<=`](#op_lshift_eq)|Shifts the bits in a `bitset` to the left a specified number of positions and returns the result to the targeted `bitset`.|
75
75
|[`operator==`](#op_eq_eq)|Tests a target `bitset` for equality with a specified `bitset`.|
76
76
|[`operator>>`](#op_rshift)|Shifts the bits in a `bitset` to the right a specified number of positions and returns the result to a new `bitset`.|
77
77
|[`operator>>=`](#op_rshift_eq)|Shifts the bits in a `bitset` to the right a specified number of positions and returns the result to the targeted `bitset`.|
78
78
|[`operator[]`](#op_at)|Returns a reference to a bit at a specified position in a `bitset` if the `bitset` is modifiable; otherwise, it returns the value of the bit at that position.|
79
-
|[operator^=](#op_xor_eq)|Performs a bitwise combination of bitsets with the exclusive `OR` operation.|
80
-
|[`operator|=`](#op_or_eq)|Performs a bitwise combination of bitsets with the inclusive `OR` operation.|
79
+
|[operator^=](#op_xor_eq)|Performs a bitwise combination of bitsets with the bitwise **XOR** (`^`) operation.|
80
+
|[`operator|=`](#op_or_eq)|Performs a bitwise combination of bitsets with the bitwise **OR** (`|`) operation.|
81
81
|[`operator~`](#op_not)|Inverts all the bits in a target `bitset` and returns the result.|
82
82
83
83
### Structures
@@ -96,7 +96,7 @@ bool all() const;
96
96
97
97
#### Return Value
98
98
99
-
Returns true if all bits in this set are true. Returns **`false`** if one or more bits are false.
99
+
Returns `true` if all bits in this set are true. Returns **`false`** if one or more bits are false.
100
100
101
101
### <aname="any"></a> `any`
102
102
@@ -217,7 +217,7 @@ The character that is used to represent a one. The default is '1'.
217
217
218
218
2-3) Constructs an object of class `bitset<N>` and initializes the bits from the `val` parameter.
219
219
220
-
4) Constructs an object of class `bitset<N>` and initializes bits from the characters provided in a string of zeros and ones. If any characters of the string are other than 0 or 1, the constructor throws an object of class [invalid argument](../standard-library/invalid-argument-class.md). If the position specified (*`pos`*) is beyond the length of the string, then the constructor throws an object of class [`out_of_range`](../standard-library/out-of-range-class.md). The constructor sets only those bits at position *j* in the `bitset` for which the character in the string at position `pos + j` is 1. By default, *`pos`* is 0.
220
+
4) Constructs an object of class `bitset<N>` and initializes bits from the characters provided in a string of zeros and ones. If any characters of the string are other than 0 or 1, the constructor throws an object of class [`invalid argument`](../standard-library/invalid-argument-class.md). If the position specified (*`pos`*) is beyond the length of the string, then the constructor throws an object of class [`out_of_range`](../standard-library/out-of-range-class.md). The constructor sets only those bits at position *j* in the `bitset` for which the character in the string at position `pos + j` is 1. By default, *`pos`* is 0.
221
221
222
222
5) Similar to 4) but includes an additional parameter, *`count`*, that specifies the number of bits to initialize. It has two optional parameters, *`_Zero`* and *`_One`*, which indicate what character in *`str`* should be interpreted to mean a 0 bit and a 1 bit, respectively.
223
223
@@ -564,7 +564,7 @@ The `bitset` that is to be compared to the target bitset for inequality.
564
564
565
565
#### Remarks
566
566
567
-
Bitsets must be of the same size to be tested for inequality by the member operator function.
567
+
Bitsets must be the same size.
568
568
569
569
#### Example
570
570
@@ -609,7 +609,7 @@ Bitset b1 is different from bitset b3.
609
609
610
610
### <aname="op_and_eq"></a> `operator&=`
611
611
612
-
Performs a bitwise combination of bitsets with the logical`AND` operation.
612
+
Performs a bitwise combination of bitsets with the bitwise`AND` (`&`) operation.
the`bitset` that is to be combined bitwise with the target bitset.
621
+
The`bitset` that is to be combined bitwise with the target bitset.
622
622
623
623
#### Return Value
624
624
@@ -628,7 +628,7 @@ The modified target bitset that results from the bitwise `AND` operation with th
628
628
629
629
Two bits combined by the `AND` operator return **`true`** if each bit is true; otherwise, their combination returns **`false`**.
630
630
631
-
The two `bitset`s must be of the same size to be combined bitwise with the `AND` operator by the member operator function.
631
+
The two `bitset`s must be the same size.
632
632
633
633
#### Example
634
634
@@ -693,7 +693,7 @@ The modified bitset with the bits shifted to the left the required number of pos
693
693
694
694
#### Remarks
695
695
696
-
The member operator function returns **bitset**( **\*this**) **<<= pos,** where [<<=](#op_lshift_eq) shifts the bits in a `bitset` to the left a specified number of positions and returns the result to the targeted `bitset`.
696
+
The member operator function returns **`bitset(*this) <<= pos`** where [`<<=`](#op_lshift_eq) shifts the bits in a `bitset` to the left a specified number of positions and returns the result to the targeted `bitset`.
697
697
698
698
#### Example
699
699
@@ -792,7 +792,7 @@ The `bitset` that is to be compared to the target bitset for equality.
792
792
793
793
#### Remarks
794
794
795
-
Bitsets must be of the same size to be tested for equality by the member operator function.
795
+
Bitsets must be the same size.
796
796
797
797
#### Example
798
798
@@ -839,12 +839,12 @@ Bitset b1 is different from bitset b3.
839
839
Shifts the bits in a `bitset` to the right a specified number of positions and returns the result to a new bitset.
840
840
841
841
```cpp
842
-
bitset<N> operator>>(size_tPos) const;
842
+
bitset<N> operator>>(size_tpos) const;
843
843
```
844
844
845
845
#### Parameters
846
846
847
-
*`Pos`*\
847
+
*`pos`*\
848
848
The number of positions to the right the bits in the `bitset` are to be shifted.
849
849
850
850
#### Return Value
@@ -892,12 +892,12 @@ the bitset b3 is: ( 01110 ).
892
892
Shifts the bits in a `bitset` to the right a specified number of positions and returns the result to the targeted `bitset`.
893
893
894
894
```cpp
895
-
bitset<N>& operator>>=(size_tPos);
895
+
bitset<N>& operator>>=(size_tpos);
896
896
```
897
897
898
898
#### Parameters
899
899
900
-
*`Pos`*\
900
+
*`pos`*\
901
901
The number of positions to the right the bits in the `bitset` are to be shifted.
902
902
903
903
#### Return Value
@@ -951,7 +951,7 @@ The position locating the bit within the `bitset`.
951
951
952
952
#### Remarks
953
953
954
-
When you define [\_ITERATOR\_DEBUG\_LEVEL](../standard-library/iterator-debug-level.md) as 1 or 2 in your build, a runtime error will occur in your executable if you attempt to access an element outside the bounds of the `bitset`. For more informations, see [Checked Iterators](../standard-library/checked-iterators.md).
954
+
When you define [\_ITERATOR\_DEBUG\_LEVEL](../standard-library/iterator-debug-level.md) as 1 or 2 in your build, a runtime error will occur in your executable if you attempt to access an element outside the bounds of the `bitset`. For more information, see [Checked Iterators](../standard-library/checked-iterators.md).
955
955
956
956
#### Example
957
957
@@ -981,7 +981,7 @@ int main( )
981
981
982
982
### <a name="op_xor_eq"></a> `operator^=`
983
983
984
-
Performs a bitwise combination of bitsets with the exclusive **OR* (`^`) operation.
984
+
Performs a bitwise combination of bitsets with the bitwise **XOR* (`^`) operation.
985
985
986
986
```cpp
987
987
bitset<N>& operator^=(const bitset<N>& right);
@@ -994,13 +994,13 @@ The `bitset` that is to be combined bitwise with the target bitset.
994
994
995
995
#### Return Value
996
996
997
-
The modified target bitset that results from the bitwise exclusive **OR** (`^`) operation with the `bitset` specified as a parameter.
997
+
The modified target bitset that results from the bitwise **XOR** (`^`) operation with the `bitset` specified as a parameter.
998
998
999
999
#### Remarks
1000
1000
1001
-
Two bits combined by the exclusive**OR** operator (`^`) return **`true`** if at least one, but not both, of the bits is **`true`**; otherwise, their combination returns **`false`**.
1001
+
Two bits combined by the bitwise**XOR** operator (`^`) return **`true`** if at least one, but not both, of the bits is **`true`**; otherwise, their combination returns **`false`**.
1002
1002
1003
-
Bitsets must be of the same size to be combined bitwise with the exclusive `OR` operator by the member operator function.
// The following would cause an error because the bisets
1033
+
// The following would cause an error because the bitsets
1034
1034
// must be of the same size to be combined
1035
1035
// b1 |= b3;
1036
1036
}
@@ -1066,7 +1066,7 @@ The modified target bitset that results from the bitwise `OR` (`|`) operation wi
1066
1066
1067
1067
Two bits combined by the inclusive `OR` operator return **`true`** if at least one of the bits is **`true`**; if both bits are **`false`**, their combination returns **`false`**.
1068
1068
1069
-
Bitsets must be of the same size to be combined bitwise with the inclusive `OR` operator by the member operator function.
0 commit comments