\hypertarget{format_8h}{}\doxysection{kblib/format.h File Reference} \label{format_8h}\index{kblib/format.h@{kblib/format.h}} Contains some utilities for manipulating and querying string representations. {\ttfamily \#include \char`\"{}fakestd.\+h\char`\"{}}\newline {\ttfamily \#include $<$algorithm$>$}\newline {\ttfamily \#include $<$cmath$>$}\newline Include dependency graph for format.\+h\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{format_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]{format_8h__dep__incl} \end{center} \end{figure} \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}\end{DoxyCompactItemize} \doxysubsection*{Functions} \begin{DoxyCompactItemize} \item {\footnotesize template$<$typename Number $>$ }\\constexpr auto \mbox{\hyperlink{namespacekblib_ab5e75c9314c76b12efd507259206a546}{kblib\+::count\+\_\+digits}} (Number val) -\/$>$ enable\+\_\+if\+\_\+t$<$ std\+::is\+\_\+floating\+\_\+point$<$ Number $>$\+::value, int $>$ \begin{DoxyCompactList}\small\item\em Calculates the number of decimal digits needed to represent a number, plus one for negative numbers. \end{DoxyCompactList}\item {\footnotesize template$<$typename Number $>$ }\\constexpr auto \mbox{\hyperlink{namespacekblib_a490acb8189530823cb6150afff35fc1c}{kblib\+::count\+\_\+digits}} (Number val, int base) -\/$>$ int \begin{DoxyCompactList}\small\item\em Calculates the number of digits needed to represent a number in a given base, plus one for negative numbers. \end{DoxyCompactList}\item {\footnotesize template$<$typename Forward\+It $>$ }\\auto \mbox{\hyperlink{namespacekblib_a5a05c4dad317da381751c694a4b69c52}{kblib\+::max\+\_\+count\+\_\+digits}} (Forward\+It first, Forward\+It last) -\/$>$ int \begin{DoxyCompactList}\small\item\em Returns the necessary number of digits to represent the largest value in an input range. \end{DoxyCompactList}\item {\footnotesize template$<$typename Forward\+It $>$ }\\auto \mbox{\hyperlink{namespacekblib_a79bdc41eaf5235864ea333ebe30e7c36}{kblib\+::max\+\_\+count\+\_\+digits}} (Forward\+It first, Forward\+It last, int base) -\/$>$ int \begin{DoxyCompactList}\small\item\em Returns the necessary number of digits to represent the largest value in an input range. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection{Detailed Description} Contains some utilities for manipulating and querying string 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{format_8h_source}{format.\+h}}.