Changeset 13 for trunk/SunriseChatCoreUtils.pas
- Timestamp:
- Feb 11, 2008, 2:14:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SunriseChatCoreUtils.pas
r11 r13 60 60 end; 61 61 62 function Explode(Separator: Char; 63 Data: string): TArrayOfString; 62 function Explode(Separator: Char; Data: string): TArrayOfString; 64 63 begin 65 SetLength(Result, 0);66 while Pos(Separator, Data)>0 do begin67 SetLength(Result, Length(Result) +1);68 Result[High(Result)] := Copy(Data,1,Pos(Separator,Data)-1);69 Delete(Data, 1,Pos(Separator,Data));64 SetLength(Result, 0); 65 while Pos(Separator, Data) > 0 do begin 66 SetLength(Result, Length(Result) + 1); 67 Result[High(Result)] := Copy(Data, 1, Pos(Separator, Data) - 1); 68 Delete(Data, 1, Pos(Separator, Data)); 70 69 end; 71 SetLength(Result, Length(Result) +1);72 Result[High(Result)] := Data;70 SetLength(Result, Length(Result) + 1); 71 Result[High(Result)] := Data; 73 72 end; 74 73
Note:
See TracChangeset
for help on using the changeset viewer.