Home | History | Annotate | Download | only in pt_common

Lines Matching refs:nodeFlags

31     typedef uint8_t NodeFlags;
35 static NodeFlags getFlagsAndAdvancePosition(const uint8_t *const buffer, int *const pos);
41 static int getCharsAndAdvancePosition(const uint8_t *const buffer, const NodeFlags flags,
46 static int skipCharacters(const uint8_t *const buffer, const NodeFlags flags,
52 const NodeFlags flags, int *const pos);
57 static AK_FORCE_INLINE bool isPossiblyOffensive(const NodeFlags flags) {
61 static AK_FORCE_INLINE bool isNotAWord(const NodeFlags flags) {
65 static AK_FORCE_INLINE bool isTerminal(const NodeFlags flags) {
69 static AK_FORCE_INLINE bool hasShortcutTargets(const NodeFlags flags) {
73 static AK_FORCE_INLINE bool hasBigrams(const NodeFlags flags) {
77 static AK_FORCE_INLINE bool hasMultipleChars(const NodeFlags flags) {
81 static AK_FORCE_INLINE bool hasChildrenInFlags(const NodeFlags flags) {
85 static AK_FORCE_INLINE NodeFlags createAndGetFlags(const bool isPossiblyOffensive,
89 NodeFlags nodeFlags = 0;
90 nodeFlags = isPossiblyOffensive ? (nodeFlags | FLAG_IS_POSSIBLY_OFFENSIVE) : nodeFlags;
91 nodeFlags = isNotAWord ? (nodeFlags | FLAG_IS_NOT_A_WORD) : nodeFlags;
92 nodeFlags = isTerminal ? (nodeFlags | FLAG_IS_TERMINAL) : nodeFlags;
93 nodeFlags = hasShortcutTargets ? (nodeFlags | FLAG_HAS_SHORTCUT_TARGETS) : nodeFlags;
94 nodeFlags = hasBigrams ? (nodeFlags | FLAG_HAS_BIGRAMS) : nodeFlags;
95 nodeFlags = hasMultipleChars ? (nodeFlags | FLAG_HAS_MULTIPLE_CHARS) : nodeFlags;
97 nodeFlags |= FLAG_CHILDREN_POSITION_TYPE_ONEBYTE;
99 nodeFlags |= FLAG_CHILDREN_POSITION_TYPE_TWOBYTES;
101 nodeFlags |= FLAG_CHILDREN_POSITION_TYPE_THREEBYTES;
103 nodeFlags |= FLAG_CHILDREN_POSITION_TYPE_NOPOSITION;
105 return nodeFlags;
111 const int *const codePointTable, NodeFlags *const outFlags,
119 static const NodeFlags MASK_CHILDREN_POSITION_TYPE;
120 static const NodeFlags FLAG_CHILDREN_POSITION_TYPE_NOPOSITION;
121 static const NodeFlags FLAG_CHILDREN_POSITION_TYPE_ONEBYTE;
122 static const NodeFlags FLAG_CHILDREN_POSITION_TYPE_TWOBYTES;
123 static const NodeFlags FLAG_CHILDREN_POSITION_TYPE_THREEBYTES;
125 static const NodeFlags FLAG_HAS_MULTIPLE_CHARS;
126 static const NodeFlags FLAG_IS_TERMINAL;
127 static const NodeFlags FLAG_HAS_SHORTCUT_TARGETS;
128 static const NodeFlags FLAG_HAS_BIGRAMS;
129 static const NodeFlags FLAG_IS_NOT_A_WORD;
130 static const NodeFlags FLAG_IS_POSSIBLY_OFFENSIVE;