mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-01-23 19:39:31 -06:00
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
31 lines
759 B
C++
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
|