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 ofstringto upper case.compare a b
Comparesaandbstrings and returns1ifais greater thanb,0if they are equal,-1otherwiseconcatenate a b
Concatenatesaandband returns the resulting stringis-alphabetic string
Returnstrueif all of the the characters instringare alphabetic (Analog ofCharacter.isAlphabeticin Java)is-lowercase string
Returnstrueif all of the the characters instringare in lower case (Analog ofCharacter.isAlphabeticin Java)swap-case string
Replaces all the lower case characters instringwith 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 -PquliceYou will need Maven 3.3+ and Java 8+.