Giter Site home page Giter Site logo

eo-strings's Introduction

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+.

eo-strings's People

Contributors

eugenedar avatar levbagryansky avatar rultor avatar renovate[bot] avatar graur avatar yegor256 avatar kerelape avatar mximp avatar l3r8yj avatar yasamprom avatar ivan-egorov42 avatar volodya-lombrozo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.