<commit_before># simply::utility

A small C++ helper library.

## use

Add the [simply.utility](http://www.nuget.org/packages/simply.utility) NuGet package to your Visual C++ 
Native Unit Test project with the [Package Manager Dialog](http://docs.nuget.org/consume/Package-Manager-Dialog) or 
the [Package Manager Console](http://docs.nuget.org/consume/package-manager-console).
``` PowerShell
Install-Package simply.utility
```

Include the library header and use its namespace.
``` C++
#include <simply/utility.h>
using namespace simply;
```

Use the library.
``` C++
static int value { 42 };
temporary replacement { value, 7 };
```

## build

[![Build status](https://ci.appveyor.com/api/projects/status/github/olegsych/simply.utility?branch=master)](https://ci.appveyor.com/project/olegsych/simply-utility/branch/master)

From [Visual Studio 2015](https://www.visualstudio.com/downloads):
- Open `simply.utility.sln`
- Select _Build Solution_ from the _Build_ menu
- To switch build between `x86` and `x64` platforms, select _Configuration Manager_ from the _Build_ menu and change the _Active Solution Configuration_

From [Developer Command Prompt for VS2015](https://msdn.microsoft.com/en-us/library/ms229859.aspx):
```
msbuild simply.utility.sln /p:Platform=x86
msbuild simply.utility.sln /p:Platform=x64
```

## test

From Visual Studio 2015:
- Select _Run_ / _All Tests_ from the _Test_ menu
- To switch test execution between `x86` and `x64` platform, select _Test Settings_ from the _Test_ menu and change the _Default Processor Architecture_.

From Developer Command Prompt for VS2015:
```
vstest.console bin\debug\Win32\test.dll /Platform:x86
vstest.console bin\debug\x64\test.dll /Platform:x64 /inIsolation
```<commit_msg>Correct code sample in readme.<commit_after># simply::utility

A small C++ helper library.

## use

Add the [simply.utility](http://www.nuget.org/packages/simply.utility) NuGet package to your Visual C++ 
Native Unit Test project with the [Package Manager Dialog](http://docs.nuget.org/consume/Package-Manager-Dialog) or 
the [Package Manager Console](http://docs.nuget.org/consume/package-manager-console).
``` PowerShell
Install-Package simply.utility
```

Include the library header and use its namespace.
``` C++
#include <simply/utility.h>
using namespace simply;
```

Use the library.
``` C++
static int value { 42 };
temporary<int> replacement { value, 7 };
```

## build

[![Build status](https://ci.appveyor.com/api/projects/status/github/olegsych/simply.utility?branch=master)](https://ci.appveyor.com/project/olegsych/simply-utility/branch/master)

From [Visual Studio 2015](https://www.visualstudio.com/downloads):
- Open `simply.utility.sln`
- Select _Build Solution_ from the _Build_ menu
- To switch build between `x86` and `x64` platforms, select _Configuration Manager_ from the _Build_ menu and change the _Active Solution Configuration_

From [Developer Command Prompt for VS2015](https://msdn.microsoft.com/en-us/library/ms229859.aspx):
```
msbuild simply.utility.sln /p:Platform=x86
msbuild simply.utility.sln /p:Platform=x64
```

## test

From Visual Studio 2015:
- Select _Run_ / _All Tests_ from the _Test_ menu
- To switch test execution between `x86` and `x64` platform, select _Test Settings_ from the _Test_ menu and change the _Default Processor Architecture_.

From Developer Command Prompt for VS2015:
```
vstest.console bin\debug\Win32\test.dll /Platform:x86
vstest.console bin\debug\x64\test.dll /Platform:x64 /inIsolation
```
{'fraction_non_alphanumeric': 0.1244279176201373, 'fraction_numerical': 0.02574370709382151, 'mean_word_length': 5.008591065292096, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '152969', 'n_tokens_mistral': 1208, 'n_tokens_neox': 1100, 'n_words': 318}