Skip to content

string_compare

Declaration

string_compare :: fn (first: string, second: string, n := -1) bool

Description

Compare two strings in specified range and return true if they are same otherwise return false.

Arguments

  • first First string to be compared.
  • second Second string to be compared.
  • n Optional count of characters to be compared.

Result

Return true if n characters in first string are same as the same range in second string.

Declared in: string.bl