How to convert a string to all lowercase?

Started by TheCatalystGaming on Sat, 11/21/2020 - 18:32

Topic category: Help with modding (Java Edition)

Last seen on 21:45, 23. Sep 2021
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to convert a string to all lowercase?
Sat, 11/21/2020 - 18:32

I have various strings that are capitalised, and I would like to replace the capitals with lowercase letters. However the strings are of varying lengths and content. I could use "Replace x with y in z", but I would have to do that 26 times for every letter. Is there a better solution?

Last seen on 17:09, 9. Sep 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
String toLowerCase() Add a…
Sat, 11/21/2020 - 20:37

String toLowerCase()

Add a custom code snippet and add whatever the strings name is to ".toLowerCase()"

Last seen on 17:09, 9. Sep 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
E.g name.toLowerCase();
Sat, 11/21/2020 - 20:40

E.g name.toLowerCase();

Last seen on 21:45, 23. Sep 2021
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks, this worked!
Sun, 11/22/2020 - 13:32

Thanks, this worked!

Last seen on 17:09, 9. Sep 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
:D
Sun, 11/22/2020 - 17:16

:D