https://github.com/objectionary/eo-strings
EO Objects for Manipulations with Strings
https://github.com/objectionary/eo-strings
eolang java oop oop-principles
Last synced: 3 months ago
JSON representation
EO Objects for Manipulations with Strings
- Host: GitHub
- URL: https://github.com/objectionary/eo-strings
- Owner: objectionary
- License: mit
- Archived: true
- Created: 2022-07-22T12:59:45.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T03:44:53.000Z (over 1 year ago)
- Last Synced: 2025-07-30T07:41:46.420Z (9 months ago)
- Topics: eolang, java, oop, oop-principles
- Language: Java
- Homepage:
- Size: 320 KB
- Stars: 12
- Watchers: 4
- Forks: 9
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README

[](https://www.elegantobjects.org)
[](http://www.rultor.com/p/objectionary/eo-strings)
[](https://www.jetbrains.com/idea/)
[](https://github.com/objectionary/eo-strings/actions/workflows/mvn.yml)
[](http://www.0pdd.com/p?name=objectionary/eo-strings)
[](https://codecov.io/gh/cqfn/eo)
[](https://maven-badges.herokuapp.com/maven-central/org.eolang/eo-strings)
[](https://hitsofcode.com/view/github/objectionary/eo-strings)

[](https://github.com/objectionary/eo-strings/blob/master/LICENSE.txt)
**This repository is deprecated! We've moved all EO objects from this repository
to [objectionary/eo](https://github.com/objectionary/eo).**
[EO](https://www.eolang.org) objects for manipulations with strings.
This is how it works:
### Text
The object `QQ.txt.text` is a decorator of `QQ.string`.
The attribute `is-empty` is TRUE if the length of the tuple is zero.
The attribute `trim` is a new string trimmed from both sides.
The attribute `joined` is a string that was obtained by concatenating
the strings from the tuple with the current string as a delimiter.
The attribute `contains` is TRUE if current string contains
`substr` as a substring.
The attribute `ends-with` is TRUE if current string
ends with `substr`.
The attribute `starts-with` is TRUE if current string
starts with `substr`.
The attribute `index-of` is an index of `substr` in
current string as a substring.
The attribute `lower-case` is a new string in lower case.
The attribute `upper-case` is a new string in upper case.
The attribute `at` is a one sign from string by index.
The attribute `replaced` a new string where all substrings
`target` was changed to `replacement`.
The attribute `as-int` is an int object derived from the string.
The attribute `as-float` is a float object derived from the string.
The attribute `compare` is an int value -
result of comparing in lexicographic order.
Returns 0 if two strings are equal,
a negative number if the first string comes before the argument,
a positive number if the first string comes after the argument.
```
[] > text-test
QQ.hamcrest.assert-that > @
trim.
text
lower-case.
text
" AbC "
$.equal-to "abc"
```
## How to Contribute
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:
```bash
$ mvn clean install -Pqulice
```
You will need Maven 3.3+ and Java 8+.