|
|
static bool | IsAvailable () |
| | True if libfribidi is compiled in, so GetRuns() reorders mixed-direction lines correctly.
|
| |
| static std::vector< BidiRun > | GetRuns (const wxString &line, bool paragraphIsRightToLeft) |
| | The runs that make up line, in visual (left-to-right on screen) order.
|
| |
|
static std::vector< BidiRun > | GetRuns (const std::vector< uint32_t > &codepoints, bool paragraphIsRightToLeft) |
| | The same computation as GetRuns(), but on raw Unicode code points - the part that doesn't need wxWidgets, kept separate so it can be tested on its own.
|
| |
◆ GetRuns()
| std::vector< BidiRun > Bidi::GetRuns |
( |
const wxString & |
line, |
|
|
bool |
paragraphIsRightToLeft |
|
) |
| |
|
static |
The runs that make up line, in visual (left-to-right on screen) order.
- Parameters
-
| line | The text of a single display line (no '
' or soft breaks in it). |
| paragraphIsRightToLeft | The direction to resolve the line's overall direction to if it contains no strongly-directional character at all - normally Configuration::RightToLeftDocument(). |
Never returns an empty vector for a non-empty line: on any error (or when libfribidi isn't compiled in) the whole line comes back as one run in paragraphIsRightToLeft's direction.
The documentation for this class was generated from the following files: