Menu

Commit [r1926]  Maximize  Restore  History

Changed delimiter parameter from Char to string in overloaded TIStringList constructor that explodes a string based on delimiter.

delphidabbler 2012-06-19

changed /trunk/Src/UIStringList.pas
/trunk/Src/UIStringList.pas Diff Switch to side-by-side view
--- a/trunk/Src/UIStringList.pas
+++ b/trunk/Src/UIStringList.pas
@@ -330,12 +330,12 @@
       {Class constructor. Creates new list containing a single string.
         @param Str [in] String to be included in list.
       }
-    constructor Create(const Str: string; const Delim: Char;
-      const AllowEmpty: Boolean; const Trim: Boolean = False); overload;
+    constructor Create(const Str, Delim: string; const AllowEmpty: Boolean;
+      const Trim: Boolean = False); overload;
       {Class constructor. Creates new list containing strings split at a
       delimiter.
         @param Str [in] String to be split.
-        @param Delim [in] Character that delimits components of string.
+        @param Delim [in] String that delimits components of string.
         @param AllowEmpty [in] Determines whether empty components are stored in
           list (True) or ignored (False).
         @param Trim [in] Determines whether strings are trimmed of trailing and
@@ -533,11 +533,11 @@
   Add(Strs);
 end;
 
-constructor TIStringList.Create(const Str: string; const Delim: Char;
+constructor TIStringList.Create(const Str, Delim: string;
   const AllowEmpty, Trim: Boolean);
   {Class constructor. Creates new list containing strings split at a delimiter.
     @param Str [in] String to be split.
-    @param Delim [in] Character that delimits components of string.
+    @param Delim [in] String that delimits components of string.
     @param AllowEmpty [in] Determines whether empty components are stored in
       list (True) or ignored (False).
     @param Trim [in] Determines whether strings are trimmed of trailing and
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.