다음을 통해 공유


Bidi.WriteReverse(String, BidiOptions) Method

Definition

Reverse a Right-To-Left run of Unicode text.

[Android.Runtime.Register("writeReverse", "(Ljava/lang/String;I)Ljava/lang/String;", "", ApiSince=29)]
public static string? WriteReverse (string? src, Android.Icu.Text.BidiOptions options);
[<Android.Runtime.Register("writeReverse", "(Ljava/lang/String;I)Ljava/lang/String;", "", ApiSince=29)>]
static member WriteReverse : string * Android.Icu.Text.BidiOptions -> string

Parameters

src
String

The RTL run text.

options
BidiOptions

A bit set of options for the reordering that control how the reordered text is written. See the options parameter in writeReordered().

Returns

The reordered text. If the REMOVE_BIDI_CONTROLS option is set, then the length of the returned string may be less than src.length(). If this option is not set, then the length of the returned string will be exactly src.length().

Attributes

Remarks

Reverse a Right-To-Left run of Unicode text.

This method preserves the integrity of characters with multiple code units and (optionally) combining characters. Characters can be replaced by mirror-image characters in the destination buffer. Note that "real" mirroring has to be done in a rendering engine by glyph selection and that for many "mirrored" characters there are no Unicode characters as mirror-image equivalents. There are also options to insert or remove Bidi control characters.

This method is the implementation for reversing RTL runs as part of writeReordered(). For detailed descriptions of the parameters, see there. Since no Bidi controls are inserted here, the output string length will never exceed src.length().

Java documentation for android.icu.text.Bidi.writeReverse(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.

Applies to