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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
StringHelpers : C++ String Conversion Utilities
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
- Use the nuget SiddiqSoft.StringHelpers
- Use the CPM in your CMakeLists file.
..
.. # 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 | Versions 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.