<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_18) on Fri Dec 09 20:48:28 GMT 2011 --> <TITLE> UTF16CharacterSet </TITLE> <META NAME="date" CONTENT="2011-12-09"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="UTF16CharacterSet"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../net/sf/saxon/serialize/charcode/JavaCharacterSet.html" title="class in net.sf.saxon.serialize.charcode"><B>PREV CLASS</B></A> <A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF8CharacterSet.html" title="class in net.sf.saxon.serialize.charcode"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?net/sf/saxon/serialize/charcode/UTF16CharacterSet.html" target="_top"><B>FRAMES</B></A> <A HREF="UTF16CharacterSet.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> net.sf.saxon.serialize.charcode</FONT> <BR> Class UTF16CharacterSet</H2> <PRE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>net.sf.saxon.serialize.charcode.UTF16CharacterSet</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../net/sf/saxon/serialize/charcode/CharacterSet.html" title="interface in net.sf.saxon.serialize.charcode">CharacterSet</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>UTF16CharacterSet</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../../net/sf/saxon/serialize/charcode/CharacterSet.html" title="interface in net.sf.saxon.serialize.charcode">CharacterSet</A></DL> </PRE> <P> A class to hold some static constants and methods associated with processing UTF16 and surrogate pairs <P> <P> <HR> <P> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#NONBMP_MAX">NONBMP_MAX</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#NONBMP_MIN">NONBMP_MIN</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static char</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#SURROGATE1_MAX">SURROGATE1_MAX</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static char</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#SURROGATE1_MIN">SURROGATE1_MIN</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static char</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#SURROGATE2_MAX">SURROGATE2_MAX</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static char</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#SURROGATE2_MIN">SURROGATE2_MIN</A></B></CODE> <BR> </TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#combinePair(char, char)">combinePair</A></B>(char high, char low)</CODE> <BR> Return the non-BMP character corresponding to a given surrogate pair surrogates.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#containsSurrogates(java.lang.CharSequence)">containsSurrogates</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</A> s)</CODE> <BR> Test whether a CharSequence contains any surrogates (i.e.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#getCanonicalName()">getCanonicalName</A></B>()</CODE> <BR> Get the preferred Java name of the character set.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html" title="class in net.sf.saxon.serialize.charcode">UTF16CharacterSet</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#getInstance()">getInstance</A></B>()</CODE> <BR> Get the singular instance of this class</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static char</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#highSurrogate(int)">highSurrogate</A></B>(int ch)</CODE> <BR> Return the high surrogate of a non-BMP character</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#inCharset(int)">inCharset</A></B>(int c)</CODE> <BR> Determine if a character is present in the character set</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#isHighSurrogate(int)">isHighSurrogate</A></B>(int ch)</CODE> <BR> Test whether the given character is a high surrogate</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#isLowSurrogate(int)">isLowSurrogate</A></B>(int ch)</CODE> <BR> Test whether the given character is a low surrogate</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#isSurrogate(int)">isSurrogate</A></B>(int c)</CODE> <BR> Test whether a given character is a surrogate (high or low)</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static char</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#lowSurrogate(int)">lowSurrogate</A></B>(int ch)</CODE> <BR> Return the low surrogate of a non-BMP character</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html#main(java.lang.String[])">main</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] args)</CODE> <BR> </TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Field Detail</B></FONT></TH> </TR> </TABLE> <A NAME="NONBMP_MIN"><!-- --></A><H3> NONBMP_MIN</H3> <PRE> public static final int <B>NONBMP_MIN</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.serialize.charcode.UTF16CharacterSet.NONBMP_MIN">Constant Field Values</A></DL> </DL> <HR> <A NAME="NONBMP_MAX"><!-- --></A><H3> NONBMP_MAX</H3> <PRE> public static final int <B>NONBMP_MAX</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.serialize.charcode.UTF16CharacterSet.NONBMP_MAX">Constant Field Values</A></DL> </DL> <HR> <A NAME="SURROGATE1_MIN"><!-- --></A><H3> SURROGATE1_MIN</H3> <PRE> public static final char <B>SURROGATE1_MIN</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.serialize.charcode.UTF16CharacterSet.SURROGATE1_MIN">Constant Field Values</A></DL> </DL> <HR> <A NAME="SURROGATE1_MAX"><!-- --></A><H3> SURROGATE1_MAX</H3> <PRE> public static final char <B>SURROGATE1_MAX</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.serialize.charcode.UTF16CharacterSet.SURROGATE1_MAX">Constant Field Values</A></DL> </DL> <HR> <A NAME="SURROGATE2_MIN"><!-- --></A><H3> SURROGATE2_MIN</H3> <PRE> public static final char <B>SURROGATE2_MIN</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.serialize.charcode.UTF16CharacterSet.SURROGATE2_MIN">Constant Field Values</A></DL> </DL> <HR> <A NAME="SURROGATE2_MAX"><!-- --></A><H3> SURROGATE2_MAX</H3> <PRE> public static final char <B>SURROGATE2_MAX</B></PRE> <DL> <DL> <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#net.sf.saxon.serialize.charcode.UTF16CharacterSet.SURROGATE2_MAX">Constant Field Values</A></DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="getInstance()"><!-- --></A><H3> getInstance</H3> <PRE> public static <A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF16CharacterSet.html" title="class in net.sf.saxon.serialize.charcode">UTF16CharacterSet</A> <B>getInstance</B>()</PRE> <DL> <DD>Get the singular instance of this class <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the singular instance of this classthe singular instance of this class</DL> </DD> </DL> <HR> <A NAME="inCharset(int)"><!-- --></A><H3> inCharset</H3> <PRE> public boolean <B>inCharset</B>(int c)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../../net/sf/saxon/serialize/charcode/CharacterSet.html#inCharset(int)">CharacterSet</A></CODE></B></DD> <DD>Determine if a character is present in the character set <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/serialize/charcode/CharacterSet.html#inCharset(int)">inCharset</A></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/serialize/charcode/CharacterSet.html" title="interface in net.sf.saxon.serialize.charcode">CharacterSet</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getCanonicalName()"><!-- --></A><H3> getCanonicalName</H3> <PRE> public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getCanonicalName</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../../../net/sf/saxon/serialize/charcode/CharacterSet.html#getCanonicalName()">CharacterSet</A></CODE></B></DD> <DD>Get the preferred Java name of the character set. Note that Java in many cases also supports a "historic name". <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../net/sf/saxon/serialize/charcode/CharacterSet.html#getCanonicalName()">getCanonicalName</A></CODE> in interface <CODE><A HREF="../../../../../net/sf/saxon/serialize/charcode/CharacterSet.html" title="interface in net.sf.saxon.serialize.charcode">CharacterSet</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="combinePair(char, char)"><!-- --></A><H3> combinePair</H3> <PRE> public static int <B>combinePair</B>(char high, char low)</PRE> <DL> <DD>Return the non-BMP character corresponding to a given surrogate pair surrogates. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>high</CODE> - The high surrogate.<DD><CODE>low</CODE> - The low surrogate. <DT><B>Returns:</B><DD>the Unicode codepoint represented by the surrogate pair</DL> </DD> </DL> <HR> <A NAME="highSurrogate(int)"><!-- --></A><H3> highSurrogate</H3> <PRE> public static char <B>highSurrogate</B>(int ch)</PRE> <DL> <DD>Return the high surrogate of a non-BMP character <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>ch</CODE> - The Unicode codepoint of the non-BMP character to be divided. <DT><B>Returns:</B><DD>the first character in the surrogate pair</DL> </DD> </DL> <HR> <A NAME="lowSurrogate(int)"><!-- --></A><H3> lowSurrogate</H3> <PRE> public static char <B>lowSurrogate</B>(int ch)</PRE> <DL> <DD>Return the low surrogate of a non-BMP character <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>ch</CODE> - The Unicode codepoint of the non-BMP character to be divided. <DT><B>Returns:</B><DD>the second character in the surrogate pair</DL> </DD> </DL> <HR> <A NAME="isSurrogate(int)"><!-- --></A><H3> isSurrogate</H3> <PRE> public static boolean <B>isSurrogate</B>(int c)</PRE> <DL> <DD>Test whether a given character is a surrogate (high or low) <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>c</CODE> - the character to test <DT><B>Returns:</B><DD>true if the character is the high or low half of a surrogate pair</DL> </DD> </DL> <HR> <A NAME="isHighSurrogate(int)"><!-- --></A><H3> isHighSurrogate</H3> <PRE> public static boolean <B>isHighSurrogate</B>(int ch)</PRE> <DL> <DD>Test whether the given character is a high surrogate <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>ch</CODE> - The character to test. <DT><B>Returns:</B><DD>true if the character is the first character in a surrogate pair</DL> </DD> </DL> <HR> <A NAME="isLowSurrogate(int)"><!-- --></A><H3> isLowSurrogate</H3> <PRE> public static boolean <B>isLowSurrogate</B>(int ch)</PRE> <DL> <DD>Test whether the given character is a low surrogate <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>ch</CODE> - The character to test. <DT><B>Returns:</B><DD>true if the character is the second character in a surrogate pair</DL> </DD> </DL> <HR> <A NAME="containsSurrogates(java.lang.CharSequence)"><!-- --></A><H3> containsSurrogates</H3> <PRE> public static boolean <B>containsSurrogates</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/CharSequence.html?is-external=true" title="class or interface in java.lang">CharSequence</A> s)</PRE> <DL> <DD>Test whether a CharSequence contains any surrogates (i.e. any non-BMP characters <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>s</CODE> - the string to be tested</DL> </DD> </DL> <HR> <A NAME="main(java.lang.String[])"><!-- --></A><H3> main</H3> <PRE> public static void <B>main</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] args)</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../net/sf/saxon/serialize/charcode/JavaCharacterSet.html" title="class in net.sf.saxon.serialize.charcode"><B>PREV CLASS</B></A> <A HREF="../../../../../net/sf/saxon/serialize/charcode/UTF8CharacterSet.html" title="class in net.sf.saxon.serialize.charcode"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?net/sf/saxon/serialize/charcode/UTF16CharacterSet.html" target="_top"><B>FRAMES</B></A> <A HREF="UTF16CharacterSet.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright (c) 2004-2011 Saxonica Limited. All rights reserved. </BODY> </HTML>