Method CompareArrayByPrefix
CompareArrayByPrefix(Char[], Int32, Char[], Int32)
Compare two arrays, starting at the specified offsets, but treating shortArray
as a prefix to longArray
.
As long as shortArray
is a prefix of longArray
, return 0.
Otherwise, behave as CompareArray(Char[], Int32, Char[], Int32).
Declaration
public static int CompareArrayByPrefix(char[] shortArray, int shortIndex, char[] longArray, int longIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | shortArray | prefix array |
System.Int32 | shortIndex | offset into |
System.Char[] | longArray | long array (word) |
System.Int32 | longIndex | offset into |
Returns
Type | Description |
---|---|
System.Int32 | 0 if |