代码编写主要功能是什么.............
以下为一段asp.net写的代码,试分析其功能。
public int getStringLen(int iLen,string strIn)
{//iLen表示几位一级,如:为2,则表示2位为一级 ,
int i = 0;
int iTrueLen = 0;
string strTemp = null;
for (int iCount = 0; iCount < iLen; iCount++)
{
strTemp += "0";
}
while (strIn.Length> i && strIn.Substring(i,iLen) != strTemp)
{
iTrueLen += iLen;
i += iLen;
}
return iTrueLen;
}