Added honey.sql/upper-case for clojure-clr

This commit is contained in:
Dangercoder 2023-06-02 20:24:52 +02:00
parent 6ce63cad2c
commit 93c8ad75a6

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."