•  DeLiKaTeS Tetris ()  1 489

•  TDictionary Custom Sort  4 171

•  Fast Watermark Sources  3 855

•  3D Designer  5 942

•  Sik Screen Capture  4 124

•  Patch Maker  4 668

•  (remote control)  4 575

•  ListBox Drag & Drop  3 734

•   89 404

•   4 908

•   3 927

•   3 306

•  Canvas Drawing  3 606

•   3 403

•   2 902

•   2 579

•  Paint on Shape  1 976

•   2 741

•  Paletto  2 163

•   2 846

•  Numbrix  1 945

•   2 519

•  HIP  1 558

•  Go ()  1 494

•   1 769

•   1 519

•   1 880

•   1 631

•  HEX View  1 812

•   1 652

 


Delphi FAQ -

| | | | | |
| | | | | | |



Delphi Sources

ANSI, KOI8-R, KOI8-U, OEM-DOS, ISO



: VEG

{ **** UBPFD *********** by delphibase.endimus.com ****
>>       
ANSI, KOI8-R, KOI8-U, OEM/DOS, ISO

     ,    
  ,       .
      ConvertEncoding,
      ,  
,     -  , 
         .

    6    ( TCodeMatrix):
1. cmAnsiToKoi8R -     ANSI   KOI8-R
2. cmAnsiToKoi8U -     ANSI   KOI8-U
3. cmKoi8RToAnsi -     KOI8-R   ANSI
4. cmKoi8UToAnsi -     KOI8-U   ANSI
5. cmOemDosToAnsi -     OEM/DOS   ANSI
6. cmIsoToAnsi -     ISO   ANSI

: System;
:       VEG, veg@tut.by,   - 
Copyright:   VEG, 31.10.2003
:        31  2003 .
***************************************************** }

type //   
  TCodeMatrix = array[1..255] of char;
const //  
  FirstCodes =
    #1#2#3#4#5#6#7#8#9#10#11#12#13#14#15#16#17#18#19#20#21#22#23#24#25#26#27#28+
   #29#30#31' !"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^' +
    '_`abcdefghijklmnopqrstuvwxyz{|}~';
  cmAnsiToKoi8R: TCodeMatrix = FirstCodes // ver 1.0, VEG, 31.10.2003
  + ' '
    + '';
  cmAnsiToKoi8U: TCodeMatrix = FirstCodes // ver 0.8, VEG, 31.10.2003
  + ' '
    + '';
  cmKoi8RToAnsi: TCodeMatrix = FirstCodes // ver 1.0, VEG, 31.10.2003
  + '--L-++T++------?v??? ???=-㬬LLL---TTT+++'
    + '';
  cmKoi8UToAnsi: TCodeMatrix = FirstCodes // ver 1.0, VEG, 31.10.2003
  + '--L-++T++------?v??? ???=-㳿LLL-T+'
    + '';
  cmOemDosToAnsi: TCodeMatrix = FirstCodes // ver 1.0, VEG, 31.10.2003
  + '---+---L+T+-+L'
    + 'T=+TTLL-++-----v ';
  cmIsoToAnsi: TCodeMatrix = FirstCodes // ver 1.0, VEG, 31.10.2003
  + '??????????????????????????????? '
    + '';

function ConvertEncoding(sIn: string; sCoding: string): string;
//sIn -   
//sCoding -   
//result -   
var
  iFtd: integer;
begin
  for iFtd := 1 to length(sIn) do
    result := result + sCoding[ord(sIn[iFtd])];
end; // ver 1.0, (C)Vrublevsky Evgeny Gennadyevich (BELARUS/SLUTSK), 31.10.2003

:

var
  sOut: string;
begin
  sOut := ConvertEncoding(ConvertEncoding('!', cmAnsiToKoi8R), cmKoi8RToAnsi);
end;




ISOLA ()

Poison ARP




Copyright 2004-2024 "Delphi Sources" by BrokenByte Software. Delphi World FAQ