\hypertarget{convert_8h}{}\doxysection{kblib/convert.h File Reference}
\label{convert_8h}\index{kblib/convert.h@{kblib/convert.h}}


Provides facilities to convert between various kinds of representations.  


{\ttfamily \#include $<$algorithm$>$}\newline
{\ttfamily \#include $<$array$>$}\newline
{\ttfamily \#include $<$cassert$>$}\newline
{\ttfamily \#include $<$chrono$>$}\newline
{\ttfamily \#include $<$exception$>$}\newline
{\ttfamily \#include $<$iomanip$>$}\newline
{\ttfamily \#include $<$sstream$>$}\newline
{\ttfamily \#include $<$stdexcept$>$}\newline
{\ttfamily \#include $<$string$>$}\newline
{\ttfamily \#include $<$typeinfo$>$}\newline
{\ttfamily \#include \char`\"{}algorithm.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}iterators.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}traits.\+h\char`\"{}}\newline
{\ttfamily \#include $<$string\+\_\+view$>$}\newline
{\ttfamily \#include $<$strstream$>$}\newline
{\ttfamily \#include \char`\"{}stringops.\+h\char`\"{}}\newline
{\ttfamily \#include $<$iostream$>$}\newline
Include dependency graph for convert.\+h\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{convert_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{convert_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structkblib_1_1constant}{kblib\+::constant$<$ T, V $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1prefix}{kblib\+::detail\+\_\+units\+::prefix}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ R $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1atto_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::atto $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1femto_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::femto $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1pico_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::pico $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1nano_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::nano $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1micro_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::micro $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1milli_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::milli $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1centi_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::centi $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1deci_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::deci $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1ratio_3_011_01_4_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::ratio$<$ 1 $>$ $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1deca_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::deca $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1hecto_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::hecto $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1kilo_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::kilo $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1mega_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::mega $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1giga_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::giga $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1tera_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::tera $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1peta_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::peta $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1is__si__ratio_3_01std_1_1exa_01_4}{kblib\+::detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ std\+::exa $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1unit__conversion}{kblib\+::detail\+\_\+units\+::unit\+\_\+conversion$<$ M $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1detail__units_1_1nearest__ratio}{kblib\+::detail\+\_\+units\+::nearest\+\_\+ratio$<$ Num, Den $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1lexical__caster}{kblib\+::lexical\+\_\+caster$<$ To, From $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1lexical__caster_3_01_same_00_01_same_01_4}{kblib\+::lexical\+\_\+caster$<$ Same, Same $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1lexical__caster_3_01std_1_1string_00_01std_1_1string_01_4}{kblib\+::lexical\+\_\+caster$<$ std\+::string, std\+::string $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1lexical__caster_3_01std_1_1string_00_01_from_01_4}{kblib\+::lexical\+\_\+caster$<$ std\+::string, From $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1lexical__caster_3_01_to_00_01std_1_1string_01_4}{kblib\+::lexical\+\_\+caster$<$ To, std\+::string $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1lexical__caster_3_01std_1_1string__view_00_01std_1_1string__view_01_4}{kblib\+::lexical\+\_\+caster$<$ std\+::string\+\_\+view, std\+::string\+\_\+view $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1lexical__caster_3_01std_1_1string__view_00_01std_1_1string_01_4}{kblib\+::lexical\+\_\+caster$<$ std\+::string\+\_\+view, std\+::string $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1lexical__caster_3_01std_1_1string__view_00_01_from_01_4}{kblib\+::lexical\+\_\+caster$<$ std\+::string\+\_\+view, From $>$}}
\item 
struct \mbox{\hyperlink{structkblib_1_1lexical__caster_3_01_to_00_01std_1_1string__view_01_4}{kblib\+::lexical\+\_\+caster$<$ To, std\+::string\+\_\+view $>$}}
\end{DoxyCompactItemize}
\doxysubsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \mbox{\hyperlink{namespacekblib}{kblib}}
\begin{DoxyCompactList}\small\item\em The main namespace in which all entities from kblib are defined. \end{DoxyCompactList}\item 
namespace \mbox{\hyperlink{namespacekblib_1_1detail__convert}{kblib\+::detail\+\_\+convert}}
\item 
namespace \mbox{\hyperlink{namespacekblib_1_1literals}{kblib\+::literals}}
\item 
namespace \mbox{\hyperlink{namespacedetail__units}{detail\+\_\+units}}
\item 
namespace \mbox{\hyperlink{namespacekblib_1_1detail__units}{kblib\+::detail\+\_\+units}}
\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{convert_8h_a6dd7941ecece3eeaa1b4ac149a48de36}{p\+From\+Str}}(type,  val)~\+::kblib\+::from\+Str$<$type$>$((val), \#   type)
\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$std\+::intmax\+\_\+t Num, std\+::intmax\+\_\+t Den$>$ }\\using \mbox{\hyperlink{namespacekblib_1_1detail__units_af25fd7cadaf3e2eb0eb78e555ea99575}{kblib\+::detail\+\_\+units\+::nearest\+\_\+ratio\+\_\+t}} = typename nearest\+\_\+ratio$<$ Num, Den $>$\+::type
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$int base, typename Int $>$ }\\auto \mbox{\hyperlink{namespacekblib_a9d7e23caee89855a71fb84c7f245f977}{kblib\+::to\+\_\+string}} (Int num) -\/$>$ std\+::string
\item 
{\footnotesize template$<$typename Int $>$ }\\auto \mbox{\hyperlink{namespacekblib_ad4d84a46d50ba8ad780b5d12ec029225}{kblib\+::to\+\_\+string}} (Int num, int base) -\/$>$ std\+::string
\item 
{\footnotesize template$<$typename Result , unsigned variants, std\+::size\+\_\+t N$>$ }\\constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__convert_a08f4032807044ecd2d233574c3b31781}{kblib\+::detail\+\_\+convert\+::read\+\_\+digits}} (const char $\ast$begin, const char $\ast$end, unsigned base, const char(\&digits)\mbox{[}N\mbox{]}) -\/$>$ Result
\item 
{\footnotesize template$<$typename Result $>$ }\\constexpr auto \mbox{\hyperlink{namespacekblib_a269228ff0b3ecfd65167e5b4420a85b5}{kblib\+::parse\+\_\+integer}} (const char $\ast$begin, const char $\ast$end, int base=0) -\/$>$ Result
\item 
{\footnotesize template$<$typename Result , std\+::size\+\_\+t N$>$ }\\constexpr auto \mbox{\hyperlink{namespacekblib_a285ebb5d09f6f36d091e1c25293969d9}{kblib\+::parse\+\_\+integer}} (const char(\&in)\mbox{[}N\mbox{]}, int base=0) -\/$>$ Result
\item 
{\footnotesize template$<$typename Result $>$ }\\constexpr auto \mbox{\hyperlink{namespacekblib_a85f95750656f07f1a99315e67cdb359e}{kblib\+::parse\+\_\+integer}} (const std\+::string \&in, int base=0) -\/$>$ Result
\item 
{\footnotesize template$<$typename Result $>$ }\\constexpr auto \mbox{\hyperlink{namespacekblib_a58a6e469a0449b408a7fbaf12bc49551}{kblib\+::parse\+\_\+integer}} (std\+::string\+\_\+view in, int base=0) -\/$>$ Result
\item 
{\footnotesize template$<$char... Cs$>$ }\\constexpr auto \mbox{\hyperlink{namespacekblib_1_1literals_a89800ca5a1a2c396a3905227cb2919ad}{kblib\+::literals\+::operator\char`\"{}\char`\"{}\+\_\+c}} ()
\item 
{\footnotesize template$<$char... Cs$>$ }\\constexpr auto \mbox{\hyperlink{namespacekblib_1_1literals_adfec289c33286ad36edb6fe60932d1bb}{kblib\+::literals\+::operator\char`\"{}\char`\"{}\+\_\+cu}} ()
\item 
{\footnotesize template$<$typename E , typename  = typename std\+::enable\+\_\+if$<$std\+::is\+\_\+enum$<$\+E$>$\+::value$>$\+::type$>$ }\\constexpr auto \mbox{\hyperlink{namespacekblib_adceb810a61acaa78f10a700d1618aad7}{kblib\+::etoi}} (E e) -\/$>$ auto
\item 
{\footnotesize template$<$int max\+Buf\+Len = 4096, typename clock , typename duration $>$ }\\auto \mbox{\hyperlink{namespacekblib_a20e83a66411498f8637634a99ceef8f7}{kblib\+::time\+\_\+to\+\_\+str}} (std\+::chrono\+::time\+\_\+point$<$ clock, duration $>$ \&tp, const std\+::string \&fmt=\char`\"{}\%F \%T\char`\"{}) -\/$>$ std\+::string
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a5b67207eadfabcfe454fe689b5df8158}{kblib\+::detail\+\_\+units\+::unit\+\_\+of}} (std\+::chrono\+::nanoseconds) noexcept -\/$>$ auto
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a2b5f222449991440b95bc8db6ce2ce2b}{kblib\+::detail\+\_\+units\+::unit\+\_\+of}} (std\+::chrono\+::microseconds) noexcept -\/$>$ auto
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a9bea3cd0da262e0ab399d1e2c6b68e45}{kblib\+::detail\+\_\+units\+::unit\+\_\+of}} (std\+::chrono\+::milliseconds) noexcept -\/$>$ auto
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_afe883576fe9e5b051cb48f90eaefe574}{kblib\+::detail\+\_\+units\+::unit\+\_\+of}} (std\+::chrono\+::seconds) noexcept -\/$>$ auto
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_ad7e8b1898efc63c595067f7d27448222}{kblib\+::detail\+\_\+units\+::unit\+\_\+of}} (std\+::chrono\+::minutes) noexcept -\/$>$ auto
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_ab6de7bcb990f9c55a7abc4b176206632}{kblib\+::detail\+\_\+units\+::unit\+\_\+of}} (std\+::chrono\+::hours) noexcept -\/$>$ auto
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_ab0d67fc3efbbc49a96fa0cc5547b3c56}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::atto) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_ab9dd9c0d4b9a08db85eae55aaa2ea3b4}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::femto) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a59ca4a802ab37b0eb4eb501f797dad0d}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::pico) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a66cd14898e5e4bba5f6350c352bb6518}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::nano) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a634bad845db5d3fb2af73ef1013c8198}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::micro) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a35bb0ed8bd2fdbc3ac659701222a88ad}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::milli) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a93988d999b53eec149fe9021b82c2721}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::centi) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a5ee756a4cd07f55e5b91f50d74b71b93}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::deci) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a2f1d5a072702a1d60b53317a80aaa2a7}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::ratio$<$ 1, 1 $>$) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_ac7b5da6b329879e79c7c1d1b96e16724}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::deca) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a2bb8597ac9e0d076e29c262910244ea4}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::hecto) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a0436c9bcf1829bb4d6aff3ed42bd9013}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::kilo) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a27459a8289db9778fae97f0150323699}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::mega) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_aa32beff86a36c3053d61694fb8937ab0}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::giga) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a630dc236e8f8dfdf7765903661bf30d3}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::tera) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a70fee5965a755b4cfd3ee7e39dcba66a}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::peta) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a5259a33f11d7892b012c80cb1a841f90}{kblib\+::detail\+\_\+units\+::name\+\_\+of}} (std\+::exa) -\/$>$ prefix
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_af834e3efc689ff32dfeb6d2b82f5251e}{kblib\+::detail\+\_\+units\+::largest\+\_\+power\+\_\+1000}} (std\+::intmax\+\_\+t in) -\/$>$ int
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a51f34ee6971dba5c08e0ad0799acfa20}{kblib\+::detail\+\_\+units\+::largest\+\_\+power\+\_\+1000\+\_\+p}} (double in) -\/$>$ int
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_ae7333c9b309f4ce4315e40cff949c7f1}{kblib\+::detail\+\_\+units\+::largest\+\_\+power\+\_\+1000}} (double in) -\/$>$ int
\item 
constexpr auto \mbox{\hyperlink{namespacekblib_1_1detail__units_a40ba1dfe837d8c84da5e6bab51698b98}{kblib\+::detail\+\_\+units\+::pow1000}} (int p) -\/$>$ double
\item 
{\footnotesize template$<$std\+::intmax\+\_\+t Num, std\+::intmax\+\_\+t Den$>$ }\\auto \mbox{\hyperlink{namespacekblib_1_1detail__units_aa299c305c7e856fce7b3ed9ad0f22b0d}{kblib\+::detail\+\_\+units\+::ratio\+\_\+to\+\_\+\+SI}} () noexcept -\/$>$ unit\+\_\+conversion$<$ std\+::intmax\+\_\+t $>$
\item 
{\footnotesize template$<$typename Rep , typename Ratio , enable\+\_\+if\+\_\+t$<$ detail\+\_\+units\+::is\+\_\+si\+\_\+ratio$<$ typename Ratio\+::type $>$\+::value $>$ $\ast$  = 0$>$ }\\auto \mbox{\hyperlink{namespacekblib_af9a5bf09da3c4820ffd701def6a6f6da}{kblib\+::duration\+\_\+to\+\_\+str}} (std\+::chrono\+::duration$<$ Rep, Ratio $>$ \&d) -\/$>$ std\+::string
\item 
{\footnotesize template$<$typename Rep $>$ }\\auto \mbox{\hyperlink{namespacekblib_a9b4feeb3f624bef85e84024c3ffddb64}{kblib\+::duration\+\_\+to\+\_\+str}} (std\+::chrono\+::duration$<$ Rep, std\+::ratio$<$ 60 $>$ $>$ d) -\/$>$ std\+::string
\item 
{\footnotesize template$<$typename Rep $>$ }\\auto \mbox{\hyperlink{namespacekblib_adab181ff9f8850e2e5b6790a78d62cfc}{kblib\+::duration\+\_\+to\+\_\+str}} (std\+::chrono\+::duration$<$ Rep, std\+::ratio$<$ 3600 $>$ $>$ d) -\/$>$ std\+::string
\item 
{\footnotesize template$<$typename string $>$ }\\auto \mbox{\hyperlink{namespacekblib_a8c75f5ab3c250a21cb71377f34304575}{kblib\+::url\+\_\+encode}} (const string \&value) -\/$>$ std\+::string
\item 
{\footnotesize template$<$typename string $>$ }\\auto \mbox{\hyperlink{namespacekblib_a39eea8a137cf73e71ddcba1a074b5ca1}{kblib\+::html\+\_\+encode}} (const string \&data) -\/$>$ std\+::string
\item 
auto \mbox{\hyperlink{namespacekblib_ac0e93ddcc6d5c76947773411b4b1c324}{kblib\+::escapify}} (char c) -\/$>$ std\+::string
\item 
{\footnotesize template$<$typename string $>$ }\\auto \mbox{\hyperlink{namespacekblib_adc6dd5988f5ae20b8c0538bd50bd3657}{kblib\+::escapify}} (const string \&value) -\/$>$ std\+::string
\item 
{\footnotesize template$<$typename string $>$ }\\auto \mbox{\hyperlink{namespacekblib_afb501736f34154b5b1864cdace039fba}{kblib\+::calculate\+\_\+translated\+\_\+index}} (string \&\&value, const char $\ast$p) -\/$>$ std\+::ptrdiff\+\_\+t
\item 
auto \mbox{\hyperlink{namespacekblib_adf7bda5746d41d56ad8030ec34042c49}{kblib\+::calculate\+\_\+translated\+\_\+index}} (const char $\ast$value, const char $\ast$p) -\/$>$ std\+::ptrdiff\+\_\+t
\item 
{\footnotesize template$<$typename string $>$ }\\auto \mbox{\hyperlink{namespacekblib_a63baa5a83839bafa605866cd558a66aa}{kblib\+::quoted}} (string \&\&in) -\/$>$ std\+::string
\item 
{\footnotesize template$<$typename T $>$ }\\auto \mbox{\hyperlink{namespacekblib_adcf60327cd3273416aee1f4e21c545a2}{kblib\+::from\+Str}} (const std\+::string \&val, const char $\ast$type=typeid(T).name()) -\/$>$ T
\item 
template$<$$>$ auto \mbox{\hyperlink{namespacekblib_a57f578123119b93875bef04cfe49f65e}{kblib\+::from\+Str}} (const std\+::string \&val, const char $\ast$) -\/$>$ std\+::string
\item 
template$<$$>$ auto \mbox{\hyperlink{namespacekblib_a7c6f875ac9139f22c86dd6dd4d9065b1}{kblib\+::from\+Str}} (const std\+::string \&val, const char $\ast$type) -\/$>$ bool
\item 
{\footnotesize template$<$typename T $>$ }\\auto \mbox{\hyperlink{namespacekblib_a8a395da2f21ab1bf9f7753dafa31024b}{kblib\+::from\+Str}} (std\+::string \&\&val, const char $\ast$type=typeid(T).name()) -\/$>$ T
\item 
template$<$$>$ auto \mbox{\hyperlink{namespacekblib_a853a2017ce132aff49da11dc89c0d4f8}{kblib\+::from\+Str}} (std\+::string \&\&val, const char $\ast$) -\/$>$ std\+::string
\item 
template$<$$>$ auto \mbox{\hyperlink{namespacekblib_aa4044dd6c31f3ad46403c7c160f117f7}{kblib\+::from\+Str}} (std\+::string \&\&val, const char $\ast$type) -\/$>$ bool
\item 
template$<$$>$ auto \mbox{\hyperlink{namespacekblib_a0edc4804a0cef00e0ee38e0545a5c185}{kblib\+::from\+Str}} (const std\+::string \&val, const char $\ast$) -\/$>$ std\+::string\+\_\+view
\item 
template$<$$>$ auto \mbox{\hyperlink{namespacekblib_aadea0d5dfda041cebdee25a03cb326b7}{kblib\+::from\+Str}} (std\+::string \&\&, const char $\ast$) -\/$>$ std\+::string\+\_\+view=delete
\item 
{\footnotesize template$<$typename T $>$ }\\auto \mbox{\hyperlink{namespacekblib_aa7bf83ca8ddfe3ca539cb91272916b49}{kblib\+::from\+Str}} (std\+::string\+\_\+view val, const char $\ast$type=typeid(T).name()) -\/$>$ T
\item 
template$<$$>$ auto \mbox{\hyperlink{namespacekblib_a0d43c9471efd41988e7fe3803ebe9920}{kblib\+::from\+Str}} (std\+::string\+\_\+view val, const char $\ast$) -\/$>$ std\+::string\+\_\+view
\item 
template$<$$>$ auto \mbox{\hyperlink{namespacekblib_accb73432c51f1abcb19600cbc74c76b3}{kblib\+::from\+Str}} (std\+::string\+\_\+view val, const char $\ast$) -\/$>$ std\+::string
\item 
template$<$$>$ auto \mbox{\hyperlink{namespacekblib_af325be078a70629608c96f77cde6f957}{kblib\+::from\+Str}} (std\+::string\+\_\+view val, const char $\ast$type) -\/$>$ bool
\item 
{\footnotesize template$<$typename To , std\+::size\+\_\+t N$>$ }\\auto \mbox{\hyperlink{namespacekblib_aa4f711c2235a07748d06db315f0390fd}{kblib\+::from\+Str}} (const char(\&val)\mbox{[}N\mbox{]}, const char $\ast$type=typeid(To).name()) -\/$>$ To
\item 
{\footnotesize template$<$typename To , typename \+\_\+ $>$ }\\auto \mbox{\hyperlink{namespacekblib_accd006c8702a96a58797a630927f1e84}{kblib\+::from\+Str}} (const char $\ast$val, const char $\ast$type=typeid(To).name(), \+\_\+=0) -\/$>$ To
\item 
{\footnotesize template$<$typename T $>$ }\\auto \mbox{\hyperlink{namespacekblib_a600e9511e6339ab63326a78ece7df363}{kblib\+::to\+Str}} (T val) -\/$>$ std\+::string
\item 
auto \mbox{\hyperlink{namespacekblib_a68e0483e61eda02342b8104c3832e60e}{kblib\+::to\+Str}} (std\+::string val) -\/$>$ std\+::string
\item 
{\footnotesize template$<$typename To , typename From $>$ }\\auto \mbox{\hyperlink{namespacekblib_ae68ff8cae049c12ffe3f568617e8d6c3}{kblib\+::lexical\+\_\+cast}} (const From \&val, const char $\ast$type=typeid(To).name()) -\/$>$ To
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Provides facilities to convert between various kinds of representations. 

\begin{DoxyAuthor}{Author}
killerbee 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
2019-\/2021 
\end{DoxyDate}
\begin{DoxyCopyright}{Copyright}
GNU General Public Licence v3.\+0 
\end{DoxyCopyright}


Definition in file \mbox{\hyperlink{convert_8h_source}{convert.\+h}}.



\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{convert_8h_a6dd7941ecece3eeaa1b4ac149a48de36}\label{convert_8h_a6dd7941ecece3eeaa1b4ac149a48de36}} 
\index{convert.h@{convert.h}!pFromStr@{pFromStr}}
\index{pFromStr@{pFromStr}!convert.h@{convert.h}}
\doxysubsubsection{\texorpdfstring{pFromStr}{pFromStr}}
{\footnotesize\ttfamily \#define p\+From\+Str(\begin{DoxyParamCaption}\item[{}]{type,  }\item[{}]{val }\end{DoxyParamCaption})~\+::kblib\+::from\+Str$<$type$>$((val), \#   type)}



Definition at line \mbox{\hyperlink{convert_8h_source_l00033}{33}} of file \mbox{\hyperlink{convert_8h_source}{convert.\+h}}.

