# XLat

The FSF.XLat function is used to transliterate a string portion from one character set (for example Russian) to another character set (for example Latin).

    char* WINAPI XLat(
      char *Line,
      int StartPos,
      int EndPos,
      const struct CharTableSet *TableSet,
      DOWRD Flags
    );

### Parameters

Line
Pointer to a string a portion of which you want to transliterate.
StartPos
Starting position of the portion you want to transliterate.
EndPos
End position of the portion you want to transliterate.
TableSet
If it is necessary to convert a string to OEM code page before transliteration and then back, this field can contain a pointer to a CharTableSet structure. This field can also accept a NULL value.
Flags
Can be a combination of the following flags (XLATMODE enum):

Flag | Description
--- | ---
XLAT_SWITCHKEYBLAYOUT | Switches the keyboard layout after the transliteration. Attention! This function doesn't support switching the keyboard layout under Windows 95/98/Me.
XLAT_SWITCHKEYBBEEP | Sounds a beep after keyboard layout switching (works in conjunction with `XLAT_SWITCHKEYBLAYOUT`).

### Return value

This function returns a pointer to the transliterated string.