mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-11 20:09:46 -05:00
33 lines
771 B
C++
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
|