Skip to content

Commit eb4fc85

Browse files
Merge pull request #5480 from Rageking8/trim-front-and-back-spaces-in-link-destinations
Trim front and back spaces in link destinations
2 parents fa6d24e + 2f25b54 commit eb4fc85

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

docs/cpp/results-of-calling-example.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
2-
description: "Learn more about: Results of Calling Example"
32
title: "Results of Calling Example"
4-
ms.date: "11/19/2018"
3+
description: "Learn more about: Results of Calling Example"
4+
ms.date: 11/19/2018
55
helpviewer_keywords: ["examples [C++], results of calling", "results, thiscall call", "results, __fastcall keyword call", "results, __cdecl call", "results, __stdcall call"]
6-
ms.assetid: aa70a7cb-ba1d-4aa6-bd0a-ba783da2e642
76
---
87
# Results of Calling Example
98

@@ -20,7 +19,7 @@ The **`__cdecl`** calling convention
2019

2120
The C decorated name (**`__stdcall`**) is `_MyFunc@20`. The C++ decorated name is implementation-specific.
2221

23-
![Diagram showing the stack and registers for the S T D call and this call calling conventions.](../cpp/media/vc37i02.gif )<br/>
22+
![Diagram showing the stack and registers for the S T D call and this call calling conventions.](../cpp/media/vc37i02.gif)<br/>
2423
The __stdcall and thiscall calling conventions
2524

2625
## `__fastcall`

docs/linux/cmake-linux-configure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ To target WSL, select **Manage Configurations** in the configuration dropdown in
130130

131131
The **CMakeSettings.json** window appears.
132132

133-
![CMake settings dialog with the plus button highlighted which adds the selected configuration, which is Linux-GCC-debug.](media/cmake-linux-configurations.png )
133+
![CMake settings dialog with the plus button highlighted which adds the selected configuration, which is Linux-GCC-debug.](media/cmake-linux-configurations.png)
134134

135135
Press **Add Configuration** (the green '+' button) and then choose **Linux-GCC-Debug** or **Linux-GCC-Release** if using GCC. Use the Clang variants if you're using the Clang/LLVM toolset. Press **Select** and then **Ctrl+S** to save the configuration.
136136

docs/overview/overview-of-cpp-development.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Overview of C++ development in Visual Studio"
33
description: "The Visual Studio IDE supports C++ development on Windows, Linux, Android and iOS with a code editor, debugger, test frameworks, static analyzers, and other programming tools."
4-
ms.date: "12/02/2019"
4+
ms.date: 12/02/2019
55
helpviewer_keywords: ["Visual C++, development tools"]
66
author: "tylermsft"
77
ms.author: "twhitney"
@@ -44,13 +44,13 @@ Source control enables you to coordinate work among multiple developers, isolate
4444

4545
::: moniker range=">=msvc-160"
4646

47-
![Screenshot of the Team Explorer window in Visual Studio 2019.](media/vs2019-team-explorer.png )
47+
![Screenshot of the Team Explorer window in Visual Studio 2019.](media/vs2019-team-explorer.png)
4848

4949
::: moniker-end
5050

5151
::: moniker range="<=msvc-150"
5252

53-
![Screenshot of the Team Explorer window in Visual Studio 2017.](media/vs2017-team-explorer.png )
53+
![Screenshot of the Team Explorer window in Visual Studio 2017.](media/vs2017-team-explorer.png)
5454

5555
::: moniker-end
5656

docs/porting/fix-your-dependencies-on-library-internals.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
2-
description: "Learn more about: Fix your dependencies on C++ library internals"
32
title: "Fix your dependencies on C++ library internals"
4-
ms.date: "05/24/2017"
3+
description: "Learn more about: Fix your dependencies on C++ library internals"
4+
ms.date: 05/24/2017
55
helpviewer_keywords: ["library internals in an upgraded Visual Studio C++ project", "_Hash_seq in an upgraded Visual Studio C++ project"]
6-
ms.assetid: 493e0452-6ecb-4edc-ae20-b6fce2d7d3c5
76
---
87
# Fix your dependencies on C++ library internals
98

@@ -13,13 +12,13 @@ In most cases, the What's New or Breaking Changes document for each release of V
1312

1413
## _Hash_seq
1514

16-
The internal hash function `std::_Hash_seq(const unsigned char *, size_t)`, used to implement `std::hash` on some string types, was visible in recent versions of the Standard Library. This function implemented an [FNV-1a hash]( https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function) on a character sequence.
15+
The internal hash function `std::_Hash_seq(const unsigned char *, size_t)`, used to implement `std::hash` on some string types, was visible in recent versions of the Standard Library. This function implemented an [FNV-1a hash](https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function) on a character sequence.
1716

1817
To remove this dependency, you have a couple of options.
1918

2019
- If your intent is to put a `const char *` sequence into an unordered container by using the same hash code machinery as `basic_string`, you can do that by using the `std::hash` template overload that takes a `std::string_view`, which returns that hash code in a portable way. The string library code may or may not rely on use of an FNV-1a hash in the future, so this is the best way to avoid a dependency on a particular hash algorithm.
2120

22-
- If your intent is to generate an FNV-1a hash over arbitrary memory, we've made that code available on GitHub in the [VCSamples]( https://github.com/Microsoft/vcsamples) repository in a stand-alone header file, [fnv1a.hpp](https://github.com/Microsoft/VCSamples/tree/master/VC2015Samples/_Hash_seq), under an [MIT license](https://github.com/Microsoft/VCSamples/blob/master/license.txt). We've also included a copy here for your convenience. You can copy this code into a header file, add the header to any affected code, and then find and replace `_Hash_seq` by `fnv1a_hash_bytes`. You'll get identical behavior to the internal implementation in `_Hash_seq`.
21+
- If your intent is to generate an FNV-1a hash over arbitrary memory, we've made that code available on GitHub in the [VCSamples](https://github.com/Microsoft/vcsamples) repository in a stand-alone header file, [fnv1a.hpp](https://github.com/Microsoft/VCSamples/tree/master/VC2015Samples/_Hash_seq), under an [MIT license](https://github.com/Microsoft/VCSamples/blob/master/license.txt). We've also included a copy here for your convenience. You can copy this code into a header file, add the header to any affected code, and then find and replace `_Hash_seq` by `fnv1a_hash_bytes`. You'll get identical behavior to the internal implementation in `_Hash_seq`.
2322

2423
```cpp
2524
/*

0 commit comments

Comments
 (0)