![JAR search and dependency download from the Maven repository](/logo.png)
com.thaiopensource.relaxng.impl.StringNormalizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jing Show documentation
Show all versions of jing Show documentation
A branch of Jing used by the Nu Html Checker. (Jing is a tool for validating documents against RelaxNG schemas.)
The newest version!
package com.thaiopensource.relaxng.impl;
import java.util.StringTokenizer;
class StringNormalizer {
static String normalize(String s) {
StringBuffer buf = new StringBuffer();
for (StringTokenizer e = new StringTokenizer(s); e.hasMoreElements();) {
if (buf.length() > 0)
buf.append(' ');
buf.append((String)e.nextElement());
}
return buf.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy