net.java.ao.schema.UnderScoreUtils Maven / Gradle / Ivy
package net.java.ao.schema;
import java.util.regex.Pattern;
final class UnderScoreUtils
{
private static final Pattern WORD_PATTERN = Pattern.compile("([a-z\\d])([A-Z])");
private UnderScoreUtils()
{
}
static String camelCaseToUnderScore(String s)
{
return WORD_PATTERN.matcher(s).replaceAll("$1_$2");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy