Coder Social home page Coder Social logo

arvindcheenu / morphcase Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 21 KB

๐Ÿ”  A micro Java library to change the cases of Strings. More variations will be added as time permits.

License: MIT License

Java 100.00%
java-8 java java-library string-manipulation string-casing

morphcase's Introduction

morphCase

A micro Java library to change the cases of Strings. More variations will be added as time permits.

Author : ArvindCheenu.

Constructors

Constructors Description
morphCase () Initialises normalCase as an empty string.
morphCase (String) Initialises normalCase as the entered string.

Getters and Setters

Functions Description
getNormalCase () Returns the string of the instance.
setNormalCase (String) Returns the instance of normalCase
set as the entered string.

String Case Functions

Functions Syntax Output Description
.toTitleCase () morphCase test = new morphCase("test string"); test.toTitleCase(); Test String returns String converted to Title Case.
.toUppercase () morphCase test = new morphCase("test string"); test.toUpperCase(); TEST STRING returns String converted to Upper Case.
.toLowerCase () morphCase test = new morphCase("TEST STRING"); test.toLowerCase(); test string returns String converted to Lower Case.
.toCamelCase () morphCase test = new morphCase("TEST STRING"); test.toCamelCase(); testString returns String converted to Camel Case.
.toDotcase () morphCase test = new morphCase("TEST STRING"); test.toDotcase(); test.string returns String converted to Dot Case.
.toConstantCase () morphCase test = new morphCase("test string"); test.toConstantCase(); TEST_STRING returns String converted to Constant Case.
.toHeaderCase () morphCase test = new morphCase("TEST STRING"); test.toHeaderCase(); Test-String returns String converted to Header Case.
.toParamCase () morphCase test = new morphCase("TEST STRING"); test.toParamCase(); test-string returns String converted to Param Case.
.toPascalCase () morphCase test = new morphCase("TEST STRING"); test.toPascalCase(); TestString returns String converted to Pascal Case.
.toPathCase () morphCase test = new morphCase("TEST STRING"); test.toPathCase(); test/string returns String converted to Path Case.
.toSnakeCase () morphCase test = new morphCase("TEST STRING"); test.toSnakeCase(); test_string returns String converted to Snake Case.
.toInvertCase () morphCase test = new morphCase("Test String"); test.toInvertCase(); tEST sTRING returns String with swapped Case.
.toPercentCase () morphCase test = new morphCase("Test String"); test.toPercentCase(); Test20%String returns String with Percent Case, used for URL encoding of Reserved and Non-UnReserved Characters.

Usage

Simply add the JAR file in this repository and include it as an external dependency library (by selecting Add External JAR Libraries... in Eclipse while creating a new project.) while creating any project.

License

MIT License

Copyright (c) 2017 arvindcheenu

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


ย ย byย ย 

morphcase's People

Contributors

arvindcheenu avatar

Watchers

 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.