瀏覽代碼

* Fix issue 39437

Michaël Van Canneyt 3 年之前
父節點
當前提交
1c7709e454
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      packages/rtl-objpas/src/inc/strutils.pp

+ 9 - 1
packages/rtl-objpas/src/inc/strutils.pp

@@ -1385,8 +1385,16 @@ begin
 end;
 
 function SplitString(const S, Delimiters: string): TStringDynArray;
+
+Var
+  a : Array of char;
+  I : Integer;
+  
 begin
-  Result := S.Split(Delimiters);
+  SetLength(A,Length(Delimiters));
+  For I:=1 to Length(Delimiters) do
+    A[I-1]:=Delimiters[i];
+  Result := S.Split(A);
 end;
 
 function NaturalCompareText (const S1 , S2 : string ): Integer ;