19 lines
658 B
C++
19 lines
658 B
C++
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include "posprinter.h"
|
|
|
|
#include <locale>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
std::string formatCentAsEuroString(const int cent, int width = 10);
|
|
std::optional<PrinterDevice> convertToPosPrinterDevice(const std::string& vendor,
|
|
const std::string& endpoint);
|
|
std::string& ltrim(std::string& str, const std::string& chars = "\t\n\v\f\r ");
|
|
std::string& rtrim(std::string& str, const std::string& chars = "\t\n\v\f\r ");
|
|
std::string& trim(std::string& str, const std::string& chars = "\t\n\v\f\r ");
|
|
bool case_insensitive_match(std::string s1, std::string s2);
|
|
|
|
#endif
|