<commit_before># StringConvert

> Simple C++11 based string encoding helper class

**C++11 implemented compiler required**

## Methods

```c++
// WBCS to MBCS
static std::string wideStringToAnsiString(const std::wstring& wstring, const std::locale& locale = std::locale{""});

// MBCS to WBCS
static std::wstring ansiStringToWideString(const std::string& string, const std::locale& locale = std::locale{""});

// UTF-8 -> UTF-16
static std::u16string u8StringToU16String(const std::string& u8String);
<commit_msg>Update `README.md`<commit_after># StringConvert

> Simple C++11 based string encoding helper

**C++11 implemented compiler required**

## Methods

```c++
// WBCS to MBCS
static std::string wideStringToAnsiString(const std::wstring& wstring, const std::locale& locale = std::locale{""});

// MBCS to WBCS
static std::wstring ansiStringToWideString(const std::string& string, const std::locale& locale = std::locale{""});

// UTF-8 -> UTF-16
static std::u16string u8StringToU16String(const std::string& u8String);

{'fraction_non_alphanumeric': 0.15121951219512195, 'fraction_numerical': 0.025365853658536587, 'mean_word_length': 6.328571428571428, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3966348', 'n_tokens_mistral': 352, 'n_tokens_neox': 329, 'n_words': 92}