Human readable to camel case in Scala
After searching for a simple way to convert a string like I am a nice string
(human friendly) into something like IAmANiceString
(camel-case) and finding formulas only for the opposite, I decided to write the solution myself.
I’m sure it’s not the fastest and it doesn’t use regular expressions, but it’s simple to read (for me at least) and should allow me to build such string transformations myself in the future.
Anyways, here the function:
Hope it’s useful for you, and if you have any feedback, feel free to leave it on the comments.
Parecidos razonables
-
Grails – query or criteria against a string/value pairs map property
April 21, 2014
0 -
Execute around pattern in Groovy
November 7, 2012
0 -
Java: cambiar el valor de un atributo privado de un objeto
May 29, 2007
32 -
Grails – Hibernate-safe domain class property editor
July 22, 2014
0 -
Temacos traducidos: Pearl Jam – Gone
November 30, 2012
0
Conversaciones