Skip to content

Commit 9d42814

Browse files
authored
Merge pull request #135 from genericptr/131-workspaces-directories-in-server-are-not-being-found
Fix #131 Workspaces directories in server are not being found
2 parents e507a36 + 9cb4c0a commit 9d42814

2 files changed

Lines changed: 166 additions & 163 deletions

File tree

src/serverprotocol/PasLS.CodeUtils.pas

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ function IdentifierContext(Identifier: TIdentifierListItem; out DetailString: Sh
7676

7777
function ParseParamList(RawList: String): TStringList; overload;
7878
function ParseParamList(RawList: String; AsSnippet: boolean): String; overload;
79+
function SplitString(s: String; delimiter: Char): TStringArray;
80+
function JoinString(const A: array of string; const Sep: string): string;
7981

8082
function ConvertBytesToHumanReadable(bytes: cardinal): ShortString;
8183

@@ -390,7 +392,20 @@ function ConvertBytesToHumanReadable(bytes: cardinal): ShortString;
390392
result := IntToStr(bytes)+units[exponent];
391393
end;
392394

393-
function SplitString (s: string; delimiter: char): TStringArray;
395+
function JoinString(const A: array of string; const Sep: string): string;
396+
var
397+
i: Integer;
398+
begin
399+
Result := '';
400+
for i := 0 to High(A) do
401+
begin
402+
if i > 0 then
403+
Result := Result + Sep;
404+
Result := Result + A[i];
405+
end;
406+
end;
407+
408+
function SplitString(s: String; delimiter: Char): TStringArray;
394409
var
395410
i: integer;
396411
c: char;

0 commit comments

Comments
 (0)