StringSegmentCompare(StringSegment, StringSegment, Boolean, CultureInfo) Method
Compares two specified
StringSegment instances, ignoring or honoring their case, and using the specified
culture,
and returns an integer that indicates their relative position in the sort order.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public static int Compare(
StringSegment a,
StringSegment b,
bool ignoreCase,
CultureInfo? culture
)
Public Shared Function Compare (
a As StringSegment,
b As StringSegment,
ignoreCase As Boolean,
culture As CultureInfo
) As Integer
public:
static int Compare(
StringSegment a,
StringSegment b,
bool ignoreCase,
CultureInfo^ culture
)
static member Compare :
a : StringSegment *
b : StringSegment *
ignoreCase : bool *
culture : CultureInfo -> int
- a StringSegment
- The first string to compare.
- b StringSegment
- The second string to compare.
- ignoreCase Boolean
- to ignore case during the comparison; otherwise, .
- culture CultureInfo
- An object that supplies culture-specific comparison information.
if , then CultureInfo.CurrentCulture will be used.
Int32A 32-bit signed integer that indicates the lexical relationship between the specified
StringSegment instances.