aboutsummaryrefslogtreecommitdiff
path: root/src/utilstrencodings.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-07-12 16:55:28 -0400
committerJohn Newbery <john@johnnewbery.com>2017-07-12 17:06:15 -0400
commitfe4fabaf12b74782ea99821ed8108f17e582060d (patch)
treeba72abdf42d6c2975788cb5e48d377f22756c00f /src/utilstrencodings.h
parentca4c545cc7e8c06bc8d9d4db1dd2d8f5fe011902 (diff)
[refactor] move SplitHostPort() into utilstrencodings
This moves SplitHostPort from libbitcoin_common to libbitcoin_util so it is available to bitcoin-cli.
Diffstat (limited to 'src/utilstrencodings.h')
-rw-r--r--src/utilstrencodings.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utilstrencodings.h b/src/utilstrencodings.h
index 8b37fe12e0..707fdaad16 100644
--- a/src/utilstrencodings.h
+++ b/src/utilstrencodings.h
@@ -48,6 +48,7 @@ std::string DecodeBase32(const std::string& str);
std::string EncodeBase32(const unsigned char* pch, size_t len);
std::string EncodeBase32(const std::string& str);
+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);