[core] Rationalize naming for style-related code
This commit is contained in:
16
src/mbgl/util/font_stack.cpp
Normal file
16
src/mbgl/util/font_stack.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <mbgl/util/font_stack.hpp>
|
||||
|
||||
#include <boost/functional/hash.hpp>
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
std::string fontStackToString(const FontStack& fontStack) {
|
||||
return boost::algorithm::join(fontStack, ",");
|
||||
}
|
||||
|
||||
std::size_t FontStackHash::operator()(const FontStack& fontStack) const {
|
||||
return boost::hash_range(fontStack.begin(), fontStack.end());
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
Reference in New Issue
Block a user