![JAR search and dependency download from the Maven repository](/logo.png)
de.vandermeer.translation.characters.Text2AsciiDoc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of char-translation Show documentation
Show all versions of char-translation Show documentation
Set of translators for characters, HTML Elements, and their combinations.
The newest version!
/* Copyright 2015 Sven van der Meer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.vandermeer.translation.characters;
import org.apache.commons.lang3.StringUtils;
import de.vandermeer.skb.interfaces.translators.CharacterTranslator;
/**
* Translator for plain text characters to AsciiDoc.
*
* @author Sven van der Meer <[email protected]> - auto-generated by SKB Datatool from SKB CharacterMap data
* @version v0.0.2 build 170404 (04-Apr-17) for Java 1.8
* @since v0.0.1
*/
public class Text2AsciiDoc implements CharacterTranslator {
/** Array of source strings. */
protected String[] sourceArray = new String[]{
};
/** Array of target strings. */
protected String[] targetArray = new String[]{
};
@Override
public String translateCharacters(String input){
return StringUtils.replaceEach(input, this.sourceArray, this.targetArray);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy