mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
No issue - Minor performance improvement in BidiUtils
This commit is contained in:
parent
4cc56c2cb6
commit
de7ec12f83
1 changed files with 5 additions and 0 deletions
|
|
@ -91,6 +91,11 @@ bool HasRTLChars(const nsAString& aString)
|
|||
int32_t length = aString.Length();
|
||||
for (int32_t i = 0; i < length; i++) {
|
||||
char16_t ch = aString.CharAt(i);
|
||||
if (ch < 0x0590) {
|
||||
// Characters below this value are never RTL, so take a quick exit
|
||||
// out of this iteration of the loop.
|
||||
continue;
|
||||
}
|
||||
if (ch >= 0xD800 || IS_IN_BMP_RTL_BLOCK(ch)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue