111,129
社区成员
发帖
与我相关
我的任务
分享 private static string getList_add_geci(string currentPos)
{
try
{
for (int i = 0; i < lrcString.Length; i++)
{
int l = lrcString[i].LastIndexOf("]");
if(l == 9)
{
if (getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 8, 5))
{
listItem = lrcString[i].Substring(l + 1, lrcString[i].Length - l - 1);
return listItem;
}
}
else
if (l == 19)
{
if (getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 8, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 18, 5))
{
listItem = lrcString[i].Substring(l + 1, lrcString[i].Length - l - 1);
return listItem;
}
}
else
if (l == 29)
{
if (getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 8, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 18, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 28, 5))
{
listItem = lrcString[i].Substring(l + 1, lrcString[i].Length - l - 1);
return listItem;
}
}
else
if (l == 39)
{
if (getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 8, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 18, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 28, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 38, 5))
{
listItem = lrcString[i].Substring(l + 1, lrcString[i].Length - l - 1);
return listItem;
}
}
else
if (l == 49)
{
if (getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 8, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 18, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 28, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 38, 5) || getLengthWithFormat2(currentPos) == lrcString[i].Substring(l - 48, 5))
{
listItem = lrcString[i].Substring(l + 1, lrcString[i].Length - l - 1);
return listItem;
}
}
}
return listItemUnAdd;
}
catch
{
return listItemUnAdd;
}
}