-
Notifications
You must be signed in to change notification settings - Fork 3
10 StringOps
Vladyslav Pekker edited this page Dec 26, 2015
·
8 revisions
In the StringOpsModule spells defines utilities for String
s:
scala> println("Hello World!".wrappedOnSpaces(availableWidthInCharacters = 4))
Hello
World!
scala> println("Hello World!".wrappedOnSpaces)
Hello World!
scala> class `One + Two`
defined class One$u0020$plus$u0020Two
scala> println(new (`One + Two`).getClass.getName.toString)
One$u0020$plus$u0020Two
scala> println(new (`One + Two`).getClass.getName.withDecodedScalaSymbols)
One + Two
The defaults can be found in the reference.conf file and the Configuration wiki page shows how to override as well as retrieve them programmatically.