Files
aee-arcade/source/utils/utils.cpp
T

19 lines
532 B
C++

#include "utils/utils.hpp"
#include <filesystem>
#include <ios>
#include <iostream>
auto getFileName(const std::string& path) -> std::string {
return std::filesystem::path(path).filename().string();
}
void printWithDots(const std::string& text1, const std::string& text2, const std::string& text3) {
std::cout.setf(std::ios::left, std::ios::adjustfield);
std::cout << text1;
std::cout.width(50 - text1.length() - text3.length());
std::cout.fill('.');
std::cout << text2;
std::cout << text3 << '\n';
}