Transliterate a buffer.
Source position: db.pas line 1939
public function TDataSet.Translate( |
Src: PAnsiChar; |
Dest: PAnsiChar; |
ToOem: Boolean |
):Integer; virtual; |
Src |
|
Source buffer. |
Dest |
|
Destination buffer. |
ToOem |
|
Should translation happen from native to OEM codepage or vice versa ? |
Number of written bytes.
Translate is called for all string fields for which the TStringField.Transliterate property is set to True. The toOEM parameter is set to True if the transliteration must happen from the used codepage to the codepage used for storage, and if it is set to False then the transliteration must happen from the native codepage to the storage codepage. This call must be overridden by descendents of TDataset to provide the necessary transliteration: TDataset just copies the contents of the Src buffer to the Dest buffer. The result must be the number of bytes copied to the destination buffer.
No checks are performed on the bufffers.
|
Should the field value be transliterated when reading or writing. |