Example usage for java.lang Character MIN_LOW_SURROGATE

List of usage examples for java.lang Character MIN_LOW_SURROGATE

Introduction

In this page you can find the example usage for java.lang Character MIN_LOW_SURROGATE.

Prototype

char MIN_LOW_SURROGATE

To view the source code for java.lang Character MIN_LOW_SURROGATE.

Click Source Link

Document

The minimum value of a <a href="http://www.unicode.org/glossary/#low_surrogate_code_unit"> Unicode low-surrogate code unit</a> in the UTF-16 encoding, constant '\u005CuDC00' .

Usage

From source file:Main.java

public static void main(String[] args) {
    String s = String.format("\\u%04x", (int) Character.MIN_LOW_SURROGATE);
    System.out.println(s);/*from  ww w  . j a va 2  s.c om*/
}

From source file:com.buaa.cfs.io.UTF8.java

private static char lowSurrogate(int codePoint) {
    return (char) ((codePoint & 0x3ff) + Character.MIN_LOW_SURROGATE);
}