rename llmr => mbgl

This commit is contained in:
Konstantin Käfer
2014-07-16 18:53:56 -07:00
parent c1a64dc5fa
commit 4ea281c750
236 changed files with 1199 additions and 1198 deletions

View File

@@ -0,0 +1,24 @@
#ifndef MBGL_UTIL_STRING
#define MBGL_UTIL_STRING
#include <string>
namespace mbgl {
namespace util {
template<size_t max, typename... Args>
inline std::string sprintf(const char *msg, Args... args) {
char res[max];
int len = snprintf(res, sizeof(res), msg, args...);
return std::string(res, len);
}
template<size_t max, typename... Args>
inline std::string sprintf(const std::string &msg, Args... args) {
return sprintf<max>(msg.c_str(), args...);
}
}
}
#endif