//-----------------------------------------------------------------------
//
// Copyright (c) Outercurve Foundation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.BuildTasks {
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
internal static class Utilities {
internal static string SuppressCharacters(string fileName, char[] suppress, char replacement) {
Contract.Requires(fileName != null);
Contract.Requires(suppress != null);
if (fileName.IndexOfAny(suppress) < 0) {
return fileName;
}
StringBuilder builder = new StringBuilder(fileName);
foreach (char ch in suppress) {
builder.Replace(ch, replacement);
}
return builder.ToString();
}
}
}