|
| 1 | + |
| 2 | + |
| 3 | +<h1 align='center'>Reserved Character Replacer</h1> |
| 4 | +<p align='center'>Responsible for replacing all characters reserved by the operating system with others according to a mapping.</p> |
| 5 | +<p align="center"> |
| 6 | + <a href="https://github.com/wniemiec-util-java/reserved-character-replacer/actions/workflows/windows.yml"><img src="https://github.com/wniemiec-util-java/reserved-character-replacer/actions/workflows/windows.yml/badge.svg" alt=""></a> |
| 7 | + <a href="https://github.com/wniemiec-util-java/reserved-character-replacer/actions/workflows/macos.yml"><img src="https://github.com/wniemiec-util-java/reserved-character-replacer/actions/workflows/macos.yml/badge.svg" alt=""></a> |
| 8 | + <a href="https://github.com/wniemiec-util-java/reserved-character-replacer/actions/workflows/ubuntu.yml"><img src="https://github.com/wniemiec-util-java/reserved-character-replacer/actions/workflows/ubuntu.yml/badge.svg" alt=""></a> |
| 9 | + <a href="https://codecov.io/gh/wniemiec-util-java/reserved-character-replacer"><img src="https://codecov.io/gh/wniemiec-util-java/reserved-character-replacer/branch/master/graph/badge.svg?token=R2SFS4SP86" alt="Coverage status"></a> |
| 10 | + <a href="http://java.oracle.com"><img src="https://img.shields.io/badge/java-11+-D0008F.svg" alt="Java compatibility"></a> |
| 11 | + <a href="https://mvnrepository.com/artifact/io.github.wniemiec-util-java/reserved-character-replacer"><img src="https://img.shields.io/maven-central/v/io.github.wniemiec-util-java/reserved-character-replacer" alt="Maven Central release"></a> |
| 12 | + <a href="https://github.com/wniemiec-util-java/reserved-character-replacer/blob/master/LICENSE"><img src="https://img.shields.io/github/license/wniemiec-util-java/reserved-character-replacer" alt="License"></a> |
| 13 | +</p> |
| 14 | +<hr /> |
| 15 | + |
| 16 | +## ❇ Introduction |
| 17 | +If you need to know if a piece of code has already been executed by another process, then this is the perfect library for you. A reserved-character-replacer is a class and method marker, and it is used when you want a piece of code, even if executed by several independent processes, to be executed only once. |
| 18 | + |
| 19 | +## ❓ How to use |
| 20 | +1. Add one of the options below to the pom.xml file: |
| 21 | + |
| 22 | +#### Using Maven Central (recomended): |
| 23 | +``` |
| 24 | +<dependency> |
| 25 | + <groupId>io.github.wniemiec-util-java</groupId> |
| 26 | + <artifactId>reserved-character-replacer</artifactId> |
| 27 | + <version>LATEST</version> |
| 28 | +</dependency> |
| 29 | +``` |
| 30 | + |
| 31 | +#### Using GitHub Packages: |
| 32 | +``` |
| 33 | +<dependency> |
| 34 | + <groupId>wniemiec.util.java</groupId> |
| 35 | + <artifactId>reserved-character-replacer</artifactId> |
| 36 | + <version>LATEST</version> |
| 37 | +</dependency> |
| 38 | +``` |
| 39 | + |
| 40 | +2. Run |
| 41 | +``` |
| 42 | +$ mvn install |
| 43 | +``` |
| 44 | + |
| 45 | +3. Use it |
| 46 | +``` |
| 47 | +[...] |
| 48 | +
|
| 49 | +import wniemiec.util.java.ReservedCharactersReplacerFactory; |
| 50 | +import wniemiec.util.java.Replacer; |
| 51 | +
|
| 52 | +[...] |
| 53 | +
|
| 54 | +Replacer replacer = ReservedCharactersReplacerFactory.getStandardReplacer(); |
| 55 | +String reservedCharacters = "<>/\\:\"|?*"; |
| 56 | +
|
| 57 | +System.out.println( replacer.replace(reservedCharacters) ); |
| 58 | +
|
| 59 | +[...] |
| 60 | +``` |
| 61 | + |
| 62 | +## 📖 Documentation |
| 63 | +| Property |Parameter type|Return type|Description|Default parameter value| |
| 64 | +|----------------|-------------------------------|-----|------------------------|--------| |
| 65 | +|replace |`str: String`|`String`|Replaces all reserved characters with others.| - | |
| 66 | + |
| 67 | +## 🚩 Changelog |
| 68 | +Details about each version are documented in the [releases section](https://github.com/williamniemiec/wniemiec-util-java/reserved-character-replacer/releases). |
| 69 | + |
| 70 | +## 🤝 Contribute! |
| 71 | +See the documentation on how you can contribute to the project [here](https://github.com/wniemiec-util-java/reserved-character-replacer/blob/master/CONTRIBUTING.md). |
| 72 | + |
| 73 | +## 📁 Files |
| 74 | + |
| 75 | +### / |
| 76 | +| Name |Type|Description| |
| 77 | +|----------------|-------------------------------|-----------------------------| |
| 78 | +|dist |`Directory`|Released versions| |
| 79 | +|docs |`Directory`|Documentation files| |
| 80 | +|src |`Directory`| Source files| |
0 commit comments