Compare

Method

Compares two strings

Product: 

Class: 

Warning

uCalc API Preview Release Notice:The uCalc engine has successfully transitioned to modern cross-platform environments.The next phase envolves some structural changes, performance optimizations, and API refinements.The API is subject to breaking changes prior to the stable release. Please evaluate the preview version thoroughly before production use.

Syntax

Compare(string, int, int, int)

Parameters

OtherString
string
The other string to compare with
IndexA
int
(Default = 0)
Starting point of first string
IndexB
int
(Default = 0)
Starting point of next string
Length
int
(Default = -1)
Length

Return

Comparison

Returns bigger than, equal, or less than (Comparison enum)

Remarks

Compares two strings

Examples

This page last modified on: 

8/21/2026