lalign function in hprint

This commit is contained in:
Zeno Rogue 2020-03-29 12:01:29 +02:00
parent d613f394cd
commit d9e4ba62ec
1 changed files with 9 additions and 0 deletions

View File

@ -393,4 +393,13 @@ EX string as_cstring(string o) {
#endif
#endif
#if HDR
template<class... T> string lalign(int len, T... t) {
shstream hs;
print(hs, t...);
while(isize(hs.s) < len) hs.s += " ";
return hs.s;
}
#endif
}