saqut-compiler/core/Tools.cpp

14 lines
218 B
C++

#include <string>
#ifndef Tools
#define Tools
std::string padRight(std::string str, size_t totalLen) {
if (str.size() < totalLen) {
str.append(totalLen - str.size(), ' ');
}
return str;
}
#endif