blob: b82e6b35daabd5e1966840b16037b5ec5ef98157 [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (19) -->
<title>Characters (Apache SIS 1.3 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: package: org.apache.sis.util, class: Characters">
<meta name="generator" content="javadoc/ClassWriterImpl">
<meta name="keywords" content="org.apache.sis.util.Characters class">
<meta name="keywords" content="HYPHEN">
<meta name="keywords" content="SOFT_HYPHEN">
<meta name="keywords" content="NO_BREAK_SPACE">
<meta name="keywords" content="LINE_SEPARATOR">
<meta name="keywords" content="PARAGRAPH_SEPARATOR">
<meta name="keywords" content="isValidWKT()">
<meta name="keywords" content="isLineOrParagraphSeparator()">
<meta name="keywords" content="isHexadecimal()">
<meta name="keywords" content="isSuperScript()">
<meta name="keywords" content="isSubScript()">
<meta name="keywords" content="toSuperScript()">
<meta name="keywords" content="toSubScript()">
<meta name="keywords" content="toNormalScript()">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../sis.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var pathtoroot = "../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon">&nbsp;</span><span class="nav-bar-toggle-icon">&nbsp;</span><span class="nav-bar-toggle-icon">&nbsp;</span></button>
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="class-use/Characters.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html#class">Help</a></li>
</ul>
<ul class="sub-nav-list-small">
<li>
<p>Summary:</p>
<ul>
<li><a href="#nested-class-summary">Nested</a></li>
<li><a href="#field-summary">Field</a></li>
<li>Constr</li>
<li><a href="#method-summary">Method</a></li>
</ul>
</li>
<li>
<p>Detail:</p>
<ul>
<li><a href="#field-detail">Field</a></li>
<li>Constr</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</li>
</ul>
</div>
<div class="sub-nav">
<div id="navbar-sub-list">
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li><a href="#nested-class-summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field-summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li><a href="#field-detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><a href="../../../../search.html">SEARCH</a>
<input type="text" id="search-input" disabled placeholder="Search">
<input type="reset" id="reset-button" disabled value="reset">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.apache.sis.util</a></div>
<h1 title="Class Characters" class="title">Class Characters</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>
<div class="inheritance"><a href="Static.html" title="class in org.apache.sis.util">Static</a>
<div class="inheritance">Characters</div>
</div>
</div>
<section class="class-description" id="class-description">
<hr>
<div class="type-signature"><span class="modifiers">public final class </span><span class="element-name type-name-label">Characters</span>
<span class="extends-implements">extends <a href="Static.html" title="class in org.apache.sis.util">Static</a></span></div>
<div class="block">Static methods working on <code>char</code> values, and some character constants.
Apache SIS uses Unicode symbols directly in the source code for easier reading,
except for some symbols that are difficult to differentiate from other similar
symbols. For those symbols, constants are declared in this class.</div>
<dl class="notes">
<dt>Since:</dt>
<dd>0.3</dd>
<p><font size="-1">Defined in the <code>sis-utility</code> module</font></p>
</dl>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<li>
<section class="nested-class-summary" id="nested-class-summary">
<h2>Nested Class Summary</h2>
<div class="caption"><span>Nested Classes</span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Class</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>static class&nbsp;</code></div>
<div class="col-second even-row-color"><code><a href="Characters.Filter.html" class="type-name-link" title="class in org.apache.sis.util">Characters​.Filter</a></code></div>
<div class="col-last even-row-color">
<div class="block">Subsets of Unicode characters identified by their general category.</div>
</div>
</div>
</section>
</li>
<!-- =========== FIELD SUMMARY =========== -->
<li>
<section class="field-summary" id="field-summary">
<h2>Field Summary</h2>
<div class="caption"><span>Fields</span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Field</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>static final char</code></div>
<div class="col-second even-row-color"><code><a href="#HYPHEN" class="member-name-link">HYPHEN</a></code></div>
<div class="col-last even-row-color">
<div class="block">Hyphen character ('‐', Unicode <code>2010</code>).</div>
</div>
<div class="col-first odd-row-color"><code>static final char</code></div>
<div class="col-second odd-row-color"><code><a href="#LINE_SEPARATOR" class="member-name-link">LINE_SEPARATOR</a></code></div>
<div class="col-last odd-row-color">
<div class="block">The Unicode line separator (Unicode <code>2028</code>, HTML <code>&lt;br&gt;</code>).</div>
</div>
<div class="col-first even-row-color"><code>static final char</code></div>
<div class="col-second even-row-color"><code><a href="#NO_BREAK_SPACE" class="member-name-link">NO_BREAK_SPACE</a></code></div>
<div class="col-last even-row-color">
<div class="block">The <cite>no-break space</cite> (Unicode <code>00A0</code>, HTML <code>&amp;nbsp;</code>).</div>
</div>
<div class="col-first odd-row-color"><code>static final char</code></div>
<div class="col-second odd-row-color"><code><a href="#PARAGRAPH_SEPARATOR" class="member-name-link">PARAGRAPH_SEPARATOR</a></code></div>
<div class="col-last odd-row-color">
<div class="block">The Unicode paragraph separator (Unicode <code>2029</code>, HTML <code>&lt;p&gt;…&lt;/p&gt;</code>).</div>
</div>
<div class="col-first even-row-color"><code>static final char</code></div>
<div class="col-second even-row-color"><code><a href="#SOFT_HYPHEN" class="member-name-link">SOFT_HYPHEN</a></code></div>
<div class="col-last even-row-color">
<div class="block">Hyphen character to be visible only if there is a line break to insert after it
(Unicode <code>00AD</code>, HTML <code>&amp;shy;</code>).</div>
</div>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isHexadecimal(int)" class="member-name-link">is­Hexadecimal</a><wbr>(int&nbsp;c)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Returns <code>true</code> if the given character is an hexadecimal digit.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isLineOrParagraphSeparator(int)" class="member-name-link">is­Line­Or­Paragraph­Separator</a><wbr>(int&nbsp;c)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Returns <code>true</code> if the given code point is a <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Character.html#LINE_SEPARATOR" title="class or interface in java.lang" class="external-link">line separator</a>, a <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Character.html#PARAGRAPH_SEPARATOR" title="class or interface in java.lang" class="external-link">paragraph separator</a> or one
of the <code>'\r'</code> or <code>'\n'</code> control characters.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isSubScript(int)" class="member-name-link">is­Sub­Script</a><wbr>(int&nbsp;c)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Determines whether the given character is a subscript.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isSuperScript(int)" class="member-name-link">is­Super­Script</a><wbr>(int&nbsp;c)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Determines whether the given character is a superscript.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isValidWKT(int)" class="member-name-link">is­Valid­WKT</a><wbr>(int&nbsp;c)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Returns <code>true</code> if the given code point is a valid character for <cite>Well Known Text</cite> (WKT).</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static char</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#toNormalScript(char)" class="member-name-link">to­Normal­Script</a><wbr>(char&nbsp;c)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Converts the given character argument to normal script.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#toNormalScript(int)" class="member-name-link">to­Normal­Script</a><wbr>(int&nbsp;c)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Converts the given code point to normal script.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static char</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#toSubScript(char)" class="member-name-link">to­Sub­Script</a><wbr>(char&nbsp;c)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Converts the given character argument to subscript.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static char</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#toSuperScript(char)" class="member-name-link">to­Super­Script</a><wbr>(char&nbsp;c)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
<div class="block">Converts the given character argument to superscript.</div>
</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-Object">Methods inherited from class&nbsp;<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3>
<code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">get­Class</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hash­Code</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notify­All</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">to­String</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ============ FIELD DETAIL =========== -->
<li>
<section class="field-details" id="field-detail">
<h2>Field Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="HYPHEN">
<h3>HYPHEN</h3>
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type">char</span>&nbsp;<span class="element-name">HYPHEN</span></div>
<div class="block">Hyphen character ('‐', Unicode <code>2010</code>).
This code tells to <a href="../io/LineAppender.html" title="class in org.apache.sis.io"><code>Line­Appender</code></a>
that a line break is allowed to be inserted after this character.
<p>For non-breaking hyphen, use the Unicode <code>2011</code> character.</p></div>
<dl class="notes">
<dt>See Also:</dt>
<dd>
<ul class="see-list">
<li><a href="../../../../constant-values.html#org.apache.sis.util.Characters.HYPHEN">Constant Field Values</a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="SOFT_HYPHEN">
<h3>SOFT_HYPHEN</h3>
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type">char</span>&nbsp;<span class="element-name">SOFT_HYPHEN</span></div>
<div class="block">Hyphen character to be visible only if there is a line break to insert after it
(Unicode <code>00AD</code>, HTML <code>&amp;shy;</code>).
Otherwise this character is invisible. When visible, the graphical symbol is similar
to the <a href="#HYPHEN"><code>HYPHEN</code></a> character.</div>
<dl class="notes">
<dt>See Also:</dt>
<dd>
<ul class="see-list">
<li><a href="../../../../constant-values.html#org.apache.sis.util.Characters.SOFT_HYPHEN">Constant Field Values</a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="NO_BREAK_SPACE">
<h3>NO_BREAK_SPACE</h3>
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type">char</span>&nbsp;<span class="element-name">NO_BREAK_SPACE</span></div>
<div class="block">The <cite>no-break space</cite> (Unicode <code>00A0</code>, HTML <code>&amp;nbsp;</code>).
Apache SIS uses Unicode symbols directly in the source code for easier reading,
except for no-break spaces since they cannot be visually distinguished from the
ordinary space (Unicode <code>0020</code>).</div>
<dl class="notes">
<dt>See Also:</dt>
<dd>
<ul class="see-list">
<li><a href="../../../../constant-values.html#org.apache.sis.util.Characters.NO_BREAK_SPACE">Constant Field Values</a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="LINE_SEPARATOR">
<h3>LINE_SEPARATOR</h3>
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type">char</span>&nbsp;<span class="element-name">LINE_SEPARATOR</span></div>
<div class="block">The Unicode line separator (Unicode <code>2028</code>, HTML <code>&lt;br&gt;</code>).</div>
<dl class="notes">
<dt>See Also:</dt>
<dd>
<ul class="see-list">
<li><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Character.html#LINE_SEPARATOR" title="class or interface in java.lang" class="external-link"><code>Character​.LINE_SEPARATOR</code></a></li>
<li><a href="../../../../constant-values.html#org.apache.sis.util.Characters.LINE_SEPARATOR">Constant Field Values</a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="PARAGRAPH_SEPARATOR">
<h3>PARAGRAPH_SEPARATOR</h3>
<div class="member-signature"><span class="modifiers">public static final</span>&nbsp;<span class="return-type">char</span>&nbsp;<span class="element-name">PARAGRAPH_SEPARATOR</span></div>
<div class="block">The Unicode paragraph separator (Unicode <code>2029</code>, HTML <code>&lt;p&gt;…&lt;/p&gt;</code>).</div>
<dl class="notes">
<dt>See Also:</dt>
<dd>
<ul class="see-list">
<li><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Character.html#PARAGRAPH_SEPARATOR" title="class or interface in java.lang" class="external-link"><code>Character​.PARAGRAPH_SEPARATOR</code></a></li>
<li><a href="../../../../constant-values.html#org.apache.sis.util.Characters.PARAGRAPH_SEPARATOR">Constant Field Values</a></li>
</ul>
</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="isValidWKT(int)">
<h3>isValidWKT</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">isValidWKT</span><wbr><span class="parameters">(int&nbsp;c)</span></div>
<div class="block">Returns <code>true</code> if the given code point is a valid character for <cite>Well Known Text</cite> (WKT).
This method returns <code>true</code> for the following characters:
<blockquote><pre>A-Z a-z 0-9 _ [ ] ( ) { } &lt; = &gt; . , : ; + - (space) % &amp; ' " * ^ / \ ? | °</pre></blockquote>
They are ASCII codes 32 to 125 inclusive except ! (33), # (35), $ (36), @ (64) and ` (96),
plus the addition of ° (176) despite being formally outside the ASCII character set.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>c</code> - the code point to test.</dd>
<dt>Returns:</dt>
<dd><code>true</code> if the given code point is a valid WKT character.</dd>
<dt>Since:</dt>
<dd>0.6</dd>
<dt>See Also:</dt>
<dd>
<ul class="see-list">
<li><a href="../io/wkt/Transliterator.html" title="class in org.apache.sis.io.wkt"><code>Transliterator</code></a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="isLineOrParagraphSeparator(int)">
<h3>isLineOrParagraphSeparator</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">isLineOrParagraphSeparator</span><wbr><span class="parameters">(int&nbsp;c)</span></div>
<div class="block">Returns <code>true</code> if the given code point is a <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Character.html#LINE_SEPARATOR" title="class or interface in java.lang" class="external-link">line separator</a>, a <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Character.html#PARAGRAPH_SEPARATOR" title="class or interface in java.lang" class="external-link">paragraph separator</a> or one
of the <code>'\r'</code> or <code>'\n'</code> control characters.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>c</code> - the code point to test.</dd>
<dt>Returns:</dt>
<dd><code>true</code> if the given code point is a line or paragraph separator.</dd>
<dt>See Also:</dt>
<dd>
<ul class="see-list">
<li><a href="#LINE_SEPARATOR"><code>LINE_SEPARATOR</code></a></li>
<li><a href="#PARAGRAPH_SEPARATOR"><code>PARAGRAPH_SEPARATOR</code></a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="isHexadecimal(int)">
<h3>isHexadecimal</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">isHexadecimal</span><wbr><span class="parameters">(int&nbsp;c)</span></div>
<div class="block">Returns <code>true</code> if the given character is an hexadecimal digit.
This method returns <code>true</code> if <code>c</code> is between <code>'0'</code> and <code>'9'</code> inclusive,
or between <code>'A'</code> and <code>'F'</code> inclusive, or between <code>'a'</code> and <code>'f'</code> inclusive.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>c</code> - the character to test.</dd>
<dt>Returns:</dt>
<dd><code>true</code> if the given character is an hexadecimal digit.</dd>
<dt>Since:</dt>
<dd>0.5</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="isSuperScript(int)">
<h3>isSuperScript</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">isSuperScript</span><wbr><span class="parameters">(int&nbsp;c)</span></div>
<div class="block">Determines whether the given character is a superscript. Most (but not all) superscripts
have a Unicode value in the [2070 … 207F] range. Superscripts are the following symbols:
<blockquote><pre>⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ⁿ</pre></blockquote></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>c</code> - the character to test.</dd>
<dt>Returns:</dt>
<dd><code>true</code> if the given character is a superscript.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="isSubScript(int)">
<h3>isSubScript</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">isSubScript</span><wbr><span class="parameters">(int&nbsp;c)</span></div>
<div class="block">Determines whether the given character is a subscript. All subscripts have
a Unicode value in the [2080 … 208E]. Subscripts are the following symbols:
<blockquote><pre>₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₊ ₋ ₌ ₍ ₎</pre></blockquote></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>c</code> - the character to test.</dd>
<dt>Returns:</dt>
<dd><code>true</code> if the given character is a subscript.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="toSuperScript(char)">
<h3>toSuperScript</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">char</span>&nbsp;<span class="element-name">toSuperScript</span><wbr><span class="parameters">(char&nbsp;c)</span></div>
<div class="block">Converts the given character argument to superscript.
Only the following characters can be converted (other characters are left unchanged):
<blockquote><pre>0 1 2 3 4 5 6 7 8 9 + - = ( ) n</pre></blockquote></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>c</code> - the character to convert.</dd>
<dt>Returns:</dt>
<dd>the given character as a superscript, or <code>c</code> if the given character cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="toSubScript(char)">
<h3>toSubScript</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">char</span>&nbsp;<span class="element-name">toSubScript</span><wbr><span class="parameters">(char&nbsp;c)</span></div>
<div class="block">Converts the given character argument to subscript.
Only the following characters can be converted (other characters are left unchanged):
<blockquote><pre>0 1 2 3 4 5 6 7 8 9 + - = ( )</pre></blockquote></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>c</code> - the character to convert.</dd>
<dt>Returns:</dt>
<dd>the given character as a subscript, or <code>c</code> if the given character cannot be converted.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="toNormalScript(char)">
<h3>toNormalScript</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">char</span>&nbsp;<span class="element-name">toNormalScript</span><wbr><span class="parameters">(char&nbsp;c)</span></div>
<div class="block">Converts the given character argument to normal script.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>c</code> - the character to convert.</dd>
<dt>Returns:</dt>
<dd>the given character as a normal script, or <code>c</code> if the
given character was not a superscript or a subscript.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="toNormalScript(int)">
<h3>toNormalScript</h3>
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name">toNormalScript</span><wbr><span class="parameters">(int&nbsp;c)</span></div>
<div class="block">Converts the given code point to normal script.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>c</code> - the character to convert.</dd>
<dt>Returns:</dt>
<dd>the given character as a normal script, or <code>c</code> if the
given character was not a superscript or a subscript.</dd>
<dt>Since:</dt>
<dd>1.0</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<hr>
<p class="legal-copy"><small>Copyright &#169; 2010&#x2013;2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>