aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore/CommonIO.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-10-18 19:34:29 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-10-18 19:55:12 +0800
commit7186e142b8ea546d98dc8ddb630da47362be8b0a (patch)
treefe387b3fe8600a88435b99047604f267a334e098 /libdevcore/CommonIO.cpp
parentf67d34e4ec379aeed3ee2c05227a228c748b4d9d (diff)
downloaddexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.tar.gz
dexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.tar.zst
dexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.zip
Rename contentsString to readFileAsString
Diffstat (limited to 'libdevcore/CommonIO.cpp')
-rw-r--r--libdevcore/CommonIO.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdevcore/CommonIO.cpp b/libdevcore/CommonIO.cpp
index 5d47937b..eb7af83e 100644
--- a/libdevcore/CommonIO.cpp
+++ b/libdevcore/CommonIO.cpp
@@ -39,7 +39,7 @@ namespace
{
template <typename _T>
-inline _T contentsGeneric(std::string const& _file)
+inline _T readFile(std::string const& _file)
{
_T ret;
size_t const c_elementSize = sizeof(typename _T::value_type);
@@ -61,9 +61,9 @@ inline _T contentsGeneric(std::string const& _file)
}
-string dev::contentsString(string const& _file)
+string dev::readFileAsString(string const& _file)
{
- return contentsGeneric<string>(_file);
+ return readFile<string>(_file);
}
void dev::writeFile(std::string const& _file, bytesConstRef _data, bool _writeDeleteRename)