MsgUtils.FindMismatchPosition(String, String, Int32, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Shows the position two strings start to differ. Comparison starts at the start index.
public static int FindMismatchPosition (string expected, string actual, int istart, bool ignoreCase);
static member FindMismatchPosition : string * string * int * bool -> int
Parameters
- expected
- String
The expected string
- actual
- String
The actual string
- istart
- Int32
The index in the strings at which comparison should start
- ignoreCase
- Boolean
Boolean indicating whether case should be ignored
Returns
-1 if no mismatch found, or the index where mismatch found