Files
TinyORM/include/orm/utils/string.hpp
T
2021-10-19 17:14:33 +02:00

33 lines
771 B
C++

#pragma once
#ifndef UTILS_STRING_HPP
#define UTILS_STRING_HPP
#include "orm/macros/systemheader.hpp"
TINY_SYSTEM_HEADER
#include <QString>
#include "orm/macros/export.hpp"
#ifdef TINYORM_COMMON_NAMESPACE
namespace TINYORM_COMMON_NAMESPACE
{
#endif
namespace Orm::Utils::String
{
/*! Convert a string to snake case. */
SHAREDLIB_EXPORT QString toSnake(QString string);
/*! Get the singular form of an English word. */
SHAREDLIB_EXPORT QString singular(const QString &string);
/*! Check if the given string is the number, signed or unsigned. */
SHAREDLIB_EXPORT bool isNumber(const QString &string);
} // namespace Orm::Utils::String
#ifdef TINYORM_COMMON_NAMESPACE
} // namespace TINYORM_COMMON_NAMESPACE
#endif
#endif // UTILS_STRING_HPP