#include <QtCore/qtextboundaryfinder.h>
#include <QtCore/qvarlengtharray.h>
#include <private/qunicodetables_p.h>
#include <qdebug.h>
#include "private/qharfbuzz_p.h"
Go to the source code of this file.
◆ init()
Definition at line 55 of file qtextboundaryfinder.cpp.
Referenced by QTextBoundaryFinder::QTextBoundaryFinder().
59 const ushort *
string =
reinterpret_cast<const ushort *
>(chars);
60 const ushort *unicode = string;
62 const ushort *uc = unicode;
63 const ushort *e = uc + length;
73 if (script != lastScript) {
76 item.pos = start - string;
77 item.length = uc - start;
78 item.script = (HB_Script)lastScript;
89 item.pos = start - string;
90 item.length = uc - start;
91 item.script = (HB_Script)lastScript;
98 HB_GetWordBoundaries(
string, length, scriptItems.
data(), scriptItems.
count(), attributes);
100 HB_GetSentenceBoundaries(
string, length, scriptItems.
data(), scriptItems.
count(), attributes);
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)
void qGetCharAttributes(const HB_UChar16 *string, hb_uint32 stringLength, const HB_ScriptItem *items, hb_uint32 numItems, HB_CharAttributes *attributes)