Bidi Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Bidi(IAttributedCharacterIterator) |
Create Bidi from the given paragraph of text. |
Bidi(String, Int32) |
Create Bidi from the given paragraph of text and base direction. |
Bidi(Char[], Int32, Byte[], Int32, Int32, Int32) |
Create Bidi from the given text, embedding, and direction information. |
Bidi(IAttributedCharacterIterator)
Create Bidi from the given paragraph of text.
[Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;)V", "")]
public Bidi (Java.Text.IAttributedCharacterIterator? paragraph);
[<Android.Runtime.Register(".ctor", "(Ljava/text/AttributedCharacterIterator;)V", "")>]
new Java.Text.Bidi : Java.Text.IAttributedCharacterIterator -> Java.Text.Bidi
Parameters
- paragraph
- IAttributedCharacterIterator
a paragraph of text with optional character and paragraph attribute information
- Attributes
Exceptions
if paragraph == null
Remarks
Create Bidi from the given paragraph of text.
The RUN_DIRECTION attribute in the text, if present, determines the base direction (left-to-right or right-to-left). If not present, the base direction is computes using the Unicode Bidirectional Algorithm, defaulting to left-to-right if there are no strong directional characters in the text. This attribute, if present, must be applied to all the text in the paragraph.
The BIDI_EMBEDDING attribute in the text, if present, represents embedding level information. Negative values from -1 to -62 indicate overrides at the absolute value of the level. Positive values from 1 to 62 indicate embeddings. Where values are zero or not defined, the base embedding level as determined by the base direction is assumed.
The NUMERIC_SHAPING attribute in the text, if present, converts European digits to other decimal digits before running the bidi algorithm. This attribute, if present, must be applied to all the text in the paragraph.
Java documentation for java.text.Bidi.Bidi(java.text.AttributedCharacterIterator)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
See also
Applies to
Bidi(String, Int32)
Create Bidi from the given paragraph of text and base direction.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
public Bidi (string? paragraph, int flags);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Java.Text.Bidi : string * int -> Java.Text.Bidi
Parameters
- paragraph
- String
a paragraph of text
- flags
- Int32
a collection of flags that control the algorithm. The algorithm understands the flags DIRECTION_LEFT_TO_RIGHT, DIRECTION_RIGHT_TO_LEFT, DIRECTION_DEFAULT_LEFT_TO_RIGHT, and DIRECTION_DEFAULT_RIGHT_TO_LEFT. Other values are reserved.
- Attributes
Remarks
Create Bidi from the given paragraph of text and base direction.
Java documentation for java.text.Bidi.Bidi(java.lang.String, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
See also
Applies to
Bidi(Char[], Int32, Byte[], Int32, Int32, Int32)
Create Bidi from the given text, embedding, and direction information.
[Android.Runtime.Register(".ctor", "([CI[BIII)V", "")]
public Bidi (char[]? text, int textStart, byte[]? embeddings, int embStart, int paragraphLength, int flags);
[<Android.Runtime.Register(".ctor", "([CI[BIII)V", "")>]
new Java.Text.Bidi : char[] * int * byte[] * int * int * int -> Java.Text.Bidi
Parameters
- text
- Char[]
an array containing the paragraph of text to process.
- textStart
- Int32
the index into the text array of the start of the paragraph.
- embeddings
- Byte[]
an array containing embedding values for each character in the paragraph. This can be null, in which case it is assumed that there is no external embedding information.
- embStart
- Int32
the index into the embedding array of the start of the paragraph.
- paragraphLength
- Int32
the length of the paragraph in the text and embeddings arrays.
- flags
- Int32
a collection of flags that control the algorithm. The algorithm understands the flags DIRECTION_LEFT_TO_RIGHT, DIRECTION_RIGHT_TO_LEFT, DIRECTION_DEFAULT_LEFT_TO_RIGHT, and DIRECTION_DEFAULT_RIGHT_TO_LEFT. Other values are reserved.
- Attributes
Exceptions
if textStart
, embStart
, or paragraphLength
is negative; if
text.length
or
embeddings.length
.
Remarks
Create Bidi from the given text, embedding, and direction information. The embeddings array may be null. If present, the values represent embedding level information. Negative values from -1 to -61 indicate overrides at the absolute value of the level. Positive values from 1 to 61 indicate embeddings. Where values are zero, the base embedding level as determined by the base direction is assumed.
Java documentation for java.text.Bidi.Bidi(char[], int, byte[], int, int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.