(ver_fromstr str)
Inputs: [str] Returns: Version
Converts formated version string (e.g. 1.2.3.4) to version vector [1 2 3 4]. Shorter versions will be filled with zeros (e.g. 1.2 to [1 2 0]). Longer versions will be trimmed (e.g. 1.2.3.4.5 to [1 2 3 4]). nil is Version [0 0 0].
Inputs: [str] Returns: Version Converts formated version string (e.g. 1.2.3.4) to version vector [1 2 3 4]. Shorter versions will be filled with zeros (e.g. 1.2 to [1 2 0]). Longer versions will be trimmed (e.g. 1.2.3.4.5 to [1 2 3 4]). nil is Version [0 0 0].
(ver_str version)
Inputs: [version :- Version] Returns: s/Str
Converts version vector to point seperated string. Example (= (ver_str [2 1 4]) "2.1.4")
Inputs: [version :- Version] Returns: s/Str Converts version vector to point seperated string. Example (= (ver_str [2 1 4]) "2.1.4")
(ver_str2int str)
Inputs: [str :- s/Str] Returns: s/Int
Converts string to integer, ignores all characters but 0-9. Returns 0 if string is empty.
Inputs: [str :- s/Str] Returns: s/Int Converts string to integer, ignores all characters but 0-9. Returns 0 if string is empty.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close