Edit

Share via


MsgUtils.FindMismatchPosition(String, String, Int32, Boolean) Method

Definition

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

Applies to