www.pudn.com > ppc_edit-1.2-src.zip > StringFuncs.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace Modules
{
public static class StringFuncs
{
public static int IndexOfBackwards(string Text,char charToFind, int startIndex)
{
if ((startIndex < 0) || (startIndex > Text.Length))
{
return -1;
}
for (int i = startIndex-1; i > 0; i--)
{
if (Text[i] == charToFind)
return i;
}
return -1;
}
}
}