//ERDDAP/com.cohort.util/ScriptString2/isFileNameSafe
isFileNameSafe
[JVM]
open fun isFileNameSafe(ch: Char): Boolean
This indicates if ch is a file-name-safe character (A-Z, a-z, 0-9, _, -, or .).
Return
true if ch is a file-name-safe character (A-Z, a-z, 0-9, _, -, .).
Parameters
JVM
ch |
[JVM]
open fun isFileNameSafe(s: String): Boolean
This indicates if s has length >= 1 and has just file-name-safe characters (0-9, A-Z, a-z, _, -, .). Note, this does not check for filenames that are too long (Windows has a path+fileName max length of 255 chars).
Return
true if s has just file-name-safe characters (0-9, A-Z, a-z, _, -, .). It returns false if s is null or "".
Parameters
JVM
s | a string, usually a file name |