upper-case

clojure.string

  • (upper-case s)
Converts string to all upper-case.

2 Examples top

  • user=> (clojure.string/upper-case "MiXeD cAsE")
    "MIXED CASE"
  • ;; Non-character symbols will be returned back
    user=> (clojure.string/upper-case ",.!@#$%^&*()")
    ",.!@#$%^&*()"
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/string.clj:157 top

(defn ^String upper-case
  "Converts string to all upper-case."
  {:added "1.2"}
  [^CharSequence s]
  (.. s toString toUpperCase))
Vars in clojure.string/upper-case:
Used in 0 other vars

Comments top

No comments for upper-case. Log in to add a comment.