Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QCharacterSetMatch< Extent, Lowest > Struct Template Reference

#include <qlocale_p.h>

Collaboration diagram for QCharacterSetMatch< Extent, Lowest >:

Public Types

using Word = qregisteruint

Public Member Functions

constexpr QCharacterSetMatch (std::string_view set) noexcept
constexpr bool matches (uchar c) const noexcept
constexpr auto maskLocation (uchar c) const noexcept

Public Attributes

qregisteruint mask [Extent]

Static Public Attributes

static constexpr int WordBits = std::numeric_limits<Word>::digits
static constexpr int MaxRange = WordBits * Extent

Detailed Description

template<int Extent, uchar Lowest>
struct QCharacterSetMatch< Extent, Lowest >

Definition at line 47 of file qlocale_p.h.

Member Typedef Documentation

◆ Word

template<int Extent, uchar Lowest>
using QCharacterSetMatch< Extent, Lowest >::Word = qregisteruint

Definition at line 49 of file qlocale_p.h.

Constructor & Destructor Documentation

◆ QCharacterSetMatch()

template<int Extent, uchar Lowest>
QCharacterSetMatch< Extent, Lowest >::QCharacterSetMatch ( std::string_view set)
inlineconstexprnoexcept

Definition at line 54 of file qlocale_p.h.

References QCharacterSetMatch().

Referenced by QCharacterSetMatch().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ maskLocation()

template<int Extent, uchar Lowest>
auto QCharacterSetMatch< Extent, Lowest >::maskLocation ( uchar c) const
inlineconstexprnoexcept

Definition at line 78 of file qlocale_p.h.

References MaxRange, and WordBits.

◆ matches()

template<int Extent, uchar Lowest>
bool QCharacterSetMatch< Extent, Lowest >::matches ( uchar c) const
inlineconstexprnoexcept

Definition at line 63 of file qlocale_p.h.

Member Data Documentation

◆ mask

template<int Extent, uchar Lowest>
qregisteruint QCharacterSetMatch< Extent, Lowest >::mask[Extent]

Definition at line 52 of file qlocale_p.h.

◆ MaxRange

template<int Extent, uchar Lowest>
int QCharacterSetMatch< Extent, Lowest >::MaxRange = WordBits * Extent
staticconstexpr

Definition at line 51 of file qlocale_p.h.

Referenced by maskLocation().

◆ WordBits

template<int Extent, uchar Lowest>
int QCharacterSetMatch< Extent, Lowest >::WordBits = std::numeric_limits<Word>::digits
staticconstexpr

Definition at line 50 of file qlocale_p.h.

Referenced by maskLocation().


The documentation for this struct was generated from the following file: