Java Code Examples for com.ibm.icu.text.StringPrep

The following examples show how to use com.ibm.icu.text.StringPrep. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jxmpp   Source File: Icu4jXmppStringprep.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public String localprep(String string) throws XmppStringprepException {
	try {
		return NODEPREP.prepare(string, StringPrep.DEFAULT);
	} catch (StringPrepParseException e) {
		throw new XmppStringprepException(string, e);
	}
}
 
Example 2
Source Project: jxmpp   Source File: Icu4jXmppStringprep.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public String domainprep(String string) throws XmppStringprepException {
	try {
		return DOMAINPREP.prepare(string, StringPrep.DEFAULT);
	} catch (StringPrepParseException e) {
		throw new XmppStringprepException(string, e);
	}
}
 
Example 3
Source Project: jxmpp   Source File: Icu4jXmppStringprep.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public String resourceprep(String string) throws XmppStringprepException {
	try {
		return RESOURCEPREP.prepare(string, StringPrep.DEFAULT);
	} catch (StringPrepParseException e) {
		throw new XmppStringprepException(string, e);
	}
}