Changeset View
Changeset View
Standalone View
Standalone View
src/util/strencodings.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
std::string EncodeBase64(const uint8_t *pch, size_t len); | std::string EncodeBase64(const uint8_t *pch, size_t len); | ||||
std::string EncodeBase64(const std::string &str); | std::string EncodeBase64(const std::string &str); | ||||
std::vector<uint8_t> DecodeBase32(const char *p, bool *pf_invalid = nullptr); | std::vector<uint8_t> DecodeBase32(const char *p, bool *pf_invalid = nullptr); | ||||
std::string DecodeBase32(const std::string &str, bool *pf_invalid = nullptr); | std::string DecodeBase32(const std::string &str, bool *pf_invalid = nullptr); | ||||
std::string EncodeBase32(const uint8_t *pch, size_t len); | std::string EncodeBase32(const uint8_t *pch, size_t len); | ||||
std::string EncodeBase32(const std::string &str); | std::string EncodeBase32(const std::string &str); | ||||
void SplitHostPort(std::string in, int &portOut, std::string &hostOut); | void SplitHostPort(std::string in, int &portOut, std::string &hostOut); | ||||
std::string i64tostr(int64_t n); | |||||
std::string itostr(int n); | |||||
int64_t atoi64(const char *psz); | int64_t atoi64(const char *psz); | ||||
int64_t atoi64(const std::string &str); | int64_t atoi64(const std::string &str); | ||||
int atoi(const std::string &str); | int atoi(const std::string &str); | ||||
/** | /** | ||||
* Tests if the given character is a decimal digit. | * Tests if the given character is a decimal digit. | ||||
* @param[in] c character to test | * @param[in] c character to test | ||||
* @return true if the argument is a decimal digit; otherwise false. | * @return true if the argument is a decimal digit; otherwise false. | ||||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |