String.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
17 #ifndef HH_SENF_Utils_String_
18 #define HH_SENF_Utils_String_ 1
19 
20 // Custom includes
21 #include <string>
22 
23 //#include "String.mpp"
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 
26 namespace senf {
27 
33  template <class ForwardReadableRange>
34  std::string stringJoin(ForwardReadableRange const & range, std::string sep);
35 
52  template <class T>
53  std::string str(T const & t);
54 
55  template <class Target, class Source>
56  Target lexical_cast(Source const & arg);
57 
58  namespace detail { template <class Target> class lexical_caster; }
59 
60  template <class Target>
62 }
63 
64 //-/////////////////////////////////////////////////////////////////////////////////////////////////
65 //#include "String.cci"
66 #include "String.ct"
67 #include "String.cti"
68 #endif
69 
70 
71 // Local Variables:
72 // mode: c++
73 // fill-column: 100
74 // comment-column: 40
75 // c-file-style: "senf"
76 // indent-tabs-mode: nil
77 // ispell-local-dictionary: "american"
78 // compile-command: "scons -u test"
79 // End:
std::string str(T const &t)
Get string representation.
Target lexical_cast(Source const &arg)
std::string stringJoin(ForwardReadableRange const &range, std::string sep)
Join string range with separator into single string.