log2vis_get_embedding_levels


Description:


[ Version ( since = "1.4" ) ]
public uint8 log2vis_get_embedding_levels (string text, int length, ref Direction pbase_dir)

This will return the bidirectional embedding levels of the input paragraph as defined by the Unicode Bidirectional Algorithm available at:

http://www.unicode.org/reports/tr9/

If the input base direction is a weak direction, the direction of the characters in the text will determine the final resolved direction.

Parameters:

text

the text to itemize.

length

the number of bytes (not characters) to process, or -1 if text is nul-terminated and the length should be calculated.

pbase_dir

input base direction, and output resolved direction.

Returns:

a newly allocated array of embedding levels, one item per character (not byte), that should be freed using g_free.


Namespace: Pango
Package: pango