Electroneum
string_tools.h File Reference
#include <string.h>
#include <locale>
#include <cstdlib>
#include <string>
#include <type_traits>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include "misc_log_ex.h"
#include "storages/parserse_base_utils.h"
#include "hex.h"
#include "memwipe.h"
#include "mlocker.h"
#include "span.h"
#include "warnings.h"
Include dependency graph for string_tools.h:

Go to the source code of this file.

Namespaces

 epee
 
 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 epee::span< const char > s, epee::span< char > &res)
 
bool epee::string_tools::parse_hexstr_to_binbuff (const std::string &s, std::string &res)
 
template<class XType >
PUSH_WARNINGS bool epee::string_tools::get_xtype_from_string (OUT XType &val, const std::string &str_id)
 
template<class XType >
POP_WARNINGS bool epee::string_tools::xtype_to_string (const XType &val, std::string &str)
 
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)
 
std::string epee::string_tools::to_string_hex (uint32_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 ()
 
bool epee::string_tools::set_module_name_and_folder (const std::string &path_to_process_)
 
bool epee::string_tools::trim_left (std::string &str)
 
bool epee::string_tools::trim_right (std::string &str)
 
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 std::string &hex_str, t_pod_type &s)
 
template<class t_pod_type >
bool epee::string_tools::hex_to_pod (const std::string &hex_str, tools::scrubbed< t_pod_type > &s)
 
template<class t_pod_type >
bool epee::string_tools::hex_to_pod (const std::string &hex_str, epee::mlocked< t_pod_type > &s)
 
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

Definition at line 55 of file string_tools.h.