mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
* Minor style changes * Move function definitions * Split utility.hpp * Enable include of export-symbol-helper.hpp in tests
18 lines
469 B
C++
18 lines
469 B
C++
#pragma once
|
|
#include "export-symbol-helper.hpp"
|
|
|
|
#include <string>
|
|
#include <variant>
|
|
#include <optional>
|
|
|
|
namespace advss {
|
|
|
|
std::variant<double, std::string>
|
|
EvalMathExpression(const std::string &expression);
|
|
bool IsValidNumber(const std::string &str);
|
|
EXPORT std::optional<double> GetDouble(const std::string &str);
|
|
EXPORT std::optional<int> GetInt(const std::string &str);
|
|
EXPORT bool DoubleEquals(double left, double right, double epsilon);
|
|
|
|
} // namespace advss
|