If you use `toLowerCase()` on a string, is that dr...
# lucee
d
If you use
toLowerCase()
on a string, is that dropping down to java to make that happen? Or is that an undocumented alias to
lCase()
or something? https://trycf.com/gist/167ff5c50107ea90c8b4c9174a27246f/lucee5?theme=monokai
z
Open source mate, should be easy to find on GitHub
I'd look it up but I'm out having a drink after all the work getting 5.3.9 out for everyone! 🎉
🎉 2
s
👍 1
it is in fact java method, and there are a number of others also available to the String class
d
Huh, I’ve never thought to do that.
❤️ 1
So
toLowerCase()
pops up all over the place in the lucee source code, obviously because there is java all over the place using this method from the String class. It’s also used in a couple of cfml files too. So is this “safe” to use within cfml? Or would the
lCase()
function be preferable? Or does it not matter either way?
z
I'd use the BIF, I.e lcase()
👍 2