Files
2026-03-04 10:03:45 +08:00

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;
}
}
}