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. This value is ignored when less than 0 (default is -1).

Result

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

Declared in: string.bl