Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

ballerina-attic/module-ballerina-stringutils

Repository files navigation

Ballerina String Utils Library

Build GitHub Last Commit Github issues License

This String utils library is one of the standard libraries of Ballerina language.

For more information on all the functions supported by the stringutils, which includes the below mentioned functions, see API Docs.

Please note that these functions are different from what is provided by [lang.string] (https://ballerina.io/swan-lake/learn/api-docs/ballerina/lang.string/index.html) module.

  1. contains
  2. equalsIgnoreCase
  3. hashCode
  4. lastIndexOf
  5. matches
  6. replace
  7. replaceAll
  8. replaceFirst
  9. split
  10. toBoolean

For a quick sample on demonstrating the usage see Ballerina By Example.

Issues and Projects

Issues and Projects tabs are disabled for this repository as this is part of the Ballerina Standard Library. To report bugs, request new features, start new discussions, view project boards, etc. please visit Ballerina Standard Library parent repository.

This repository only contains the source code for the module.

Building from the Source

Setting Up the Prerequisites

  • Download and install Java SE Development Kit (JDK) version 11 (from one of the following locations).

    • Oracle

    • OpenJDK

      Note: Set the JAVA_HOME environment variable to the path name of the directory into which you installed JDK.

Building the Source

  1. To build the library:

     ./gradlew clean build
    
  2. To debug:

     ./gradlew clean build -PdebugBallerina=<port>
    
  3. To build the module without the tests:

     ./gradlew clean build -PskipBallerinaTests
    

Contributing to Ballerina

As an open source project, Ballerina welcomes contributions from the community.

For more information, go to the contribution guidelines.

Code of Conduct

All contributors are encouraged to read Ballerina Code of Conduct.

Useful Links