Files
TinyORM/include/orm/tiny/utils/string.hpp
silverqx 92775f444c divided Orm::Utils
While ORM can be disabled, Orm::Utils has been split into Orm::Utils
and Orm::Tiny::Utils (Orm::Tiny::TinyUtils alias).
So when ORM is disabled then utils used only in the ORM will be
excluded from a final build.

 - bugfix cmake undefined ORM option in TinySources
2022-01-01 14:28:42 +01:00

31 lines
759 B
C++

#pragma once
#ifndef ORM_TINY_UTILS_STRING_HPP
#define ORM_TINY_UTILS_STRING_HPP
#include "orm/macros/systemheader.hpp"
TINY_SYSTEM_HEADER
#include <QString>
#include "orm/macros/commonnamespace.hpp"
#include "orm/macros/export.hpp"
TINYORM_BEGIN_COMMON_NAMESPACE
namespace Orm::Tiny::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::Tiny::Utils::String
TINYORM_END_COMMON_NAMESPACE
#endif // ORM_TINY_UTILS_STRING_HPP