import java.util.*;
import java.lang.*;
import java.io.*;

class SqlQuantumLeap
{
	public static void main (String[] args) throws java.lang.Exception
	{
		System.out.println("MAIN ARTICLE:\nhttps://s...content-available-to-author-only...p.com/2019/06/26/unicode-escape-sequences-across-various-languages-and-platforms-including-supplementary-characters/");
		System.out.println("==============================================\n");
		
		// The octal escape sequence uses the ISO-8859-1 character set
		System.out.println("Octal notation is \\888 where '888' = 1 - 3 octal digits (values 0 - 7; range 0 - 377):");
		System.out.println("\\11 and \\011: tab\11tabby\011tab");
		System.out.println("\\7, \\07, and \\007: bell\7bell\07bell\007bell");
		System.out.println("\\176 = \176 ; \\177 = \177 ; \\200 = \200 ; \\237 = \237");
		System.out.println("\\242 = \242 ; \\377 = \377 ; \\504 = \504");
		System.out.println("-------------------------------");

		System.out.println("BMP Code Point / UTF-16 via \\u: \u0F02");
		System.out.println("UTF-16 Surrogate Pair via \\u\\u: \uD83D\uDC7E"); // U+1F47E
		System.out.println("-------------------------------");
		
		//  ---------------------------------------------------------------
		
		System.out.println("String constructor: " + new String(
			new int[]{ 0x0F02, 32, 65, 32, 0xD83D, 0xDC7E }, 0, 6 )); // U+1F47E

		char[] tc1 = Character.toChars(0x0F02);
		System.out.println("Character.toChars(int) static method (codePoint = U+0F02):");
		System.out.println("	Size of array returned for BMP Character: " + tc1.length);
		System.out.println("	String created from char[]: " + new String(tc1));

		char[] tc2 = Character.toChars(0x1F47E);
		System.out.println("Character.toChars(int) static method (codePoint = U+1F47E):");
		System.out.println("	Size of array returned for Supplementary Character: " + tc2.length);
		System.out.println("	String created from char[]: " + new String(tc2));

		char[] tc3 = new char[] { 65, 66, 67, 68, 69, 70 };
		System.out.println("Character.toChars(int, char[], int) static method (codePoint = U+1F47E):");
		System.out.println("	Initial String created from char[]: " + new String(tc3));
		Character.toChars(0x1F47E, tc3, 2); // insert into middle, between spaces
		System.out.println("	String created from char[] after Character.toChars(): " + new String(tc3));
	}
}
