23 lines
450 B
C#
23 lines
450 B
C#
namespace DarkTonic.MasterAudio
|
|
{
|
|
public static class UtilStrings
|
|
{
|
|
public static string TrimSpace(string untrimmed)
|
|
{
|
|
if (string.IsNullOrEmpty(untrimmed))
|
|
{
|
|
return string.Empty;
|
|
}
|
|
return untrimmed.Trim();
|
|
}
|
|
|
|
public static string ReplaceUnsafeChars(string source)
|
|
{
|
|
source = source.Replace("'", "'");
|
|
source = source.Replace("\"", """);
|
|
source = source.Replace("&", "&");
|
|
return source;
|
|
}
|
|
}
|
|
}
|