hedgewars/uChat.pas
branchtransitional_engine
changeset 15900 128ace913837
parent 15875 d7b53d08ad9c
child 15975 2146cb7be36f
equal deleted inserted replaced
15899:73cdc306888f 15900:128ace913837
   103 
   103 
   104 procedure UpdateInputLinePrefix(); forward;
   104 procedure UpdateInputLinePrefix(); forward;
   105 procedure UpdateCursorCoords(); forward;
   105 procedure UpdateCursorCoords(); forward;
   106 
   106 
   107 // relevant for UTF-8 handling
   107 // relevant for UTF-8 handling
   108 function IsFirstCharByte(c: char): boolean; inline;
   108 function IsFirstCharByte(c: char): boolean; 
   109 begin
   109 begin
   110     // based on https://en.wikipedia.org/wiki/UTF-8#Description
   110     // based on https://en.wikipedia.org/wiki/UTF-8#Description
   111     IsFirstCharByte:= (byte(c) and $C0) <> $80;
   111     IsFirstCharByte:= (byte(c) and $C0) <> $80;
   112 end;
   112 end;
   113 
   113