kima2/src/core/utils.h

16 lines
514 B
C
Raw Normal View History

2019-10-10 08:09:16 +02:00
#ifndef CORE_UTILS_H
#define CORE_UTILS_H
2018-08-15 10:51:57 +02:00
2018-08-09 08:31:38 +02:00
#include <locale>
2018-08-15 10:51:57 +02:00
#include <optional>
#include <string>
2018-08-08 15:55:35 +02:00
2022-07-07 16:53:44 +02:00
std::string formatCentAsEuroString(const int cent, int width = 6);
2022-07-07 15:21:46 +02:00
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 ");
2019-09-26 16:41:39 +02:00
bool case_insensitive_match(std::string s1, std::string s2);
2023-04-25 16:11:34 +02:00
bool isNumber(const std::string &str);
2018-08-09 08:31:38 +02:00
#endif