Changeset 68 for trunk/NewView/StringUtilsUnit.pas
- Timestamp:
- Feb 6, 2007, 9:00:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/StringUtilsUnit.pas
r65 r68 61 61 // this is case INsensitive 62 62 Function StrEndsWithIgnoringCase(const aString: String; const anEndString: String): Boolean; 63 64 // the IntToStr generates wrong results 65 // in normal cases IntToStr returns a negative value 66 // and somtimes completly wrong values 67 Function LongWordToStr(const aLongWord: LongWord) : String; 63 68 64 69 Function BoolToStr(const aBoolean : boolean ): string; … … 288 293 end; 289 294 295 Function LongWordToStr(const aLongWord: LongWord) : String; 296 Var 297 l : LongWord; 298 i : Integer; 299 Begin 300 Result := ''; 301 l := aLongWord; 302 303 if l = 0 then 304 begin 305 result := '0'; 306 exit; 307 end; 308 309 while l > 0 do 310 begin 311 i := l mod 10; 312 l := l div 10; 313 Case i of 314 0 : result := '0' + result; 315 1 : result := '1' + result; 316 2 : result := '2' + result; 317 3 : result := '3' + result; 318 4 : result := '4' + result; 319 5 : result := '5' + result; 320 6 : result := '6' + result; 321 7 : result := '7' + result; 322 8 : result := '8' + result; 323 9 : result := '9' + result; 324 end; 325 end; 326 327 end; 328 329 290 330 Function BoolToStr(const aBoolean : boolean ): string; 291 331 begin
Note:
See TracChangeset
for help on using the changeset viewer.