mitteLib
Loading...
Searching...
No Matches
strutils.hpp File Reference
#include <chrono>
#include <mlab/bin_data.hpp>
#include <optional>
Include dependency graph for strutils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mlab
 

Typedefs

using mlab::datetime = std::chrono::time_point<std::chrono::system_clock>
 

Functions

range< std::uint8_t const * > mlab::data_view_from_string (std::string_view s)
 
bin_data mlab::data_from_string (std::string_view s)
 
template<std::size_t N>
std::string mlab::data_to_string (std::array< std::uint8_t, N > const &v)
 
std::string mlab::data_to_string (std::vector< std::uint8_t > const &v)
 
std::string mlab::data_to_string (range< bin_data::const_iterator > rg)
 
std::string mlab::data_to_string (range< std::uint8_t const * > rg)
 
template<std::size_t N>
std::string mlab::data_to_hex_string (std::array< std::uint8_t, N > const &v)
 
std::string mlab::data_to_hex_string (std::vector< std::uint8_t > const &v)
 
std::string mlab::data_to_hex_string (range< bin_data::const_iterator > rg)
 
std::string mlab::data_to_hex_string (range< std::uint8_t const * > rg)
 
bin_data mlab::data_from_hex_string (std::string_view s)
 
template<class It >
std::string mlab::data_to_hex_string (It begin, It end)
 
std::string mlab::replace_all (std::string_view text, std::string_view search, std::string_view replace)
 
std::string mlab::concatenate (std::vector< std::string_view > const &strs, std::string_view separator)
 
std::string mlab::concatenate_s (std::vector< std::string > const &strs, std::string_view separator)
 
std::optional< datetimemlab::strptime (std::string_view s, std::string_view fmt)
 
std::string mlab::strftime (datetime const &dt, std::string_view fmt)
 
bin_datamlab::operator<< (encode_length< bin_data > w, std::string_view sv)
 
bin_streammlab::operator>> (encode_length< bin_stream > w, std::string &c)