string comparison

noun
UK /strɪŋ kəmˈpærɪsən/
US /strɪŋ kəmˈpɛrɪsən/

A string comparison is when a computer checks if two words or letters are the same or different.

The program does a string comparison to see if the password you typed matches the saved one.


OTHER MEANINGS

2. In programming, checking the order of two strings alphabetically to decide which comes first.

Sorting the names required a string comparison for each pair.

3. A test that ignores uppercase and lowercase letters when checking two strings.

A case-insensitive string comparison treats 'Apple' and 'apple' as equal.

4. Checking only the first few characters of two strings to see if they start the same.

The search used a prefix string comparison to find all words beginning with 'cat'.