convertBidi()

The sysLib.convertBidi() system function converts a text string in a bidirectional (bidi) language such as Arabic or Hebrew from logical order to visual order or vice versa, using a specified conversion table. This conversion occurs at run time; to convert bidirectional text at generation time, see "Bidirectional language text" in the EGL Generation Guide. That topic also lists the appropriate conversion tables to use with this function.

This function can convert text on iSeries® and zSeries®, and for applications using Text User Interface.

Syntax

  sysLib.convertBidi(
    text anyTextType inOut
    direction ConvertDirection in,
    bidiConversionTable STRING in)
target
Name of the variable that has the data you want to convert. The data is converted in place.
direction
The direction of the conversion. This parameter uses values from the ConvertDirection enumeration:
remote
Default value. The data is assumed to be in remote format and is converted to local format.
local
Data is assumed to be in local format and is converted to remote format (as defined in the conversion table).
conversionTable
Variable or literal that specifies the name of the conversion table to be used for data conversion. The default value is the conversion table associated with the national language code in the targetNLS build descriptor option when the program was generated.

Compatibility considerations

Table 1. Compatibility considerations
Platform Issue
JavaScript generation The function strLib.convertBidi() is not supported.

Feedback