0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd:Ⓜ️ Redeclare is_sigil() suite for clarity.

This commit is contained in:
Jason Volk 2018-09-25 15:26:38 -07:00
parent 32496af5da
commit 4788ac4e86

View file

@ -205,11 +205,16 @@ struct ircd::m::id::device
// Utilities
namespace ircd::m
{
// Check if any sigil
bool is_sigil(const char &c) noexcept;
bool has_sigil(const string_view &) noexcept;
// Interpret sigil type (or throw)
id::sigil sigil(const char &c);
id::sigil sigil(const string_view &id);
string_view reflect(const id::sigil &);
// Checks
// Full ID checks
bool valid(const id::sigil &, const string_view &) noexcept;
bool valid_local(const id::sigil &, const string_view &) noexcept; // Local part is valid
bool valid_local_only(const id::sigil &, const string_view &) noexcept; // No :host