Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

org.eolang:eo-strings

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

org.eolang:eo-strings

EO objects for manipulations with strings.

  • 0.6.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source
logo

EO principles respected here DevOps By Rultor.com We recommend IntelliJ IDEA

mvn PDD status codecov Maven Central

Hits-of-Code Lines of code License

EO 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:

$ mvn clean install -Pqulice

You will need Maven 3.3+ and Java 8+.

FAQs

Package last updated on 24 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc