SiddiqSoft.StringHelpers 1.0.1

dotnet add package SiddiqSoft.StringHelpers --version 1.0.1                
NuGet\Install-Package SiddiqSoft.StringHelpers -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SiddiqSoft.StringHelpers" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SiddiqSoft.StringHelpers --version 1.0.1                
#r "nuget: SiddiqSoft.StringHelpers, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SiddiqSoft.StringHelpers as a Cake Addin
#addin nuget:?package=SiddiqSoft.StringHelpers&version=1.0.1

// Install SiddiqSoft.StringHelpers as a Cake Tool
#tool nuget:?package=SiddiqSoft.StringHelpers&version=1.0.1                

StringHelpers : C++ String Conversion Utilities

Build Status alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Objective

  • Collect useful helpers for Azure REST API in a single location.
  • Header-only
    • Use the nuget package or CMakeLists to import into your project.
  • Use Win32 functions on Windows
    • No support for Linux/Darwin!

Usage

..
.. # import the CPM.cmake module and activate..
..
CPMAddModule("gh:siddiqsoft/StringHelpers#1.0.0")
..
..
target_link_libraries(your-project PRIVATE StringHelpers::StringHelpers)

Features

  • ConversionUtils (conversion-utils.hpp)

    template<typename S, typename D>
    auto convert_to<char,wchar_t>(const std::basic_string<T>& src) -> std::basic_string<D>
    {
       ...
      return std::basic_string<D>{};
    }
    
    • convert_to<char,wchar_t>(const std::string& src)
      • Convert from std::string to std::wstring (using UTF-8 encoding)
    • convert_to<wchar_t,char>(const std::wstring& src)
      • Convert from std::wstring to std::string (UTF-8 encodes the contents).

Use this library until C++26 is prevalent and the compiler vendors remove the codecvt library--not simply deprecation warnings.

<p align="right"> © 2024 Siddiq Software LLC. All rights reserved. </p>

Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SiddiqSoft.StringHelpers:

Package Downloads
SiddiqSoft.AzureCppUtils

Azure REST API Helpers for Modern C++. Featuring helper functions for date-time, encryption tokens for Azure REST API as a single header-only package and native Win32 libraries.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 276 12/12/2024
1.0.0 70 12/12/2024