Overslaan en naar de inhoud gaan

//ERDDAP/com.cohort.util/ScriptString2/toCSSVString

toCSSVString

[JVM]
open fun toCSSVString(ar: Array<Any>): String

Generates a Comma-Space-Separated-Value (CSSV) string.

CHANGED: before 2011-03-06, this didn't do anything special for strings with internal commas or quotes. Now it uses toJson for that string.

CHANGED: before 2011-09-04, this was called toCSVString.

Return

a CSSV String with the values with ", " after all but the last value. Returns null if ar is null. null elements are represented as "[null]".

Parameters

JVM

aran array of objects

[JVM]
open fun toCSSVString(ar: Array<Boolean>): String

This generates a Comma-Space-Separated-Value (CSSV) String from the array.

CHANGED: before 2011-09-04, this was called toCSVString.

Return

a CSSV String (or null if ar is null)

Parameters

JVM

aran array of boolean

[JVM]
open fun toCSSVString(ar: Array<Byte>): String

This generates a Comma-Space-Separated-Value (CSSV) String from the array.

CHANGED: before 2011-09-04, this was called toCSVString.

Return

a CSSV String (or null if ar is null)

Parameters

JVM

aran array of bytes

[JVM]
open fun toCSSVString(ar: Array<Char>): String

This generates a Comma-Space-Separated-Value (CSSV) String from the array. (chars are treated as unsigned shorts).

CHANGED: before 2011-09-04, this was called toCSVString.

Return

a CSSV String (or null if ar is null)

Parameters

JVM

aran array of char

[JVM]
open fun toCSSVString(ar: Array<Short>): String

This generates a Comma-Space-Separated-Value (CSSV) String from the array.

CHANGED: before 2011-09-04, this was called toCSVString.

Return

a CSSV String (or null if ar is null)

Parameters

JVM

aran array of shorts

[JVM]
open fun toCSSVString(ar: Array<Int>): String

This generates a Comma-Space-Separated-Value (CSSV) String from the array.

CHANGED: before 2011-09-04, this was called toCSVString.

Return

a CSSV String (or null if ar is null)

Parameters

JVM

aran array of ints

[JVM]
open fun toCSSVString(ar: Array<Long>): String

This generates a Comma-Space-Separated-Value (CSSV) String from the array.

CHANGED: before 2011-09-04, this was called toCSVString.

Return

a CSSV String (or null if ar is null)

Parameters

JVM

aran array of longs

[JVM]
open fun toCSSVString(ar: Array<Float>): String

This generates a Comma-Space-Separated-Value (CSSV) String from the array.

CHANGED: before 2011-09-04, this was called toCSVString.

Return

a CSSV String (or null if ar is null)

Parameters

JVM

aran array of float

[JVM]
open fun toCSSVString(ar: Array<Double>): String

This generates a Comma-Space-Separated-Value (CSSV) String from the array.

CHANGED: before 2011-09-04, this was called toCSVString.

Return

a CSSV String (or null if ar is null)

Parameters

JVM

aran array of double