Changeset 105 for trunk/NewView/StringUtilsUnit.pas
- Timestamp:
- Apr 5, 2007, 8:34:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/StringUtilsUnit.pas
r102 r105 13 13 14 14 const 15 StrTAB = chr(9); 15 16 StrCR = chr(13); 16 17 StrLF = chr(10); … … 76 77 Function StrLeftUntil(const aReceiver: String; const aSetOfChars: TSetOfChars) : String; 77 78 78 // returns true if the String starts with the provide sone79 // returns true if the String starts with the provided one 79 80 // this is case SENSITIVE 80 81 Function StrStartsWith(const aReceiver: String; const aStartString: String): Boolean; 81 82 82 // returns true if the String starts with the provide sone83 // returns true if the String starts with the provided one 83 84 // this is case INsensitive 84 85 Function StrStartsWithIgnoringCase(const aReceiver: String; const aStartString: String): Boolean; … … 88 89 Function StrEndsWith(const aReceiver: String; const anEndString: String): Boolean; 89 90 90 // returns true if the String ends with the provide sone91 // returns true if the String ends with the provided one 91 92 // this is case INsensitive 92 93 Function StrEndsWithIgnoringCase(const aReceiver: String; const anEndString: String): Boolean; 94 95 // returns true if the Strings are the same 96 // this is case INsensitive 97 Function StrEqualIgnoringCase(const aReceiver: String; const aSecondString: String): Boolean; 93 98 94 99 // the IntToStr generates wrong results … … 106 111 107 112 uses 113 SysUtils, 108 114 DebugUnit; 109 115 … … 502 508 503 509 510 Function StrEqualIgnoringCase(const aReceiver: String; const aSecondString: String): Boolean; 511 begin 512 Result := CompareText(aReceiver, aSecondString) = 0; 513 end; 514 515 504 516 Function LongWordToStr(const aLongWord: LongWord) : String; 505 517 Var
Note:
See TracChangeset
for help on using the changeset viewer.