X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FString.hh;h=ee71b555e270f5ad3ae6bd1444520d22ec700c33;hb=fd3a0e8ac95d1158e9ea661ddf9187b67c70169f;hp=0b8028f425abf15302aced903d0e2d937aee1747;hpb=24ccc14a000ffeceb9e5b6d02f54d2e971a3aee8;p=senf.git diff --git a/Utils/String.hh b/Utils/String.hh index 0b8028f..ee71b55 100644 --- a/Utils/String.hh +++ b/Utils/String.hh @@ -23,8 +23,8 @@ /** \file \brief String public header */ -#ifndef HH_String_ -#define HH_String_ 1 +#ifndef HH_SENF_Utils_String_ +#define HH_SENF_Utils_String_ 1 // Custom includes #include @@ -34,15 +34,30 @@ namespace senf { + /** \brief Join string range with separator into single string + + This utility will build string by joining all elements of \a range into a single string + using \a sep as separator. The \a range may contain values of any streamable type. + */ template std::string stringJoin(ForwardReadableRange const & range, std::string sep); + template + std::string str(T const & t); + + template + Target lexical_cast(Source const & arg); + + namespace detail { template class lexical_caster; } + + template + detail::lexical_caster lexical_cast(); } ///////////////////////////////hh.e//////////////////////////////////////// //#include "String.cci" #include "String.ct" -//#include "String.cti" +#include "String.cti" #endif