wxMaxima
Loading...
Searching...
No Matches
Static Public Member Functions
Bidi Class Reference

Static Public Member Functions

static bool IsAvailable ()
 True if libfribidi is compiled in, so GetRuns() reorders mixed-direction lines correctly.
 
static std::vector< BidiRunGetRuns (const wxString &line, bool paragraphIsRightToLeft)
 The runs that make up line, in visual (left-to-right on screen) order.
 
static std::vector< BidiRunGetRuns (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.
 

Member Function Documentation

◆ 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
lineThe text of a single display line (no '
' or soft breaks in it).
paragraphIsRightToLeftThe 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: