hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
to_lower.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TO_LOWER_HPP
7 #define IROHA_TO_LOWER_HPP
8 
9 #include <string>
10 
11 namespace iroha {
12 
13  inline std::string &toLowerAppend(std::string_view src, std::string &dst) {
14  dst.reserve(dst.size() + src.size());
15  for (auto const c : src) dst += std::tolower(c);
16  return dst;
17  }
18 
19 } // namespace iroha
20 #endif // IROHA_TO_LOWER_HPP
std::string & toLowerAppend(std::string_view src, std::string &dst)
Definition: to_lower.hpp:13
Definition: block_query.hpp:15