mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 19:24:55 +08:00
20 lines
525 B
C#
20 lines
525 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BetterLyrics.WinUI3.Helper
|
|
{
|
|
public static class StringHelper
|
|
{
|
|
// 去除空格、括号、下划线、横杠、点、大小写等
|
|
public static string Normalize(string s) =>
|
|
new string(s
|
|
.Where(c => char.IsLetterOrDigit(c))
|
|
.ToArray())
|
|
.ToLowerInvariant();
|
|
public static string NewLine = "\n";
|
|
}
|
|
}
|