Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

Compare

Declaring type: String
Module: System
Assembly: System.Runtime.dll
Source file: String.rvn

Overloads / Variants

Compare

static func Compare(left: string, right: string, comparison: StringComparison) -> int

Source file: String.rvn

Compares non-null strings using an explicit policy; unknown modes fault.

Parameters

Name Type Description
left String
right String
comparison StringComparison

Return value

Int32

Compare

static func Compare(left: string, right: string) -> int

Source file: String.rvn

Orders canonical NFD scalar sequences; this is not linguistic collation.

Parameters

Name Type Description
left String
right String

Return value

Int32