SiddiqSoft.format-helpers 1.2.1

dotnet add package SiddiqSoft.format-helpers --version 1.2.1                
NuGet\Install-Package SiddiqSoft.format-helpers -Version 1.2.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.format-helpers" Version="1.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SiddiqSoft.format-helpers --version 1.2.1                
#r "nuget: SiddiqSoft.format-helpers, 1.2.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.format-helpers as a Cake Addin
#addin nuget:?package=SiddiqSoft.format-helpers&version=1.2.1

// Install SiddiqSoft.format-helpers as a Cake Tool
#tool nuget:?package=SiddiqSoft.format-helpers&version=1.2.1                

format-helpers

C++20 std::format helpers

CodeQL 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

API

Usage

    include "siddiqsoft/formatters.hpp"
    ..
    std::atomic_bool b{false};

    std::cout  << std::format( "b contains {}\n", b);
    std::wcout << std::format(L"b contains {}\n", b);

Output

    false
    false
Type Comment
std::atomic<T><br/>std::atomic_int<br/>std::atomic_uint<br/>std::atomic_uint64_t<br/>std::atomic_int64_t<br/>std::atomic_bool Convenience helpers so you don't have to .load() when using std::format.
std::exception Support for both char and wchar_t destinations.
std::runtime_error Support for both char and wchar_t destinations.
nlohmann::json If the library nlohmann.json is present the source json object is serialized and the output is converted to std::wstring as needed.

Dependencies

None. However, if you're using the nlohmann.json library then we will enable the serializers for that library.

  • This library does not use any Windows-specific code. However, use Visual Studio 2019 v16.11.2 or newer as support for <format> is not present for GCC or Clang!
  • On Windows with VisualStudio, use the Nuget package!
  • Make sure you use c++latest as the <format> is no longer in the c++20 option pending ABI resolution.
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.format-helpers:

Package Downloads
SiddiqSoft.CosmosClient

Azure Cosmos REST-API Client for Modern C++

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 147 12/8/2024
1.1.0 107 10/31/2024
1.0.5 169 10/19/2024
1.0.4 697 11/20/2021
1.0.3 7,628 9/9/2021
1.0.2 337 8/10/2021
1.0.1 332 7/22/2021
1.0.0 7,095 7/12/2021