Changeset 210


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

using StringUtilsUnit

Location:
trunk/Components
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Components/ACLDialogs.pas

    r15 r210  
    7878uses
    7979  SysUtils,
    80   Forms, Dialogs, StdCtrls, Buttons,
    81   ACLStringUtility
     80  Forms,
     81  Dialogs,
     82  StdCtrls,
     83  Buttons,
    8284{$ifdef os2}
    83   , ACLLanguageUnit, ControlsUtility
     85  ACLLanguageUnit, ControlsUtility,
    8486{$endif}
    85   ;
     87  CharUtilsUnit;
    8688
    8789// -------------------------------------------------
     
    101103  TheDialog := TMessageForm.Create( nil );
    102104  TheDialog.Caption := Caption;
    103   PMessage := StrDupPas( Message );
     105  PMessage := NewPCharAsCopyOfStr(Message);
    104106  TheDialog.TheText := PMessage;
    105107
  • trunk/Components/CanvasFontManager.pas

    r188 r210  
    55Uses
    66  OS2Def,
    7   Classes, Forms, PMWIN, Graphics;
     7  Classes,
     8  Forms,
     9  PMWIN,
     10  Graphics;
    811
    912Const
     
    137140  PmDev,
    138141  SysUtils,
    139   ACLStringUtility;
     142  StringUtilsUnit;
    140143
    141144Imports
     
    246249    Face := FontFaces[ FaceIndex ];
    247250
    248     if StringsSame( Face.pName^, Name ) then
     251    if StrEqualIgnoringCase( Face.pName^, Name ) then
    249252    begin
    250253      Result := Face;
     
    480483function SubstituteBitmapFontToOutline( const FaceName: string ): string;
    481484begin
    482   if StringsSame( FaceName, 'Helv' ) then
     485  if StrEqualIgnoringCase( FaceName, 'Helv' ) then
    483486    result := 'Helvetica'
    484   else if StringsSame( FaceName, 'Tms Rmn' ) then
     487  else if StrEqualIgnoringCase( FaceName, 'Tms Rmn' ) then
    485488    result := 'Times New Roman'
    486   else if StringsSame( FaceName, 'System Proportional' ) then
     489  else if StrEqualIgnoringCase( FaceName, 'System Proportional' ) then
    487490    result := 'Helvetica'
    488   else if StringsSame( FaceName, 'System Monospaced' ) then
     491  else if StrEqualIgnoringCase( FaceName, 'System Monospaced' ) then
    489492    result := 'Courier'
    490   else if StringsSame( FaceName, 'System VIO' ) then
     493  else if StrEqualIgnoringCase( FaceName, 'System VIO' ) then
    491494    result := 'Courier'
    492495  else
  • trunk/Components/ComponentsTestForm.pas

    r145 r210  
    116116  ControlScrolling,
    117117  ACLResourceUtility,
    118   ACLStringUtility,
    119118  RichTextPrintUnit,
    120119  RichTextStyleUnit,
    121   ACLLanguageUnit;
     120  ACLLanguageUnit,
     121  CharUtilsUnit;
    122122
    123123{$R DialogIcons}
     
    145145           4 );
    146146
    147   Memo1.Lines.Add( StrNPas( p, l ) );
     147  Memo1.Lines.Add( StrPasWithLength( p, l ) );
    148148
    149149  StrDispose( p );
Note: See TracChangeset for help on using the changeset viewer.