How can I search faster for name/value pairs in a Delphi TStringList?

前端 未结 5 1581

I implemented language translation in an application by putting all strings at runtime in a TStringList with:

procedure PopulateStringList;
begin  
  EnglishStri         


        
5条回答
  •  你的背包
    2021-02-04 19:00

    In Delphi 2009 or later I would use TDictionary< string,string > in Generics.Collections. Also note that there are free tools such as http://dxgettext.po.dk/ for translating applications.

提交回复
热议问题