Changeset 211


Ignore:
Timestamp:
Jun 13, 2007, 8:32:31 PM (18 years ago)
Author:
RBRi
Message:

using StringUtilsUnit

Location:
trunk/Components
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Components/Outline2.PAS

    r15 r211  
    44
    55Uses
    6   Classes, Forms, SysUtils, BseDos;
     6  Classes,
     7  Forms,
     8  SysUtils,
     9  BseDos;
    710
    811{
     
    455458uses
    456459  Messages,
    457   ACLStringUtility,
    458   ControlScrolling;
     460  ControlScrolling,
     461  StringUtilsUnit;
    459462
    460463// ============================================================================
     
    22142217      exit;
    22152218
    2216     if StrStarts( S, Node.Text ) then
     2219    if StrStartsWithIgnoringCase( S, Node.Text ) then
    22172220    begin
    22182221      // found
  • trunk/Components/RichTextView.PAS

    r39 r211  
    428428
    429429Uses
    430   SysUtils, PMWin, BseDos, Dos, ClipBrd, Printers,
    431   ACLStringUtility, ACLString,
    432   ControlScrolling, ControlsUtility,
    433   RichTextDocumentUnit, RichTextDisplayUnit;
     430  SysUtils,
     431  PMWin,
     432  BseDos,
     433  Dos,
     434  ClipBrd,
     435  Printers,
     436  ACLString,
     437  ControlScrolling,
     438  ControlsUtility,
     439  RichTextDocumentUnit,
     440  RichTextDisplayUnit,
     441
     442  CharUtilsUnit;
    434443
    435444Procedure TRichTextView.SetSelectionStart( SelectionStart: longint );
     
    20502059//  SetCursorIndex( GetCharIndex( P ), PreserveSelection );
    20512060  Line := FLayout.FLines[ CursorRow ];
    2052   NewOffset := PCharDiff( P, Line.Text );
     2061  NewOffset := PCharPointerDiff( P, Line.Text );
    20532062  if NewOffset < Line.Length then
    20542063  begin
     
    20902099//    exit;
    20912100  Line := FLayout.FLines[ CursorRow ];
    2092   NewOffset := PCharDiff( P, Line.Text );
     2101  NewOffset := PCharPointerDiff( P, Line.Text );
    20932102  if NewOffset >= 0 then
    20942103  begin
     
    22552264                                   255 );
    22562265
    2257   Result := StrNPas( Buffer, Length );
     2266  Result := StrPasWithLength( Buffer, Length );
    22582267end;
    22592268
Note: See TracChangeset for help on using the changeset viewer.