Merge pull request #491 from Dangercoder/develop

honey.sql/upper-case for clojure-clr
This commit is contained in:
Sean Corfield 2023-06-02 15:40:15 -07:00 committed by GitHub
commit e7737ee7af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,8 +173,12 @@
"Upper-case a string in Locale/US to avoid locale-specific capitalization."
[^String s]
(.. s toString (toUpperCase (java.util.Locale/US))))
:cljr
(defn upper-case
"Upper-case a string in Locale/US to avoid locale-specific capitalization."
[^String s]
(.ToUpper s (System.Globalization.CultureInfo. "en-Us")))
;; TODO - not sure if there's a JavaScript equivalent here we should be using as well
;; TODO - not sure if there's a .NET equivalent here we should be using as well
:default
(defn upper-case
"In ClojureScript, just an alias for cljs.string/upper-case."