Files
UnrealEngineUWP/Engine/Source/Programs/DotNETCommon/DotNETUtilities/Perforce/PerforceUtils.cs
Marcus Wassmer cbfcbbb93b Merging //UE4/Dev-Main@4662404 to Dev-Rendering (//UE4/Dev-Rendering)
#rb none
Should be just copyright updates

[CL 4680440 by Marcus Wassmer in Dev-Rendering branch]
2019-01-03 19:16:26 -05:00

35 lines
843 B
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tools.DotNETCommon.Perforce
{
public static class PerforceUtils
{
static public string EscapePath(string Path)
{
string NewPath = Path;
NewPath = NewPath.Replace("%", "%25");
NewPath = NewPath.Replace("*", "%2A");
NewPath = NewPath.Replace("#", "%23");
NewPath = NewPath.Replace("@", "%40");
return NewPath;
}
static public string UnescapePath(string Path)
{
string NewPath = Path;
NewPath = NewPath.Replace("%40", "@");
NewPath = NewPath.Replace("%23", "#");
NewPath = NewPath.Replace("%2A", "*");
NewPath = NewPath.Replace("%2a", "*");
NewPath = NewPath.Replace("%25", "%");
return NewPath;
}
}
}