Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
f7c07135
Commit
f7c07135
authored
Nov 17, 2021
by
Tomaz Canabrava
Browse files
Character is 16 bytes, pass by value
parent
e48dc7c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/characters/Character.h
View file @
f7c07135
...
...
@@ -176,7 +176,7 @@ public:
return
character
;
}
inline
bool
isSameScript
(
const
Character
&
lhs
)
const
inline
bool
isSameScript
(
Character
lhs
)
const
{
const
QChar
::
Script
script
=
QChar
::
script
(
lhs
.
baseCodePoint
());
const
QChar
::
Script
currentScript
=
QChar
::
script
(
baseCodePoint
());
...
...
@@ -187,17 +187,17 @@ public:
return
currentScript
==
script
;
};
inline
bool
hasSameColors
(
const
Character
&
lhs
)
const
inline
bool
hasSameColors
(
Character
lhs
)
const
{
return
lhs
.
foregroundColor
==
foregroundColor
&&
lhs
.
backgroundColor
==
backgroundColor
;
}
inline
bool
hasSameRendition
(
const
Character
&
lhs
)
const
inline
bool
hasSameRendition
(
Character
lhs
)
const
{
return
(
lhs
.
rendition
&
~
RE_EXTENDED_CHAR
)
==
(
rendition
&
~
RE_EXTENDED_CHAR
);
};
inline
bool
hasSameLineDrawStatus
(
const
Character
&
lhs
)
const
inline
bool
hasSameLineDrawStatus
(
Character
lhs
)
const
{
const
bool
lineDraw
=
LineBlockCharacters
::
canDraw
(
character
);
return
LineBlockCharacters
::
canDraw
(
lhs
.
character
)
==
lineDraw
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment