Skip to content
Snippets Groups Projects
  • Nicolas Werner's avatar
    920409e9
    Reduce code bloat a bit · 920409e9
    Nicolas Werner authored
    Especially the emoji array shrinks a lot with this, but adds a few extra
    relocations on startup. But it removes a lot of exception handling code
    at runtime, which is nice and possibly this is still faster.
    Verified
    920409e9
    History
    Reduce code bloat a bit
    Nicolas Werner authored
    Especially the emoji array shrinks a lot with this, but adds a few extra
    relocations on startup. But it removes a lot of exception handling code
    at runtime, which is nice and possibly this is still faster.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
provider-header.txt 378 B
// SPDX-FileCopyrightText: 2021 Nheko Contributors
// SPDX-FileCopyrightText: 2022 Nheko Contributors
//
// SPDX-License-Identifier: GPL-3.0-or-later

#include "emoji/Provider.h"

using namespace emoji;

// a null terminated string_view
template<size_t N>
static consteval std::u16string_view
null_literal(const char16_t (&lit)[N])
{
    return std::u16string_view(lit, N);
}