public static ToQianQianHexString ( string s, |
||
s | string | |
encoding | ||
Résultat | string |
public static XmlDocument SearchLrc(string singer, string title) { singer = singer.ToLower().Replace(" ", "").Replace("'", ""); title = title.ToLower().Replace(" ", "").Replace("'", ""); string[] CharToDelete = { "`", "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "-", "_", "=", "+", ",", "<", ".", ">", "/", "?", ";", ":", "\"", "[", "{", "]", "}", "\\","|", "€", " ", "。", ",", "、", ";", ":", "?", "!", "…", "—", "·", "ˉ", "¨", "‘", "’", "“", "”", "々", "~", "‖", "∶", ""","'", "`", "|", "〃", "〔", "〕", "〈", "〉", "《", "》", "「", "」", "『", "』", ".", "〖", "〗", "【", "】", "(", ")", "[", "]", "{", "}", "≈", "≡", "≠", "=", "≤", "≥", "<", ">", "≮","≯", "∷", "±", "+", "-", "×", "÷", "/", "∫", "∮", "∝", "∞", "∧", "∨","∑", "∏", "∪", "∩", "∈", "∵", "∴", "⊥", "∥", "∠", "⌒", "⊙", "≌", "∽","√", "§", "№", "☆", "★", "○", "●", "◎", "◇", "◆", "□", "℃", "‰", "■","△", "▲", "※","→", "←", "↑", "↓", "〓", "¤", "°", "#", "&", "@", "\", "︿","_", " ̄", "―", "♂", "♀", "Ⅰ", "Ⅱ", "Ⅲ", "Ⅳ", "Ⅴ", "Ⅵ", "Ⅶ", "Ⅷ", "Ⅸ","Ⅹ", "Ⅺ", "Ⅻ", "⒈", "⒉", "⒊", "⒋", "⒌", "⒍", "⒎", "⒏", "⒐", "⒑","⒒", "⒓", "⒔", "⒕", "⒖", "⒗", "⒘", "⒙", "⒚", "⒛", "㈠", "㈡", "㈢","㈣", "㈤", "㈥", "㈦", "㈧", "㈨", "㈩", "①", "②", "③", "④", "⑤", "⑥","⑦", "⑧", "⑨","⑩", "⑴", "⑵", "⑶", "⑷", "⑸", "⑹", "⑺", "⑻", "⑼", "⑽", "⑾","⑿", "⒀", "⒁", "⒂", "⒃", "⒄", "⒅", "⒆", "⒇", "┌", "┍", "┎", "┏","┐", "┑", "┒", "┓", "─", "┄", "┈", "└", "┕", "┖", "┗", "┘", "┙", "┚","┛", "━", "┅","┉", "├", "┝", "┞", "┟", "┠", "┡", "┢", "┣", "│", "┆", "┊","┤", "┥", "┦","┧", "┨", "┩", "┪", "┫", "┃", "┇", "┋", "┬", "┭", "┮", "┯", "┰","┱", "┲", "┳","┴", "┵", "┶", "┷", "┸", "┹", "┺", "┻", "┼", "┽", "┾", "┿", "╀","╁", "╂", "╃","╄", "╅", "╆", "╇", "╈", "╉", "╊", "╋", "\"","-" }; for (int i = 0; i < CharToDelete.Length; i++) { singer = singer.Replace(CharToDelete[i], ""); title = title.Replace(CharToDelete[i], ""); } string x = RequestALink(string.Format(SearchPath, EncodeHelper.ToQianQianHexString(singer, Encoding.Unicode), EncodeHelper.ToQianQianHexString(title, Encoding.Unicode))); XmlDocument xml = new XmlDocument(); try { xml.LoadXml(x); } catch (Exception) { } return(xml); }
public XmlDocument SearchLrc(string singer, string title) { singer = singer.ToLower().Replace(" ", "").Replace("'", ""); title = title.ToLower().Replace(" ", "").Replace("'", ""); string x = RequestALink(string.Format(SearchPath, EncodeHelper.ToQianQianHexString(singer, Encoding.Unicode), EncodeHelper.ToQianQianHexString(title, Encoding.Unicode))); XmlDocument xml = new XmlDocument(); try { xml.LoadXml(x); } catch (Exception) { } return(xml); }