All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sklsft.commons.text.StringUtils Maven / Gradle / Ivy

There is a newer version: 5.0.0-M1
Show newest version
package org.sklsft.commons.text;

import java.text.Normalizer;
import java.text.Normalizer.Form;

public class StringUtils {
	
	public static boolean isEmpty(Object str) {
		return (str == null || "".equals(str));
	}
	
	
	public static String normalize(String arg) {
		if (arg == null) {
			return null;
		}
		return Normalizer.normalize(arg.toLowerCase(), Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", "");
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy