跳转到主内容

//ERDDAP/com.cohort.util/ScriptString2/lineStartsWithIgnoreCase

lineStartsWithIgnoreCase

[JVM]
open fun lineStartsWithIgnoreCase(ar: Array<Any>, s: String): Int

This variant of lineStartsWith startsAt index=0.

Return

the element number of ar which starts with s (or -1 if not found)

Parameters

JVM

arthe array of objects, e.g., including LATITUDE
sthe String to be found, e.g., Lat

[JVM]
open fun lineStartsWithIgnoreCase(ar: Array<Any>, s: String, startAt: Int): Int

This is like lineStartsWith, but ignores case.

Return

the element number of ar which starts with s (or -1 if not found)

Parameters

JVM

arthe array of objects, e.g., including LATITUDE
sthe String to be found, e.g., Lat
startAtthe first element of ar to be checked. If startAt <0, this starts with startAt = 0.