This is a collection of objects for string operations for EO
Import function from the library with +alias org.eolang.txt.function
and use the imported function in the code.
The library implements a list of functions:
capitalize string
Converts the first character ofstring
to upper case.compare a b
Comparesa
andb
strings and returns1
ifa
is greater thanb
,0
if they are equal,-1
otherwiseconcatenate a b
Concatenatesa
andb
and returns the resulting stringis-alphabetic string
Returnstrue
if all of the the characters instring
are alphabetic (Analog ofCharacter.isAlphabetic
in Java)is-lowercase string
Returnstrue
if all of the the characters instring
are in lower case (Analog ofCharacter.isAlphabetic
in Java)swap-case string
Replaces all the lower case characters instring
with upper case counterparts, and vice versa
The library is designed to be integrated in the base EO, and will be automatically downloaded during project compilation.
Fork repository, make changes, send us a pull request.
We will review your changes and apply them to the master
branch shortly,
provided they don't violate our quality standards. To avoid frustration,
before sending us your pull request please run full Maven build:
mvn clean install -Pqulice
You will need Maven 3.3+ and Java 8+.