Java Code Examples for sun.text.normalizer.NormalizerBase#normalize()
The following examples show how to use
sun.text.normalizer.NormalizerBase#normalize() .
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 File: Normalizer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 2
Source File: Normalizer.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 3
Source File: Normalizer.java From Java8CN with Apache License 2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 4
Source File: Normalizer.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @param option The normalization option; * {@link sun.text.Normalizer#UNICODE_3_2} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, java.text.Normalizer.Form form, int option) { return NormalizerBase.normalize(src.toString(), form, option); }
Example 5
Source File: Normalizer.java From jdk8u-jdk with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 6
Source File: Normalizer.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 7
Source File: Normalizer.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 8
Source File: Normalizer.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 9
Source File: Normalizer.java From Bytecoder with Apache License 2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If {@code src} or {@code form} * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 10
Source File: Normalizer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @param option The normalization option; * {@link sun.text.Normalizer#UNICODE_3_2} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, java.text.Normalizer.Form form, int option) { return NormalizerBase.normalize(src.toString(), form, option); }
Example 11
Source File: Normalizer.java From jdk-1.7-annotated with Apache License 2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 12
Source File: Normalizer.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @param option The normalization option; * {@link sun.text.Normalizer#UNICODE_3_2} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, java.text.Normalizer.Form form, int option) { return NormalizerBase.normalize(src.toString(), form, option); }
Example 13
Source File: Normalizer.java From jdk8u_jdk with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @param option The normalization option; * {@link sun.text.Normalizer#UNICODE_3_2} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, java.text.Normalizer.Form form, int option) { return NormalizerBase.normalize(src.toString(), form, option); }
Example 14
Source File: Normalizer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @param option The normalization option; * {@link sun.text.Normalizer#UNICODE_3_2} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, java.text.Normalizer.Form form, int option) { return NormalizerBase.normalize(src.toString(), form, option); }
Example 15
Source File: Normalizer.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @param option The normalization option; * {@link sun.text.Normalizer#UNICODE_3_2} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, java.text.Normalizer.Form form, int option) { return NormalizerBase.normalize(src.toString(), form, option); }
Example 16
Source File: Normalizer.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 17
Source File: Normalizer.java From jdk8u_jdk with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 18
Source File: Normalizer.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }
Example 19
Source File: Normalizer.java From dragonwell8_jdk with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @param option The normalization option; * {@link sun.text.Normalizer#UNICODE_3_2} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, java.text.Normalizer.Form form, int option) { return NormalizerBase.normalize(src.toString(), form, option); }
Example 20
Source File: Normalizer.java From dragonwell8_jdk with GNU General Public License v2.0 | 2 votes |
/** * Normalize a sequence of char values. * The sequence will be normalized according to the specified normalization * from. * @param src The sequence of char values to normalize. * @param form The normalization form; one of * {@link java.text.Normalizer.Form#NFC}, * {@link java.text.Normalizer.Form#NFD}, * {@link java.text.Normalizer.Form#NFKC}, * {@link java.text.Normalizer.Form#NFKD} * @return The normalized String * @throws NullPointerException If <code>src</code> or <code>form</code> * is null. */ public static String normalize(CharSequence src, Form form) { return NormalizerBase.normalize(src.toString(), form); }