com.itextpdf.styledxmlparser.jsoup.internal.Normalizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of styled-xml-parser Show documentation
Show all versions of styled-xml-parser Show documentation
Styled XML parser is used by iText7 modules to parse HTML and XML
The newest version!
/*
This file is part of jsoup, see NOTICE.txt in the root of the repository.
It may contain modifications beyond the original version.
*/
package com.itextpdf.styledxmlparser.jsoup.internal;
import java.util.Locale;
/**
* Util methods for normalizing strings. Jsoup internal use only, please don't depend on this API.
*/
public final class Normalizer {
public static String lowerCase(final String input) {
return input != null ? input.toLowerCase(Locale.ENGLISH) : "";
}
public static String normalize(final String input) {
return lowerCase(input).trim();
}
public static String normalize(final String input, boolean isStringLiteral) {
return isStringLiteral ? lowerCase(input) : normalize(input);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy