Azure C++ Utils 1.5.2+3
Azure REST API Helpers for Modern C++
siddiqsoft Namespace Reference

SiddiqSoft. More...

Classes

struct  Base64Utils
 Base64 encode/decode functions. More...
 
struct  ConversionUtils
 Conversion Functions for ascii to wide, utf8 to wide and vice-versa. More...
 
struct  DateUtils
 Date Time utilities for REST API. More...
 
struct  EncryptionUtils
 Encryption utility functions for ServiceBus, Cosmos, EventGrid, EventHub Implementation Note! The support for wstring is for completeness and typically the use-case is where we fiddle with utf8 data and not utf16 over the internet and especially json documents! More...
 
struct  UrlUtils
 Url encode function. More...
 

Functions

template<typename _NorWT >
requires std::same_as<_NorWT, char> || std::same_as<_NorWT, wchar_t>
constexpr const _NorWT * NorW_1 (const char *const _Str, const wchar_t *const _WStr) noexcept
 In support of the macro NORW which allows us to declare/use narrow/wide strings as needed. Plucked from the MS stl implementation. More...
 
 TEST (Base64Utils, test1a)
 
 TEST (Base64Utils, test1b)
 
 TEST (Base64Utils, test1a_w)
 
 TEST (Base64Utils, test1b_w)
 
 TEST (Base64Utils, test1c_w)
 
 TEST (Base64Utils, test1d)
 
 TEST (Base64Utils, test1d_w)
 
 TEST (EncryptionUtils, MD5HashTest)
 
 TEST (EncryptionUtils, MD5HashTest_w)
 
 TEST (EncryptionUtils, SASToken_1)
 
 TEST (EncryptionUtils, SASToken_2)
 
 TEST (EncryptionUtils, SASToken_2_w)
 
 TEST (EncryptionUtils, SASToken_1_w)
 
 TEST (EncryptionUtils, JWTHMAC256_1)
 
 TEST (EncryptionUtils, JWTHMAC256_1_w)
 
 TEST (EncryptionUtils, HMAC_1)
 
 TEST (EncryptionUtils, HMAC_1_w)
 
 TEST (EncryptionUtils, CosmosToken)
 
 TEST (EncryptionUtils, CosmosToken_w)
 
 TEST (DateUtils, ISO8601_1)
 
 TEST (DateUtils, ISO8601_1_w)
 
 TEST (DateUtils, RFC7231_1)
 
 TEST (DateUtils, RFC7231_1_w)
 
 TEST (DateUtils, toTimespan_1)
 
 TEST (DateUtils, durationString_1)
 
 TEST (DateUtils, durationString_1_w)
 
 TEST (DateUtils, parseEpoch_1)
 
 TEST (DateUtils, parseEpoch_1_w)
 
 TEST (DateUtils, RoundTripIso8601)
 
 TEST (DateUtils, RoundTripIso8601_w)
 
 TEST (ConversionUtils, test1a)
 
 TEST (ConversionUtils, test1a_w)
 

Detailed Description

SiddiqSoft.

Function Documentation

◆ NorW_1()

template<typename _NorWT >
requires std::same_as<_NorWT, char> || std::same_as<_NorWT, wchar_t>
constexpr const _NorWT * siddiqsoft::NorW_1 ( const char *const  _Str,
const wchar_t *const  _WStr 
)
constexprnoexcept

In support of the macro NORW which allows us to declare/use narrow/wide strings as needed. Plucked from the MS stl implementation.

Definition at line 56 of file date-utils.hpp.

◆ TEST() [1/32]

siddiqsoft::TEST ( Base64Utils  ,
test1a   
)

Definition at line 44 of file test.cpp.

◆ TEST() [2/32]

siddiqsoft::TEST ( Base64Utils  ,
test1a_w   
)

Definition at line 86 of file test.cpp.

◆ TEST() [3/32]

siddiqsoft::TEST ( Base64Utils  ,
test1b   
)

Definition at line 66 of file test.cpp.

◆ TEST() [4/32]

siddiqsoft::TEST ( Base64Utils  ,
test1b_w   
)

Definition at line 109 of file test.cpp.

◆ TEST() [5/32]

siddiqsoft::TEST ( Base64Utils  ,
test1c_w   
)

Definition at line 131 of file test.cpp.

◆ TEST() [6/32]

siddiqsoft::TEST ( Base64Utils  ,
test1d   
)

Definition at line 146 of file test.cpp.

◆ TEST() [7/32]

siddiqsoft::TEST ( Base64Utils  ,
test1d_w   
)

Definition at line 160 of file test.cpp.

◆ TEST() [8/32]

siddiqsoft::TEST ( ConversionUtils  ,
test1a   
)

Definition at line 551 of file test.cpp.

◆ TEST() [9/32]

siddiqsoft::TEST ( ConversionUtils  ,
test1a_w   
)

Definition at line 565 of file test.cpp.

◆ TEST() [10/32]

siddiqsoft::TEST ( DateUtils  ,
durationString_1   
)

Definition at line 402 of file test.cpp.

◆ TEST() [11/32]

siddiqsoft::TEST ( DateUtils  ,
durationString_1_w   
)

Definition at line 441 of file test.cpp.

◆ TEST() [12/32]

siddiqsoft::TEST ( DateUtils  ,
ISO8601_1   
)

Definition at line 354 of file test.cpp.

◆ TEST() [13/32]

siddiqsoft::TEST ( DateUtils  ,
ISO8601_1_w   
)

Definition at line 363 of file test.cpp.

◆ TEST() [14/32]

siddiqsoft::TEST ( DateUtils  ,
parseEpoch_1   
)

Definition at line 480 of file test.cpp.

◆ TEST() [15/32]

siddiqsoft::TEST ( DateUtils  ,
parseEpoch_1_w   
)

Definition at line 493 of file test.cpp.

◆ TEST() [16/32]

siddiqsoft::TEST ( DateUtils  ,
RFC7231_1   
)

Definition at line 372 of file test.cpp.

◆ TEST() [17/32]

siddiqsoft::TEST ( DateUtils  ,
RFC7231_1_w   
)

Definition at line 381 of file test.cpp.

◆ TEST() [18/32]

siddiqsoft::TEST ( DateUtils  ,
RoundTripIso8601   
)

Definition at line 506 of file test.cpp.

◆ TEST() [19/32]

siddiqsoft::TEST ( DateUtils  ,
RoundTripIso8601_w   
)

Definition at line 528 of file test.cpp.

◆ TEST() [20/32]

siddiqsoft::TEST ( DateUtils  ,
toTimespan_1   
)

Definition at line 391 of file test.cpp.

◆ TEST() [21/32]

siddiqsoft::TEST ( EncryptionUtils  ,
CosmosToken   
)

Definition at line 325 of file test.cpp.

◆ TEST() [22/32]

siddiqsoft::TEST ( EncryptionUtils  ,
CosmosToken_w   
)

Definition at line 338 of file test.cpp.

◆ TEST() [23/32]

siddiqsoft::TEST ( EncryptionUtils  ,
HMAC_1   
)

Definition at line 293 of file test.cpp.

◆ TEST() [24/32]

siddiqsoft::TEST ( EncryptionUtils  ,
HMAC_1_w   
)

Definition at line 309 of file test.cpp.

◆ TEST() [25/32]

siddiqsoft::TEST ( EncryptionUtils  ,
JWTHMAC256_1   
)

Definition at line 257 of file test.cpp.

◆ TEST() [26/32]

siddiqsoft::TEST ( EncryptionUtils  ,
JWTHMAC256_1_w   
)

Definition at line 275 of file test.cpp.

◆ TEST() [27/32]

siddiqsoft::TEST ( EncryptionUtils  ,
MD5HashTest   
)

Definition at line 176 of file test.cpp.

◆ TEST() [28/32]

siddiqsoft::TEST ( EncryptionUtils  ,
MD5HashTest_w   
)

Definition at line 187 of file test.cpp.

◆ TEST() [29/32]

siddiqsoft::TEST ( EncryptionUtils  ,
SASToken_1   
)

Definition at line 198 of file test.cpp.

◆ TEST() [30/32]

siddiqsoft::TEST ( EncryptionUtils  ,
SASToken_1_w   
)

Definition at line 237 of file test.cpp.

◆ TEST() [31/32]

siddiqsoft::TEST ( EncryptionUtils  ,
SASToken_2   
)

Definition at line 218 of file test.cpp.

◆ TEST() [32/32]

siddiqsoft::TEST ( EncryptionUtils  ,
SASToken_2_w   
)

Definition at line 227 of file test.cpp.