SIL.FieldWorks.XWorks.FwXWindow.CreateNewFileName C# (CSharp) Method

CreateNewFileName() public static method

public static CreateNewFileName ( string fullName, string oldString, string newString ) : string
fullName string
oldString string
newString string
return string
		public static string CreateNewFileName(string fullName, string oldString, string newString)
		{
			string oldName = fullName;
			StringBuilder strBuilderNewName = new StringBuilder(fullName);
			int index = fullName.LastIndexOf(oldString);
			if (index != -1)
			{
				strBuilderNewName.Replace(oldString, newString, index, oldString.Length);
				oldName = strBuilderNewName.ToString();
			}
			return oldName;
		}
FwXWindow