メインコンテンツへスキップ

//ERDDAP/com.cohort.util/ScriptString2/getNMatchingCharacters

getNMatchingCharacters

[JVM]
open fun getNMatchingCharacters(s1: String, s2: String): Int

This determines the number of initial characters that match.

Return

the number of characters that are the same at the start of both strings.

Parameters

JVM

s1
s2