Monero
Loading...
Searching...
No Matches
string_tools.h File Reference
#include "hex.h"
#include "mlocker.h"
#include <boost/utility/string_ref.hpp>
#include <boost/algorithm/string.hpp>
#include <sstream>
#include <string>
#include <cstdint>
Include dependency graph for string_tools.h:

Go to the source code of this file.

Namespaces

namespace  epee
 TODO: (mj-xmr) This will be reduced in an another PR.
namespace  epee::string_tools

Macros

#define OUT

Functions

std::string epee::string_tools::buff_to_hex_nodelimer (const std::string &src)
bool epee::string_tools::parse_hexstr_to_binbuff (const boost::string_ref s, std::string &res)
std::string epee::string_tools::get_ip_string_from_int32 (uint32_t ip)
bool epee::string_tools::get_ip_int32_from_string (uint32_t &ip, const std::string &ip_str)
bool epee::string_tools::parse_peer_from_string (uint32_t &ip, uint16_t &port, const std::string &addres)
std::string epee::string_tools::num_to_string_fast (int64_t val)
bool epee::string_tools::compare_no_case (const std::string &str1, const std::string &str2)
std::string & epee::string_tools::get_current_module_name ()
std::string & epee::string_tools::get_current_module_folder ()
void epee::string_tools::set_module_name_and_folder (const std::string &path_to_process_)
std::string & epee::string_tools::trim (std::string &str)
std::string epee::string_tools::trim (const std::string &str)
std::string epee::string_tools::pad_string (std::string s, size_t n, char c=' ', bool prepend=false)
template<class t_pod_type>
std::string epee::string_tools::pod_to_hex (const t_pod_type &s)
template<class t_pod_type>
bool epee::string_tools::hex_to_pod (const boost::string_ref hex_str, t_pod_type &s)
template<class t_pod_type>
bool epee::string_tools::hex_to_pod (const boost::string_ref hex_str, tools::scrubbed< t_pod_type > &s)
template<class t_pod_type>
bool epee::string_tools::hex_to_pod (const boost::string_ref hex_str, epee::mlocked< t_pod_type > &s)
template<typename T>
std::string epee::string_tools::to_string_hex (const T &val)
bool epee::string_tools::validate_hex (uint64_t length, const std::string &str)
std::string epee::string_tools::get_extension (const std::string &str)
std::string epee::string_tools::cut_off_extension (const std::string &str)

Macro Definition Documentation

◆ OUT

#define OUT