Skip to content

Commit 1617041

Browse files
TylerMSFTTylerMSFT
authored andcommitted
cleanup
1 parent 218de6e commit 1617041

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

docs/c-runtime-library/reference/setlocale-wsetlocale.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ The function [`_configthreadlocale`](configthreadlocale.md) is used to control w
172172

173173
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.
174174

175-
The UTF-8 string is:
175+
The string to specify UTF-8 mode is:
176176
- case-insensitive
177177
- the hypen (-) is optional
178178
- 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"`
179179

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:
181181

182182
`".UTF8"`\
183183
`".UTF-8"`\

docs/mfc/windows-sockets-using-class-casyncsocket.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This article covers:
2222

2323
#### To use `CAsyncSocket`
2424

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.
2626

2727
Creation of a socket follows the MFC pattern of two-stage construction.
2828

@@ -44,7 +44,7 @@ This article covers:
4444

4545
- A socket type: **`SOCK_STREAM`** (the default) or **`SOCK_DGRAM`**.
4646

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"`.
4848

4949
This is your Internet Protocol (IP) address on the network. You will probably always rely on the default value for this parameter.
5050

@@ -75,7 +75,7 @@ For an example of this sequence in code (actually for a `CSocket` object), see [
7575

7676
## <a name="_core_your_responsibilities_with_casyncsocket"></a> Your responsibilities with `CAsyncSocket`
7777

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:
7979

8080
- "Blocking" scenarios.
8181

docs/standard-library/bitset-class.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff 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
6969
|Name|Description|
7070
|-|-|
7171
|[`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.|
7373
|[`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`.|
7474
|[`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`.|
7575
|[`operator==`](#op_eq_eq)|Tests a target `bitset` for equality with a specified `bitset`.|
7676
|[`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`.|
7777
|[`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`.|
7878
|[`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.|
8181
|[`operator~`](#op_not)|Inverts all the bits in a target `bitset` and returns the result.|
8282
8383
### Structures
@@ -96,7 +96,7 @@ bool all() const;
9696

9797
#### Return Value
9898

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.
100100

101101
### <a name="any"></a> `any`
102102

@@ -217,7 +217,7 @@ The character that is used to represent a one. The default is '1'.
217217
218218
2-3) Constructs an object of class `bitset<N>` and initializes the bits from the `val` parameter.
219219
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.
221221
222222
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.
223223
@@ -564,7 +564,7 @@ The `bitset` that is to be compared to the target bitset for inequality.
564564

565565
#### Remarks
566566

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.
568568

569569
#### Example
570570

@@ -609,7 +609,7 @@ Bitset b1 is different from bitset b3.
609609

610610
### <a name="op_and_eq"></a> `operator&=`
611611

612-
Performs a bitwise combination of bitsets with the logical `AND` operation.
612+
Performs a bitwise combination of bitsets with the bitwise `AND` (`&`) operation.
613613

614614
```cpp
615615
bitset<N>& operator&=(const bitset<N>& right);
@@ -618,7 +618,7 @@ bitset<N>& operator&=(const bitset<N>& right);
618618
#### Parameters
619619

620620
*`right`*\
621-
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.
622622

623623
#### Return Value
624624

@@ -628,7 +628,7 @@ The modified target bitset that results from the bitwise `AND` operation with th
628628

629629
Two bits combined by the `AND` operator return **`true`** if each bit is true; otherwise, their combination returns **`false`**.
630630

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.
632632

633633
#### Example
634634

@@ -693,7 +693,7 @@ The modified bitset with the bits shifted to the left the required number of pos
693693

694694
#### Remarks
695695

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`.
697697

698698
#### Example
699699

@@ -792,7 +792,7 @@ The `bitset` that is to be compared to the target bitset for equality.
792792

793793
#### Remarks
794794

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.
796796

797797
#### Example
798798

@@ -839,12 +839,12 @@ Bitset b1 is different from bitset b3.
839839
Shifts the bits in a `bitset` to the right a specified number of positions and returns the result to a new bitset.
840840

841841
```cpp
842-
bitset<N> operator>>(size_t Pos) const;
842+
bitset<N> operator>>(size_t pos) const;
843843
```
844844

845845
#### Parameters
846846

847-
*`Pos`*\
847+
*`pos`*\
848848
The number of positions to the right the bits in the `bitset` are to be shifted.
849849

850850
#### Return Value
@@ -892,12 +892,12 @@ the bitset b3 is: ( 01110 ).
892892
Shifts the bits in a `bitset` to the right a specified number of positions and returns the result to the targeted `bitset`.
893893

894894
```cpp
895-
bitset<N>& operator>>=(size_t Pos);
895+
bitset<N>& operator>>=(size_t pos);
896896
```
897897

898898
#### Parameters
899899

900-
*`Pos`*\
900+
*`pos`*\
901901
The number of positions to the right the bits in the `bitset` are to be shifted.
902902

903903
#### Return Value
@@ -951,7 +951,7 @@ The position locating the bit within the `bitset`.
951951

952952
#### Remarks
953953

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).
955955

956956
#### Example
957957

@@ -981,7 +981,7 @@ int main( )
981981
982982
### <a name="op_xor_eq"></a> `operator^=`
983983
984-
Performs a bitwise combination of bitsets with the exclusive **OR* (`^`) operation.
984+
Performs a bitwise combination of bitsets with the bitwise **XOR* (`^`) operation.
985985
986986
```cpp
987987
bitset<N>& operator^=(const bitset<N>& right);
@@ -994,13 +994,13 @@ The `bitset` that is to be combined bitwise with the target bitset.
994994

995995
#### Return Value
996996

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.
998998

999999
#### Remarks
10001000

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`**.
10021002

1003-
Bitsets must be of the same size to be combined bitwise with the exclusive `OR` operator by the member operator function.
1003+
Bitsets must be the same size.
10041004

10051005
#### Example
10061006

@@ -1030,7 +1030,7 @@ int main( )
10301030
cout << "The parameter bitset b2 remains: ( "<< b2 << " )."
10311031
<< endl;
10321032

1033-
// The following would cause an error because the bisets
1033+
// The following would cause an error because the bitsets
10341034
// must be of the same size to be combined
10351035
// b1 |= b3;
10361036
}
@@ -1066,7 +1066,7 @@ The modified target bitset that results from the bitwise `OR` (`|`) operation wi
10661066

10671067
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`**.
10681068

1069-
Bitsets must be of the same size to be combined bitwise with the inclusive `OR` operator by the member operator function.
1069+
Bitsets must be the same size.
10701070

10711071
#### Example
10721072

@@ -1112,8 +1112,8 @@ the target bitset b1 becomes: ( 01111 ).
11121112
The parameter bitset b2 remains: ( 01011 ).
11131113
```
11141114

1115-
### <a name="op_not"></a> `operator~
1116-
`
1115+
### <a name="op_not"></a> `operator~`
1116+
11171117
Inverts all the bits in a target bitset and returns the result.
11181118

11191119
```cpp
@@ -1179,7 +1179,7 @@ public:
11791179
The value of the object of type **`bool`** to be assigned to a bit in a `bitset`.
11801180
11811181
*`bitref`*\
1182-
A reference of the form *`x [ i ]`* to the bit at position *`i`* in `bitset` *`x`*.
1182+
A reference of the form *x [ i ]* to the bit at position *i* in `bitset` *x*.
11831183
11841184
#### Return Value
11851185

0 commit comments

Comments
 (0)