Ignore:
Timestamp:
Nov 21, 2010, 8:49:46 AM (14 years ago)
Author:
george
Message:
  • Upraveno: Zbylé výskyty TStringListEx nahrazeny TListString a TDictionaryStringString.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebServer/UHTTPServer.pas

    r40 r42  
    77uses
    88  Classes, SysUtils, UTCPServer, UCommon, UMemoryStreamEx, UMIMEType,
    9   Synautil, UStringListEx, SpecializedObjectList;
     9  Synautil, SpecializedObjectList, SpecializedList;
    1010
    1111type
     
    2929  THTTPRequest = class
    3030    Query: TQueryParameterList;
    31     QueryParts: TStringListEx;
     31    QueryParts: TListString;
    3232    Path: string;
    3333    Method: string;
     
    253253begin
    254254  Query := TQueryParameterList.Create;
    255   QueryParts := TStringListEx.Create;
     255  QueryParts := TListString.Create;
    256256  Headers := TStringList.Create;
    257257  Cookies := TCookieList.Create;
     
    272272var
    273273  I: Integer;
    274   Parts: TStringListEx;
    275   Pair: TStringListEx;
     274  Parts: TListString;
     275  Pair: TListString;
    276276begin
    277277  try
    278     Parts := TStringListEx.Create;
    279     Pair := TStringListEx.Create;
     278    Parts := TListString.Create;
     279    Pair := TListString.Create;
    280280    Clear;
    281     Parts.Explode('&', Text);
     281    Parts.Explode(Text, '&', StrToStr);
    282282    for I := 0 to Parts.Count - 1 do begin
    283       Pair.Explode('=', Parts[I]);
     283      Pair.Explode(Parts[I], '=', StrToStr);
    284284      if Pair.Count >= 2 then
    285285        Values[Pair[0]] := Pair[1];
     
    307307var
    308308  I: Integer;
    309   Parts: TStringListEx;
    310   Pair: TStringListEx;
     309  Parts: TListString;
     310  Pair: TListString;
    311311begin
    312312  try
    313     Parts := TStringListEx.Create;
    314     Pair := TStringListEx.Create;
     313    Parts := TListString.Create;
     314    Pair := TListString.Create;
    315315    Clear;
    316     Parts.Explode(';', Text);
     316    Parts.Explode(Text, ';', StrToStr);
    317317    for I := 0 to Parts.Count - 1 do begin
    318       Pair.Explode('=', Parts[I]);
     318      Pair.Explode(Parts[I], '=', StrToStr);
    319319      if Pair.Count >= 2 then
    320320        Values[Trim(Pair[0])] := Trim(Pair[1]);
Note: See TracChangeset for help on using the changeset viewer.