You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1697 lines
85 KiB

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#375EAB">
<title>unicode - The Go Programming Language</title>
<link type="text/css" rel="stylesheet" href="../../lib/godoc/style.css">
<link rel="stylesheet" href="../../lib/godoc/jquery.treeview.css">
<script type="text/javascript">window.initFuncs = [];</script>
</head>
<body>
<div id='lowframe' style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
...
</div><!-- #lowframe -->
<div id="topbar" class="wide"><div class="container">
<div class="top-heading" id="heading-wide"><a href="http://localhost:6060/">The Go Programming Language</a></div>
<div class="top-heading" id="heading-narrow"><a href="http://localhost:6060/">Go</a></div>
<a href="index.html#" id="menu-button"><span id="menu-button-arrow">&#9661;</span></a>
<form method="GET" action="http://localhost:6060/search">
<div id="menu">
<a href="http://localhost:6060/doc/">Documents</a>
<a href="http://localhost:6060/pkg/">Packages</a>
<a href="http://localhost:6060/project/">The Project</a>
<a href="http://localhost:6060/help/">Help</a>
<a href="http://localhost:6060/blog/">Blog</a>
<input type="text" id="search" name="q" class="inactive" value="Search" placeholder="Search">
</div>
</form>
</div></div>
<div id="page" class="wide">
<div class="container">
<h1>Package unicode</h1>
<div id="nav"></div>
<!--
Copyright 2009 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
<!--
Note: Static (i.e., not template-generated) href and id
attributes start with "pkg-" to make it impossible for
them to conflict with generated attributes (some of which
correspond to Go identifiers).
-->
<script type='text/javascript'>
document.ANALYSIS_DATA = null;
document.CALLGRAPH = null;
</script>
<div id="short-nav">
<dl>
<dd><code>import "unicode"</code></dd>
</dl>
<dl>
<dd><a href="index.html#pkg-overview" class="overviewLink">Overview</a></dd>
<dd><a href="index.html#pkg-index" class="indexLink">Index</a></dd>
<dd><a href="index.html#pkg-examples" class="examplesLink">Examples</a></dd>
<dd><a href="index.html#pkg-subdirectories">Subdirectories</a></dd>
</dl>
</div>
<!-- The package's Name is printed as title by the top-level template -->
<div id="pkg-overview" class="toggleVisible">
<div class="collapsed">
<h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
</div>
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
<p>
Package unicode provides data and functions to test some properties of
Unicode code points.
</p>
</div>
</div>
<div id="example__is" class="toggle">
<div class="collapsed">
<p class="exampleHeading toggleButton"><span class="text">Example (Is)</span></p>
</div>
<div class="expanded">
<p class="exampleHeading toggleButton"><span class="text">Example (Is)</span></p>
<p>Functions starting with &#34;Is&#34; can be used to inspect which table of range a
rune belongs to. Note that runes may fit into more than one range.
</p>
<p>Code:</p>
<pre class="code"><span class="comment">// constant with mixed type runes</span>
const mixed = &#34;\b5Ὂg̀9! ℃ᾭG&#34;
for _, c := range mixed {
fmt.Printf(&#34;For %q:\n&#34;, c)
if unicode.IsControl(c) {
fmt.Println(&#34;\tis control rune&#34;)
}
if unicode.IsDigit(c) {
fmt.Println(&#34;\tis digit rune&#34;)
}
if unicode.IsGraphic(c) {
fmt.Println(&#34;\tis graphic rune&#34;)
}
if unicode.IsLetter(c) {
fmt.Println(&#34;\tis letter rune&#34;)
}
if unicode.IsLower(c) {
fmt.Println(&#34;\tis lower case rune&#34;)
}
if unicode.IsMark(c) {
fmt.Println(&#34;\tis mark rune&#34;)
}
if unicode.IsNumber(c) {
fmt.Println(&#34;\tis number rune&#34;)
}
if unicode.IsPrint(c) {
fmt.Println(&#34;\tis printable rune&#34;)
}
if !unicode.IsPrint(c) {
fmt.Println(&#34;\tis not printable rune&#34;)
}
if unicode.IsPunct(c) {
fmt.Println(&#34;\tis punct rune&#34;)
}
if unicode.IsSpace(c) {
fmt.Println(&#34;\tis space rune&#34;)
}
if unicode.IsSymbol(c) {
fmt.Println(&#34;\tis symbol rune&#34;)
}
if unicode.IsTitle(c) {
fmt.Println(&#34;\tis title case rune&#34;)
}
if unicode.IsUpper(c) {
fmt.Println(&#34;\tis upper case rune&#34;)
}
}
<span class="comment"></pre>
<p>Output:</p>
<pre class="output">For &#39;\b&#39;:
is control rune
is not printable rune
For &#39;5&#39;:
is digit rune
is graphic rune
is number rune
is printable rune
For &#39;&#39;:
is graphic rune
is letter rune
is printable rune
is upper case rune
For &#39;g&#39;:
is graphic rune
is letter rune
is lower case rune
is printable rune
For &#39;̀&#39;:
is graphic rune
is mark rune
is printable rune
For &#39;9&#39;:
is digit rune
is graphic rune
is number rune
is printable rune
For &#39;!&#39;:
is graphic rune
is printable rune
is punct rune
For &#39; &#39;:
is graphic rune
is printable rune
is space rune
For &#39;&#39;:
is graphic rune
is printable rune
is symbol rune
For &#39;&#39;:
is graphic rune
is letter rune
is printable rune
is title case rune
For &#39;G&#39;:
is graphic rune
is letter rune
is printable rune
is upper case rune
</pre>
</div>
</div>
<div id="pkg-index" class="toggleVisible">
<div class="collapsed">
<h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
</div>
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>
<!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
<div id="manual-nav">
<dl>
<dd><a href="index.html#pkg-constants">Constants</a></dd>
<dd><a href="index.html#pkg-variables">Variables</a></dd>
<dd><a href="index.html#In">func In(r rune, ranges ...*RangeTable) bool</a></dd>
<dd><a href="index.html#Is">func Is(rangeTab *RangeTable, r rune) bool</a></dd>
<dd><a href="index.html#IsControl">func IsControl(r rune) bool</a></dd>
<dd><a href="index.html#IsDigit">func IsDigit(r rune) bool</a></dd>
<dd><a href="index.html#IsGraphic">func IsGraphic(r rune) bool</a></dd>
<dd><a href="index.html#IsLetter">func IsLetter(r rune) bool</a></dd>
<dd><a href="index.html#IsLower">func IsLower(r rune) bool</a></dd>
<dd><a href="index.html#IsMark">func IsMark(r rune) bool</a></dd>
<dd><a href="index.html#IsNumber">func IsNumber(r rune) bool</a></dd>
<dd><a href="index.html#IsOneOf">func IsOneOf(ranges []*RangeTable, r rune) bool</a></dd>
<dd><a href="index.html#IsPrint">func IsPrint(r rune) bool</a></dd>
<dd><a href="index.html#IsPunct">func IsPunct(r rune) bool</a></dd>
<dd><a href="index.html#IsSpace">func IsSpace(r rune) bool</a></dd>
<dd><a href="index.html#IsSymbol">func IsSymbol(r rune) bool</a></dd>
<dd><a href="index.html#IsTitle">func IsTitle(r rune) bool</a></dd>
<dd><a href="index.html#IsUpper">func IsUpper(r rune) bool</a></dd>
<dd><a href="index.html#SimpleFold">func SimpleFold(r rune) rune</a></dd>
<dd><a href="index.html#To">func To(_case int, r rune) rune</a></dd>
<dd><a href="index.html#ToLower">func ToLower(r rune) rune</a></dd>
<dd><a href="index.html#ToTitle">func ToTitle(r rune) rune</a></dd>
<dd><a href="index.html#ToUpper">func ToUpper(r rune) rune</a></dd>
<dd><a href="index.html#CaseRange">type CaseRange</a></dd>
<dd><a href="index.html#Range16">type Range16</a></dd>
<dd><a href="index.html#Range32">type Range32</a></dd>
<dd><a href="index.html#RangeTable">type RangeTable</a></dd>
<dd><a href="index.html#SpecialCase">type SpecialCase</a></dd>
<dd>&nbsp; &nbsp; <a href="index.html#SpecialCase.ToLower">func (special SpecialCase) ToLower(r rune) rune</a></dd>
<dd>&nbsp; &nbsp; <a href="index.html#SpecialCase.ToTitle">func (special SpecialCase) ToTitle(r rune) rune</a></dd>
<dd>&nbsp; &nbsp; <a href="index.html#SpecialCase.ToUpper">func (special SpecialCase) ToUpper(r rune) rune</a></dd>
<dd><a href="index.html#pkg-note-BUG">Bugs</a></dd>
</dl>
</div><!-- #manual-nav -->
<div id="pkg-examples">
<h4>Examples</h4>
<dl>
<dd><a class="exampleLink" href="index.html#example_SimpleFold">SimpleFold</a></dd>
<dd><a class="exampleLink" href="index.html#example_SpecialCase">SpecialCase</a></dd>
<dd><a class="exampleLink" href="index.html#example_To">To</a></dd>
<dd><a class="exampleLink" href="index.html#example_ToLower">ToLower</a></dd>
<dd><a class="exampleLink" href="index.html#example_ToTitle">ToTitle</a></dd>
<dd><a class="exampleLink" href="index.html#example_ToUpper">ToUpper</a></dd>
<dd><a class="exampleLink" href="index.html#example__is">Package (Is)</a></dd>
</dl>
</div>
<h4>Package files</h4>
<p>
<span style="font-size:90%">
<a href="http://localhost:6060/src/unicode/casetables.go">casetables.go</a>
<a href="http://localhost:6060/src/unicode/digit.go">digit.go</a>
<a href="http://localhost:6060/src/unicode/graphic.go">graphic.go</a>
<a href="http://localhost:6060/src/unicode/letter.go">letter.go</a>
<a href="http://localhost:6060/src/unicode/tables.go">tables.go</a>
</span>
</p>
</div><!-- .expanded -->
</div><!-- #pkg-index -->
<div id="pkg-callgraph" class="toggle" style="display: none">
<div class="collapsed">
<h2 class="toggleButton" title="Click to show Internal Call Graph section">Internal call graph ▹</h2>
</div> <!-- .expanded -->
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2>
<p>
In the call graph viewer below, each node
is a function belonging to this package
and its children are the functions it
calls&mdash;perhaps dynamically.
</p>
<p>
The root nodes are the entry points of the
package: functions that may be called from
outside the package.
There may be non-exported or anonymous
functions among them if they are called
dynamically from another package.
</p>
<p>
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring <code>func</code>
token.
</p>
<p>
Functions may be omitted if they were
determined to be unreachable in the
particular programs or tests that were
analyzed.
</p>
<!-- Zero means show all package entry points. -->
<ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
</div>
</div> <!-- #pkg-callgraph -->
<h2 id="pkg-constants">Constants</h2>
<pre>const (
<span id="MaxRune">MaxRune</span> = &#39;\U0010FFFF&#39; <span class="comment">// Maximum valid Unicode code point.</span>
<span id="ReplacementChar">ReplacementChar</span> = &#39;\uFFFD&#39; <span class="comment">// Represents invalid code points.</span>
<span id="MaxASCII">MaxASCII</span> = &#39;\u007F&#39; <span class="comment">// maximum ASCII value.</span>
<span id="MaxLatin1">MaxLatin1</span> = &#39;\u00FF&#39; <span class="comment">// maximum Latin-1 value.</span>
)</pre>
<pre>const (
<span id="UpperCase">UpperCase</span> = <a href="../builtin/index.html#iota">iota</a>
<span id="LowerCase">LowerCase</span>
<span id="TitleCase">TitleCase</span>
<span id="MaxCase">MaxCase</span>
)</pre>
<p>
Indices into the Delta arrays inside CaseRanges for case mapping.
</p>
<pre>const (
<span id="UpperLower">UpperLower</span> = <a href="index.html#MaxRune">MaxRune</a> + 1 <span class="comment">// (Cannot be a valid delta.)</span>
)</pre>
<p>
If the Delta field of a CaseRange is UpperLower, it means
this CaseRange represents a sequence of the form (say)
Upper Lower Upper Lower.
</p>
<pre>const <span id="Version">Version</span> = &#34;8.0.0&#34;</pre>
<p>
Version is the Unicode edition from which the tables are derived.
</p>
<h2 id="pkg-variables">Variables</h2>
<pre>var (
<span id="Cc">Cc</span> = _Cc <span class="comment">// Cc is the set of Unicode characters in category Cc.</span>
<span id="Cf">Cf</span> = _Cf <span class="comment">// Cf is the set of Unicode characters in category Cf.</span>
<span id="Co">Co</span> = _Co <span class="comment">// Co is the set of Unicode characters in category Co.</span>
<span id="Cs">Cs</span> = _Cs <span class="comment">// Cs is the set of Unicode characters in category Cs.</span>
<span id="Digit">Digit</span> = _Nd <span class="comment">// Digit is the set of Unicode characters with the &#34;decimal digit&#34; property.</span>
<span id="Nd">Nd</span> = _Nd <span class="comment">// Nd is the set of Unicode characters in category Nd.</span>
<span id="Letter">Letter</span> = _L <span class="comment">// Letter/L is the set of Unicode letters, category L.</span>
<span id="L">L</span> = _L
<span id="Lm">Lm</span> = _Lm <span class="comment">// Lm is the set of Unicode characters in category Lm.</span>
<span id="Lo">Lo</span> = _Lo <span class="comment">// Lo is the set of Unicode characters in category Lo.</span>
<span id="Lower">Lower</span> = _Ll <span class="comment">// Lower is the set of Unicode lower case letters.</span>
<span id="Ll">Ll</span> = _Ll <span class="comment">// Ll is the set of Unicode characters in category Ll.</span>
<span id="Mark">Mark</span> = _M <span class="comment">// Mark/M is the set of Unicode mark characters, category M.</span>
<span id="M">M</span> = _M
<span id="Mc">Mc</span> = _Mc <span class="comment">// Mc is the set of Unicode characters in category Mc.</span>
<span id="Me">Me</span> = _Me <span class="comment">// Me is the set of Unicode characters in category Me.</span>
<span id="Mn">Mn</span> = _Mn <span class="comment">// Mn is the set of Unicode characters in category Mn.</span>
<span id="Nl">Nl</span> = _Nl <span class="comment">// Nl is the set of Unicode characters in category Nl.</span>
<span id="No">No</span> = _No <span class="comment">// No is the set of Unicode characters in category No.</span>
<span id="Number">Number</span> = _N <span class="comment">// Number/N is the set of Unicode number characters, category N.</span>
<span id="N">N</span> = _N
<span id="Other">Other</span> = _C <span class="comment">// Other/C is the set of Unicode control and special characters, category C.</span>
<span id="C">C</span> = _C
<span id="Pc">Pc</span> = _Pc <span class="comment">// Pc is the set of Unicode characters in category Pc.</span>
<span id="Pd">Pd</span> = _Pd <span class="comment">// Pd is the set of Unicode characters in category Pd.</span>
<span id="Pe">Pe</span> = _Pe <span class="comment">// Pe is the set of Unicode characters in category Pe.</span>
<span id="Pf">Pf</span> = _Pf <span class="comment">// Pf is the set of Unicode characters in category Pf.</span>
<span id="Pi">Pi</span> = _Pi <span class="comment">// Pi is the set of Unicode characters in category Pi.</span>
<span id="Po">Po</span> = _Po <span class="comment">// Po is the set of Unicode characters in category Po.</span>
<span id="Ps">Ps</span> = _Ps <span class="comment">// Ps is the set of Unicode characters in category Ps.</span>
<span id="Punct">Punct</span> = _P <span class="comment">// Punct/P is the set of Unicode punctuation characters, category P.</span>
<span id="P">P</span> = _P
<span id="Sc">Sc</span> = _Sc <span class="comment">// Sc is the set of Unicode characters in category Sc.</span>
<span id="Sk">Sk</span> = _Sk <span class="comment">// Sk is the set of Unicode characters in category Sk.</span>
<span id="Sm">Sm</span> = _Sm <span class="comment">// Sm is the set of Unicode characters in category Sm.</span>
<span id="So">So</span> = _So <span class="comment">// So is the set of Unicode characters in category So.</span>
<span id="Space">Space</span> = _Z <span class="comment">// Space/Z is the set of Unicode space characters, category Z.</span>
<span id="Z">Z</span> = _Z
<span id="Symbol">Symbol</span> = _S <span class="comment">// Symbol/S is the set of Unicode symbol characters, category S.</span>
<span id="S">S</span> = _S
<span id="Title">Title</span> = _Lt <span class="comment">// Title is the set of Unicode title case letters.</span>
<span id="Lt">Lt</span> = _Lt <span class="comment">// Lt is the set of Unicode characters in category Lt.</span>
<span id="Upper">Upper</span> = _Lu <span class="comment">// Upper is the set of Unicode upper case letters.</span>
<span id="Lu">Lu</span> = _Lu <span class="comment">// Lu is the set of Unicode characters in category Lu.</span>
<span id="Zl">Zl</span> = _Zl <span class="comment">// Zl is the set of Unicode characters in category Zl.</span>
<span id="Zp">Zp</span> = _Zp <span class="comment">// Zp is the set of Unicode characters in category Zp.</span>
<span id="Zs">Zs</span> = _Zs <span class="comment">// Zs is the set of Unicode characters in category Zs.</span>
)</pre>
<p>
These variables have type *RangeTable.
</p>
<pre>var (
<span id="Ahom">Ahom</span> = _Ahom <span class="comment">// Ahom is the set of Unicode characters in script Ahom.</span>
<span id="Anatolian_Hieroglyphs">Anatolian_Hieroglyphs</span> = _Anatolian_Hieroglyphs <span class="comment">// Anatolian_Hieroglyphs is the set of Unicode characters in script Anatolian_Hieroglyphs.</span>
<span id="Arabic">Arabic</span> = _Arabic <span class="comment">// Arabic is the set of Unicode characters in script Arabic.</span>
<span id="Armenian">Armenian</span> = _Armenian <span class="comment">// Armenian is the set of Unicode characters in script Armenian.</span>
<span id="Avestan">Avestan</span> = _Avestan <span class="comment">// Avestan is the set of Unicode characters in script Avestan.</span>
<span id="Balinese">Balinese</span> = _Balinese <span class="comment">// Balinese is the set of Unicode characters in script Balinese.</span>
<span id="Bamum">Bamum</span> = _Bamum <span class="comment">// Bamum is the set of Unicode characters in script Bamum.</span>
<span id="Bassa_Vah">Bassa_Vah</span> = _Bassa_Vah <span class="comment">// Bassa_Vah is the set of Unicode characters in script Bassa_Vah.</span>
<span id="Batak">Batak</span> = _Batak <span class="comment">// Batak is the set of Unicode characters in script Batak.</span>
<span id="Bengali">Bengali</span> = _Bengali <span class="comment">// Bengali is the set of Unicode characters in script Bengali.</span>
<span id="Bopomofo">Bopomofo</span> = _Bopomofo <span class="comment">// Bopomofo is the set of Unicode characters in script Bopomofo.</span>
<span id="Brahmi">Brahmi</span> = _Brahmi <span class="comment">// Brahmi is the set of Unicode characters in script Brahmi.</span>
<span id="Braille">Braille</span> = _Braille <span class="comment">// Braille is the set of Unicode characters in script Braille.</span>
<span id="Buginese">Buginese</span> = _Buginese <span class="comment">// Buginese is the set of Unicode characters in script Buginese.</span>
<span id="Buhid">Buhid</span> = _Buhid <span class="comment">// Buhid is the set of Unicode characters in script Buhid.</span>
<span id="Canadian_Aboriginal">Canadian_Aboriginal</span> = _Canadian_Aboriginal <span class="comment">// Canadian_Aboriginal is the set of Unicode characters in script Canadian_Aboriginal.</span>
<span id="Carian">Carian</span> = _Carian <span class="comment">// Carian is the set of Unicode characters in script Carian.</span>
<span id="Caucasian_Albanian">Caucasian_Albanian</span> = _Caucasian_Albanian <span class="comment">// Caucasian_Albanian is the set of Unicode characters in script Caucasian_Albanian.</span>
<span id="Chakma">Chakma</span> = _Chakma <span class="comment">// Chakma is the set of Unicode characters in script Chakma.</span>
<span id="Cham">Cham</span> = _Cham <span class="comment">// Cham is the set of Unicode characters in script Cham.</span>
<span id="Cherokee">Cherokee</span> = _Cherokee <span class="comment">// Cherokee is the set of Unicode characters in script Cherokee.</span>
<span id="Common">Common</span> = _Common <span class="comment">// Common is the set of Unicode characters in script Common.</span>
<span id="Coptic">Coptic</span> = _Coptic <span class="comment">// Coptic is the set of Unicode characters in script Coptic.</span>
<span id="Cuneiform">Cuneiform</span> = _Cuneiform <span class="comment">// Cuneiform is the set of Unicode characters in script Cuneiform.</span>
<span id="Cypriot">Cypriot</span> = _Cypriot <span class="comment">// Cypriot is the set of Unicode characters in script Cypriot.</span>
<span id="Cyrillic">Cyrillic</span> = _Cyrillic <span class="comment">// Cyrillic is the set of Unicode characters in script Cyrillic.</span>
<span id="Deseret">Deseret</span> = _Deseret <span class="comment">// Deseret is the set of Unicode characters in script Deseret.</span>
<span id="Devanagari">Devanagari</span> = _Devanagari <span class="comment">// Devanagari is the set of Unicode characters in script Devanagari.</span>
<span id="Duployan">Duployan</span> = _Duployan <span class="comment">// Duployan is the set of Unicode characters in script Duployan.</span>
<span id="Egyptian_Hieroglyphs">Egyptian_Hieroglyphs</span> = _Egyptian_Hieroglyphs <span class="comment">// Egyptian_Hieroglyphs is the set of Unicode characters in script Egyptian_Hieroglyphs.</span>
<span id="Elbasan">Elbasan</span> = _Elbasan <span class="comment">// Elbasan is the set of Unicode characters in script Elbasan.</span>
<span id="Ethiopic">Ethiopic</span> = _Ethiopic <span class="comment">// Ethiopic is the set of Unicode characters in script Ethiopic.</span>
<span id="Georgian">Georgian</span> = _Georgian <span class="comment">// Georgian is the set of Unicode characters in script Georgian.</span>
<span id="Glagolitic">Glagolitic</span> = _Glagolitic <span class="comment">// Glagolitic is the set of Unicode characters in script Glagolitic.</span>
<span id="Gothic">Gothic</span> = _Gothic <span class="comment">// Gothic is the set of Unicode characters in script Gothic.</span>
<span id="Grantha">Grantha</span> = _Grantha <span class="comment">// Grantha is the set of Unicode characters in script Grantha.</span>
<span id="Greek">Greek</span> = _Greek <span class="comment">// Greek is the set of Unicode characters in script Greek.</span>
<span id="Gujarati">Gujarati</span> = _Gujarati <span class="comment">// Gujarati is the set of Unicode characters in script Gujarati.</span>
<span id="Gurmukhi">Gurmukhi</span> = _Gurmukhi <span class="comment">// Gurmukhi is the set of Unicode characters in script Gurmukhi.</span>
<span id="Han">Han</span> = _Han <span class="comment">// Han is the set of Unicode characters in script Han.</span>
<span id="Hangul">Hangul</span> = _Hangul <span class="comment">// Hangul is the set of Unicode characters in script Hangul.</span>
<span id="Hanunoo">Hanunoo</span> = _Hanunoo <span class="comment">// Hanunoo is the set of Unicode characters in script Hanunoo.</span>
<span id="Hatran">Hatran</span> = _Hatran <span class="comment">// Hatran is the set of Unicode characters in script Hatran.</span>
<span id="Hebrew">Hebrew</span> = _Hebrew <span class="comment">// Hebrew is the set of Unicode characters in script Hebrew.</span>
<span id="Hiragana">Hiragana</span> = _Hiragana <span class="comment">// Hiragana is the set of Unicode characters in script Hiragana.</span>
<span id="Imperial_Aramaic">Imperial_Aramaic</span> = _Imperial_Aramaic <span class="comment">// Imperial_Aramaic is the set of Unicode characters in script Imperial_Aramaic.</span>
<span id="Inherited">Inherited</span> = _Inherited <span class="comment">// Inherited is the set of Unicode characters in script Inherited.</span>
<span id="Inscriptional_Pahlavi">Inscriptional_Pahlavi</span> = _Inscriptional_Pahlavi <span class="comment">// Inscriptional_Pahlavi is the set of Unicode characters in script Inscriptional_Pahlavi.</span>
<span id="Inscriptional_Parthian">Inscriptional_Parthian</span> = _Inscriptional_Parthian <span class="comment">// Inscriptional_Parthian is the set of Unicode characters in script Inscriptional_Parthian.</span>
<span id="Javanese">Javanese</span> = _Javanese <span class="comment">// Javanese is the set of Unicode characters in script Javanese.</span>
<span id="Kaithi">Kaithi</span> = _Kaithi <span class="comment">// Kaithi is the set of Unicode characters in script Kaithi.</span>
<span id="Kannada">Kannada</span> = _Kannada <span class="comment">// Kannada is the set of Unicode characters in script Kannada.</span>
<span id="Katakana">Katakana</span> = _Katakana <span class="comment">// Katakana is the set of Unicode characters in script Katakana.</span>
<span id="Kayah_Li">Kayah_Li</span> = _Kayah_Li <span class="comment">// Kayah_Li is the set of Unicode characters in script Kayah_Li.</span>
<span id="Kharoshthi">Kharoshthi</span> = _Kharoshthi <span class="comment">// Kharoshthi is the set of Unicode characters in script Kharoshthi.</span>
<span id="Khmer">Khmer</span> = _Khmer <span class="comment">// Khmer is the set of Unicode characters in script Khmer.</span>
<span id="Khojki">Khojki</span> = _Khojki <span class="comment">// Khojki is the set of Unicode characters in script Khojki.</span>
<span id="Khudawadi">Khudawadi</span> = _Khudawadi <span class="comment">// Khudawadi is the set of Unicode characters in script Khudawadi.</span>
<span id="Lao">Lao</span> = _Lao <span class="comment">// Lao is the set of Unicode characters in script Lao.</span>
<span id="Latin">Latin</span> = _Latin <span class="comment">// Latin is the set of Unicode characters in script Latin.</span>
<span id="Lepcha">Lepcha</span> = _Lepcha <span class="comment">// Lepcha is the set of Unicode characters in script Lepcha.</span>
<span id="Limbu">Limbu</span> = _Limbu <span class="comment">// Limbu is the set of Unicode characters in script Limbu.</span>
<span id="Linear_A">Linear_A</span> = _Linear_A <span class="comment">// Linear_A is the set of Unicode characters in script Linear_A.</span>
<span id="Linear_B">Linear_B</span> = _Linear_B <span class="comment">// Linear_B is the set of Unicode characters in script Linear_B.</span>
<span id="Lisu">Lisu</span> = _Lisu <span class="comment">// Lisu is the set of Unicode characters in script Lisu.</span>
<span id="Lycian">Lycian</span> = _Lycian <span class="comment">// Lycian is the set of Unicode characters in script Lycian.</span>
<span id="Lydian">Lydian</span> = _Lydian <span class="comment">// Lydian is the set of Unicode characters in script Lydian.</span>
<span id="Mahajani">Mahajani</span> = _Mahajani <span class="comment">// Mahajani is the set of Unicode characters in script Mahajani.</span>
<span id="Malayalam">Malayalam</span> = _Malayalam <span class="comment">// Malayalam is the set of Unicode characters in script Malayalam.</span>
<span id="Mandaic">Mandaic</span> = _Mandaic <span class="comment">// Mandaic is the set of Unicode characters in script Mandaic.</span>
<span id="Manichaean">Manichaean</span> = _Manichaean <span class="comment">// Manichaean is the set of Unicode characters in script Manichaean.</span>
<span id="Meetei_Mayek">Meetei_Mayek</span> = _Meetei_Mayek <span class="comment">// Meetei_Mayek is the set of Unicode characters in script Meetei_Mayek.</span>
<span id="Mende_Kikakui">Mende_Kikakui</span> = _Mende_Kikakui <span class="comment">// Mende_Kikakui is the set of Unicode characters in script Mende_Kikakui.</span>
<span id="Meroitic_Cursive">Meroitic_Cursive</span> = _Meroitic_Cursive <span class="comment">// Meroitic_Cursive is the set of Unicode characters in script Meroitic_Cursive.</span>
<span id="Meroitic_Hieroglyphs">Meroitic_Hieroglyphs</span> = _Meroitic_Hieroglyphs <span class="comment">// Meroitic_Hieroglyphs is the set of Unicode characters in script Meroitic_Hieroglyphs.</span>
<span id="Miao">Miao</span> = _Miao <span class="comment">// Miao is the set of Unicode characters in script Miao.</span>
<span id="Modi">Modi</span> = _Modi <span class="comment">// Modi is the set of Unicode characters in script Modi.</span>
<span id="Mongolian">Mongolian</span> = _Mongolian <span class="comment">// Mongolian is the set of Unicode characters in script Mongolian.</span>
<span id="Mro">Mro</span> = _Mro <span class="comment">// Mro is the set of Unicode characters in script Mro.</span>
<span id="Multani">Multani</span> = _Multani <span class="comment">// Multani is the set of Unicode characters in script Multani.</span>
<span id="Myanmar">Myanmar</span> = _Myanmar <span class="comment">// Myanmar is the set of Unicode characters in script Myanmar.</span>
<span id="Nabataean">Nabataean</span> = _Nabataean <span class="comment">// Nabataean is the set of Unicode characters in script Nabataean.</span>
<span id="New_Tai_Lue">New_Tai_Lue</span> = _New_Tai_Lue <span class="comment">// New_Tai_Lue is the set of Unicode characters in script New_Tai_Lue.</span>
<span id="Nko">Nko</span> = _Nko <span class="comment">// Nko is the set of Unicode characters in script Nko.</span>
<span id="Ogham">Ogham</span> = _Ogham <span class="comment">// Ogham is the set of Unicode characters in script Ogham.</span>
<span id="Ol_Chiki">Ol_Chiki</span> = _Ol_Chiki <span class="comment">// Ol_Chiki is the set of Unicode characters in script Ol_Chiki.</span>
<span id="Old_Hungarian">Old_Hungarian</span> = _Old_Hungarian <span class="comment">// Old_Hungarian is the set of Unicode characters in script Old_Hungarian.</span>
<span id="Old_Italic">Old_Italic</span> = _Old_Italic <span class="comment">// Old_Italic is the set of Unicode characters in script Old_Italic.</span>
<span id="Old_North_Arabian">Old_North_Arabian</span> = _Old_North_Arabian <span class="comment">// Old_North_Arabian is the set of Unicode characters in script Old_North_Arabian.</span>
<span id="Old_Permic">Old_Permic</span> = _Old_Permic <span class="comment">// Old_Permic is the set of Unicode characters in script Old_Permic.</span>
<span id="Old_Persian">Old_Persian</span> = _Old_Persian <span class="comment">// Old_Persian is the set of Unicode characters in script Old_Persian.</span>
<span id="Old_South_Arabian">Old_South_Arabian</span> = _Old_South_Arabian <span class="comment">// Old_South_Arabian is the set of Unicode characters in script Old_South_Arabian.</span>
<span id="Old_Turkic">Old_Turkic</span> = _Old_Turkic <span class="comment">// Old_Turkic is the set of Unicode characters in script Old_Turkic.</span>
<span id="Oriya">Oriya</span> = _Oriya <span class="comment">// Oriya is the set of Unicode characters in script Oriya.</span>
<span id="Osmanya">Osmanya</span> = _Osmanya <span class="comment">// Osmanya is the set of Unicode characters in script Osmanya.</span>
<span id="Pahawh_Hmong">Pahawh_Hmong</span> = _Pahawh_Hmong <span class="comment">// Pahawh_Hmong is the set of Unicode characters in script Pahawh_Hmong.</span>
<span id="Palmyrene">Palmyrene</span> = _Palmyrene <span class="comment">// Palmyrene is the set of Unicode characters in script Palmyrene.</span>
<span id="Pau_Cin_Hau">Pau_Cin_Hau</span> = _Pau_Cin_Hau <span class="comment">// Pau_Cin_Hau is the set of Unicode characters in script Pau_Cin_Hau.</span>
<span id="Phags_Pa">Phags_Pa</span> = _Phags_Pa <span class="comment">// Phags_Pa is the set of Unicode characters in script Phags_Pa.</span>
<span id="Phoenician">Phoenician</span> = _Phoenician <span class="comment">// Phoenician is the set of Unicode characters in script Phoenician.</span>
<span id="Psalter_Pahlavi">Psalter_Pahlavi</span> = _Psalter_Pahlavi <span class="comment">// Psalter_Pahlavi is the set of Unicode characters in script Psalter_Pahlavi.</span>
<span id="Rejang">Rejang</span> = _Rejang <span class="comment">// Rejang is the set of Unicode characters in script Rejang.</span>
<span id="Runic">Runic</span> = _Runic <span class="comment">// Runic is the set of Unicode characters in script Runic.</span>
<span id="Samaritan">Samaritan</span> = _Samaritan <span class="comment">// Samaritan is the set of Unicode characters in script Samaritan.</span>
<span id="Saurashtra">Saurashtra</span> = _Saurashtra <span class="comment">// Saurashtra is the set of Unicode characters in script Saurashtra.</span>
<span id="Sharada">Sharada</span> = _Sharada <span class="comment">// Sharada is the set of Unicode characters in script Sharada.</span>
<span id="Shavian">Shavian</span> = _Shavian <span class="comment">// Shavian is the set of Unicode characters in script Shavian.</span>
<span id="Siddham">Siddham</span> = _Siddham <span class="comment">// Siddham is the set of Unicode characters in script Siddham.</span>
<span id="SignWriting">SignWriting</span> = _SignWriting <span class="comment">// SignWriting is the set of Unicode characters in script SignWriting.</span>
<span id="Sinhala">Sinhala</span> = _Sinhala <span class="comment">// Sinhala is the set of Unicode characters in script Sinhala.</span>
<span id="Sora_Sompeng">Sora_Sompeng</span> = _Sora_Sompeng <span class="comment">// Sora_Sompeng is the set of Unicode characters in script Sora_Sompeng.</span>
<span id="Sundanese">Sundanese</span> = _Sundanese <span class="comment">// Sundanese is the set of Unicode characters in script Sundanese.</span>
<span id="Syloti_Nagri">Syloti_Nagri</span> = _Syloti_Nagri <span class="comment">// Syloti_Nagri is the set of Unicode characters in script Syloti_Nagri.</span>
<span id="Syriac">Syriac</span> = _Syriac <span class="comment">// Syriac is the set of Unicode characters in script Syriac.</span>
<span id="Tagalog">Tagalog</span> = _Tagalog <span class="comment">// Tagalog is the set of Unicode characters in script Tagalog.</span>
<span id="Tagbanwa">Tagbanwa</span> = _Tagbanwa <span class="comment">// Tagbanwa is the set of Unicode characters in script Tagbanwa.</span>
<span id="Tai_Le">Tai_Le</span> = _Tai_Le <span class="comment">// Tai_Le is the set of Unicode characters in script Tai_Le.</span>
<span id="Tai_Tham">Tai_Tham</span> = _Tai_Tham <span class="comment">// Tai_Tham is the set of Unicode characters in script Tai_Tham.</span>
<span id="Tai_Viet">Tai_Viet</span> = _Tai_Viet <span class="comment">// Tai_Viet is the set of Unicode characters in script Tai_Viet.</span>
<span id="Takri">Takri</span> = _Takri <span class="comment">// Takri is the set of Unicode characters in script Takri.</span>
<span id="Tamil">Tamil</span> = _Tamil <span class="comment">// Tamil is the set of Unicode characters in script Tamil.</span>
<span id="Telugu">Telugu</span> = _Telugu <span class="comment">// Telugu is the set of Unicode characters in script Telugu.</span>
<span id="Thaana">Thaana</span> = _Thaana <span class="comment">// Thaana is the set of Unicode characters in script Thaana.</span>
<span id="Thai">Thai</span> = _Thai <span class="comment">// Thai is the set of Unicode characters in script Thai.</span>
<span id="Tibetan">Tibetan</span> = _Tibetan <span class="comment">// Tibetan is the set of Unicode characters in script Tibetan.</span>
<span id="Tifinagh">Tifinagh</span> = _Tifinagh <span class="comment">// Tifinagh is the set of Unicode characters in script Tifinagh.</span>
<span id="Tirhuta">Tirhuta</span> = _Tirhuta <span class="comment">// Tirhuta is the set of Unicode characters in script Tirhuta.</span>
<span id="Ugaritic">Ugaritic</span> = _Ugaritic <span class="comment">// Ugaritic is the set of Unicode characters in script Ugaritic.</span>
<span id="Vai">Vai</span> = _Vai <span class="comment">// Vai is the set of Unicode characters in script Vai.</span>
<span id="Warang_Citi">Warang_Citi</span> = _Warang_Citi <span class="comment">// Warang_Citi is the set of Unicode characters in script Warang_Citi.</span>
<span id="Yi">Yi</span> = _Yi <span class="comment">// Yi is the set of Unicode characters in script Yi.</span>
)</pre>
<p>
These variables have type *RangeTable.
</p>
<pre>var (
<span id="ASCII_Hex_Digit">ASCII_Hex_Digit</span> = _ASCII_Hex_Digit <span class="comment">// ASCII_Hex_Digit is the set of Unicode characters with property ASCII_Hex_Digit.</span>
<span id="Bidi_Control">Bidi_Control</span> = _Bidi_Control <span class="comment">// Bidi_Control is the set of Unicode characters with property Bidi_Control.</span>
<span id="Dash">Dash</span> = _Dash <span class="comment">// Dash is the set of Unicode characters with property Dash.</span>
<span id="Deprecated">Deprecated</span> = _Deprecated <span class="comment">// Deprecated is the set of Unicode characters with property Deprecated.</span>
<span id="Diacritic">Diacritic</span> = _Diacritic <span class="comment">// Diacritic is the set of Unicode characters with property Diacritic.</span>
<span id="Extender">Extender</span> = _Extender <span class="comment">// Extender is the set of Unicode characters with property Extender.</span>
<span id="Hex_Digit">Hex_Digit</span> = _Hex_Digit <span class="comment">// Hex_Digit is the set of Unicode characters with property Hex_Digit.</span>
<span id="Hyphen">Hyphen</span> = _Hyphen <span class="comment">// Hyphen is the set of Unicode characters with property Hyphen.</span>
<span id="IDS_Binary_Operator">IDS_Binary_Operator</span> = _IDS_Binary_Operator <span class="comment">// IDS_Binary_Operator is the set of Unicode characters with property IDS_Binary_Operator.</span>
<span id="IDS_Trinary_Operator">IDS_Trinary_Operator</span> = _IDS_Trinary_Operator <span class="comment">// IDS_Trinary_Operator is the set of Unicode characters with property IDS_Trinary_Operator.</span>
<span id="Ideographic">Ideographic</span> = _Ideographic <span class="comment">// Ideographic is the set of Unicode characters with property Ideographic.</span>
<span id="Join_Control">Join_Control</span> = _Join_Control <span class="comment">// Join_Control is the set of Unicode characters with property Join_Control.</span>
<span id="Logical_Order_Exception">Logical_Order_Exception</span> = _Logical_Order_Exception <span class="comment">// Logical_Order_Exception is the set of Unicode characters with property Logical_Order_Exception.</span>
<span id="Noncharacter_Code_Point">Noncharacter_Code_Point</span> = _Noncharacter_Code_Point <span class="comment">// Noncharacter_Code_Point is the set of Unicode characters with property Noncharacter_Code_Point.</span>
<span id="Other_Alphabetic">Other_Alphabetic</span> = _Other_Alphabetic <span class="comment">// Other_Alphabetic is the set of Unicode characters with property Other_Alphabetic.</span>
<span id="Other_Default_Ignorable_Code_Point">Other_Default_Ignorable_Code_Point</span> = _Other_Default_Ignorable_Code_Point <span class="comment">// Other_Default_Ignorable_Code_Point is the set of Unicode characters with property Other_Default_Ignorable_Code_Point.</span>
<span id="Other_Grapheme_Extend">Other_Grapheme_Extend</span> = _Other_Grapheme_Extend <span class="comment">// Other_Grapheme_Extend is the set of Unicode characters with property Other_Grapheme_Extend.</span>
<span id="Other_ID_Continue">Other_ID_Continue</span> = _Other_ID_Continue <span class="comment">// Other_ID_Continue is the set of Unicode characters with property Other_ID_Continue.</span>
<span id="Other_ID_Start">Other_ID_Start</span> = _Other_ID_Start <span class="comment">// Other_ID_Start is the set of Unicode characters with property Other_ID_Start.</span>
<span id="Other_Lowercase">Other_Lowercase</span> = _Other_Lowercase <span class="comment">// Other_Lowercase is the set of Unicode characters with property Other_Lowercase.</span>
<span id="Other_Math">Other_Math</span> = _Other_Math <span class="comment">// Other_Math is the set of Unicode characters with property Other_Math.</span>
<span id="Other_Uppercase">Other_Uppercase</span> = _Other_Uppercase <span class="comment">// Other_Uppercase is the set of Unicode characters with property Other_Uppercase.</span>
<span id="Pattern_Syntax">Pattern_Syntax</span> = _Pattern_Syntax <span class="comment">// Pattern_Syntax is the set of Unicode characters with property Pattern_Syntax.</span>
<span id="Pattern_White_Space">Pattern_White_Space</span> = _Pattern_White_Space <span class="comment">// Pattern_White_Space is the set of Unicode characters with property Pattern_White_Space.</span>
<span id="Quotation_Mark">Quotation_Mark</span> = _Quotation_Mark <span class="comment">// Quotation_Mark is the set of Unicode characters with property Quotation_Mark.</span>
<span id="Radical">Radical</span> = _Radical <span class="comment">// Radical is the set of Unicode characters with property Radical.</span>
<span id="STerm">STerm</span> = _STerm <span class="comment">// STerm is the set of Unicode characters with property STerm.</span>
<span id="Soft_Dotted">Soft_Dotted</span> = _Soft_Dotted <span class="comment">// Soft_Dotted is the set of Unicode characters with property Soft_Dotted.</span>
<span id="Terminal_Punctuation">Terminal_Punctuation</span> = _Terminal_Punctuation <span class="comment">// Terminal_Punctuation is the set of Unicode characters with property Terminal_Punctuation.</span>
<span id="Unified_Ideograph">Unified_Ideograph</span> = _Unified_Ideograph <span class="comment">// Unified_Ideograph is the set of Unicode characters with property Unified_Ideograph.</span>
<span id="Variation_Selector">Variation_Selector</span> = _Variation_Selector <span class="comment">// Variation_Selector is the set of Unicode characters with property Variation_Selector.</span>
<span id="White_Space">White_Space</span> = _White_Space <span class="comment">// White_Space is the set of Unicode characters with property White_Space.</span>
)</pre>
<p>
These variables have type *RangeTable.
</p>
<pre>var <span id="CaseRanges">CaseRanges</span> = _CaseRanges</pre>
<p>
CaseRanges is the table describing case mappings for all letters with
non-self mappings.
</p>
<pre>var <span id="Categories">Categories</span> = map[<a href="../builtin/index.html#string">string</a>]*<a href="index.html#RangeTable">RangeTable</a>{
&#34;C&#34;: <a href="index.html#C">C</a>,
&#34;Cc&#34;: <a href="index.html#Cc">Cc</a>,
&#34;Cf&#34;: <a href="index.html#Cf">Cf</a>,
&#34;Co&#34;: <a href="index.html#Co">Co</a>,
&#34;Cs&#34;: <a href="index.html#Cs">Cs</a>,
&#34;L&#34;: <a href="index.html#L">L</a>,
&#34;Ll&#34;: <a href="index.html#Ll">Ll</a>,
&#34;Lm&#34;: <a href="index.html#Lm">Lm</a>,
&#34;Lo&#34;: <a href="index.html#Lo">Lo</a>,
&#34;Lt&#34;: <a href="index.html#Lt">Lt</a>,
&#34;Lu&#34;: <a href="index.html#Lu">Lu</a>,
&#34;M&#34;: <a href="index.html#M">M</a>,
&#34;Mc&#34;: <a href="index.html#Mc">Mc</a>,
&#34;Me&#34;: <a href="index.html#Me">Me</a>,
&#34;Mn&#34;: <a href="index.html#Mn">Mn</a>,
&#34;N&#34;: <a href="index.html#N">N</a>,
&#34;Nd&#34;: <a href="index.html#Nd">Nd</a>,
&#34;Nl&#34;: <a href="index.html#Nl">Nl</a>,
&#34;No&#34;: <a href="index.html#No">No</a>,
&#34;P&#34;: <a href="index.html#P">P</a>,
&#34;Pc&#34;: <a href="index.html#Pc">Pc</a>,
&#34;Pd&#34;: <a href="index.html#Pd">Pd</a>,
&#34;Pe&#34;: <a href="index.html#Pe">Pe</a>,
&#34;Pf&#34;: <a href="index.html#Pf">Pf</a>,
&#34;Pi&#34;: <a href="index.html#Pi">Pi</a>,
&#34;Po&#34;: <a href="index.html#Po">Po</a>,
&#34;Ps&#34;: <a href="index.html#Ps">Ps</a>,
&#34;S&#34;: <a href="index.html#S">S</a>,
&#34;Sc&#34;: <a href="index.html#Sc">Sc</a>,
&#34;Sk&#34;: <a href="index.html#Sk">Sk</a>,
&#34;Sm&#34;: <a href="index.html#Sm">Sm</a>,
&#34;So&#34;: <a href="index.html#So">So</a>,
&#34;Z&#34;: <a href="index.html#Z">Z</a>,
&#34;Zl&#34;: <a href="index.html#Zl">Zl</a>,
&#34;Zp&#34;: <a href="index.html#Zp">Zp</a>,
&#34;Zs&#34;: <a href="index.html#Zs">Zs</a>,
}</pre>
<p>
Categories is the set of Unicode category tables.
</p>
<pre>var <span id="FoldCategory">FoldCategory</span> = map[<a href="../builtin/index.html#string">string</a>]*<a href="index.html#RangeTable">RangeTable</a>{
&#34;Common&#34;: foldCommon,
&#34;Greek&#34;: foldGreek,
&#34;Inherited&#34;: foldInherited,
&#34;L&#34;: foldL,
&#34;Ll&#34;: foldLl,
&#34;Lt&#34;: foldLt,
&#34;Lu&#34;: foldLu,
&#34;M&#34;: foldM,
&#34;Mn&#34;: foldMn,
}</pre>
<p>
FoldCategory maps a category name to a table of
code points outside the category that are equivalent under
simple case folding to code points inside the category.
If there is no entry for a category name, there are no such points.
</p>
<pre>var <span id="FoldScript">FoldScript</span> = map[<a href="../builtin/index.html#string">string</a>]*<a href="index.html#RangeTable">RangeTable</a>{}</pre>
<p>
FoldScript maps a script name to a table of
code points outside the script that are equivalent under
simple case folding to code points inside the script.
If there is no entry for a script name, there are no such points.
</p>
<pre>var <span id="GraphicRanges">GraphicRanges</span> = []*<a href="index.html#RangeTable">RangeTable</a>{
<a href="index.html#L">L</a>, <a href="index.html#M">M</a>, <a href="index.html#N">N</a>, <a href="index.html#P">P</a>, <a href="index.html#S">S</a>, <a href="index.html#Zs">Zs</a>,
}</pre>
<p>
GraphicRanges defines the set of graphic characters according to Unicode.
</p>
<pre>var <span id="PrintRanges">PrintRanges</span> = []*<a href="index.html#RangeTable">RangeTable</a>{
<a href="index.html#L">L</a>, <a href="index.html#M">M</a>, <a href="index.html#N">N</a>, <a href="index.html#P">P</a>, <a href="index.html#S">S</a>,
}</pre>
<p>
PrintRanges defines the set of printable characters according to Go.
ASCII space, U+0020, is handled separately.
</p>
<pre>var <span id="Properties">Properties</span> = map[<a href="../builtin/index.html#string">string</a>]*<a href="index.html#RangeTable">RangeTable</a>{
&#34;ASCII_Hex_Digit&#34;: <a href="index.html#ASCII_Hex_Digit">ASCII_Hex_Digit</a>,
&#34;Bidi_Control&#34;: <a href="index.html#Bidi_Control">Bidi_Control</a>,
&#34;Dash&#34;: <a href="index.html#Dash">Dash</a>,
&#34;Deprecated&#34;: <a href="index.html#Deprecated">Deprecated</a>,
&#34;Diacritic&#34;: <a href="index.html#Diacritic">Diacritic</a>,
&#34;Extender&#34;: <a href="index.html#Extender">Extender</a>,
&#34;Hex_Digit&#34;: <a href="index.html#Hex_Digit">Hex_Digit</a>,
&#34;Hyphen&#34;: <a href="index.html#Hyphen">Hyphen</a>,
&#34;IDS_Binary_Operator&#34;: <a href="index.html#IDS_Binary_Operator">IDS_Binary_Operator</a>,
&#34;IDS_Trinary_Operator&#34;: <a href="index.html#IDS_Trinary_Operator">IDS_Trinary_Operator</a>,
&#34;Ideographic&#34;: <a href="index.html#Ideographic">Ideographic</a>,
&#34;Join_Control&#34;: <a href="index.html#Join_Control">Join_Control</a>,
&#34;Logical_Order_Exception&#34;: <a href="index.html#Logical_Order_Exception">Logical_Order_Exception</a>,
&#34;Noncharacter_Code_Point&#34;: <a href="index.html#Noncharacter_Code_Point">Noncharacter_Code_Point</a>,
&#34;Other_Alphabetic&#34;: <a href="index.html#Other_Alphabetic">Other_Alphabetic</a>,
&#34;Other_Default_Ignorable_Code_Point&#34;: <a href="index.html#Other_Default_Ignorable_Code_Point">Other_Default_Ignorable_Code_Point</a>,
&#34;Other_Grapheme_Extend&#34;: <a href="index.html#Other_Grapheme_Extend">Other_Grapheme_Extend</a>,
&#34;Other_ID_Continue&#34;: <a href="index.html#Other_ID_Continue">Other_ID_Continue</a>,
&#34;Other_ID_Start&#34;: <a href="index.html#Other_ID_Start">Other_ID_Start</a>,
&#34;Other_Lowercase&#34;: <a href="index.html#Other_Lowercase">Other_Lowercase</a>,
&#34;Other_Math&#34;: <a href="index.html#Other_Math">Other_Math</a>,
&#34;Other_Uppercase&#34;: <a href="index.html#Other_Uppercase">Other_Uppercase</a>,
&#34;Pattern_Syntax&#34;: <a href="index.html#Pattern_Syntax">Pattern_Syntax</a>,
&#34;Pattern_White_Space&#34;: <a href="index.html#Pattern_White_Space">Pattern_White_Space</a>,
&#34;Quotation_Mark&#34;: <a href="index.html#Quotation_Mark">Quotation_Mark</a>,
&#34;Radical&#34;: <a href="index.html#Radical">Radical</a>,
&#34;STerm&#34;: <a href="index.html#STerm">STerm</a>,
&#34;Soft_Dotted&#34;: <a href="index.html#Soft_Dotted">Soft_Dotted</a>,
&#34;Terminal_Punctuation&#34;: <a href="index.html#Terminal_Punctuation">Terminal_Punctuation</a>,
&#34;Unified_Ideograph&#34;: <a href="index.html#Unified_Ideograph">Unified_Ideograph</a>,
&#34;Variation_Selector&#34;: <a href="index.html#Variation_Selector">Variation_Selector</a>,
&#34;White_Space&#34;: <a href="index.html#White_Space">White_Space</a>,
}</pre>
<p>
Properties is the set of Unicode property tables.
</p>
<pre>var <span id="Scripts">Scripts</span> = map[<a href="../builtin/index.html#string">string</a>]*<a href="index.html#RangeTable">RangeTable</a>{
&#34;Ahom&#34;: <a href="index.html#Ahom">Ahom</a>,
&#34;Anatolian_Hieroglyphs&#34;: <a href="index.html#Anatolian_Hieroglyphs">Anatolian_Hieroglyphs</a>,
&#34;Arabic&#34;: <a href="index.html#Arabic">Arabic</a>,
&#34;Armenian&#34;: <a href="index.html#Armenian">Armenian</a>,
&#34;Avestan&#34;: <a href="index.html#Avestan">Avestan</a>,
&#34;Balinese&#34;: <a href="index.html#Balinese">Balinese</a>,
&#34;Bamum&#34;: <a href="index.html#Bamum">Bamum</a>,
&#34;Bassa_Vah&#34;: <a href="index.html#Bassa_Vah">Bassa_Vah</a>,
&#34;Batak&#34;: <a href="index.html#Batak">Batak</a>,
&#34;Bengali&#34;: <a href="index.html#Bengali">Bengali</a>,
&#34;Bopomofo&#34;: <a href="index.html#Bopomofo">Bopomofo</a>,
&#34;Brahmi&#34;: <a href="index.html#Brahmi">Brahmi</a>,
&#34;Braille&#34;: <a href="index.html#Braille">Braille</a>,
&#34;Buginese&#34;: <a href="index.html#Buginese">Buginese</a>,
&#34;Buhid&#34;: <a href="index.html#Buhid">Buhid</a>,
&#34;Canadian_Aboriginal&#34;: <a href="index.html#Canadian_Aboriginal">Canadian_Aboriginal</a>,
&#34;Carian&#34;: <a href="index.html#Carian">Carian</a>,
&#34;Caucasian_Albanian&#34;: <a href="index.html#Caucasian_Albanian">Caucasian_Albanian</a>,
&#34;Chakma&#34;: <a href="index.html#Chakma">Chakma</a>,
&#34;Cham&#34;: <a href="index.html#Cham">Cham</a>,
&#34;Cherokee&#34;: <a href="index.html#Cherokee">Cherokee</a>,
&#34;Common&#34;: <a href="index.html#Common">Common</a>,
&#34;Coptic&#34;: <a href="index.html#Coptic">Coptic</a>,
&#34;Cuneiform&#34;: <a href="index.html#Cuneiform">Cuneiform</a>,
&#34;Cypriot&#34;: <a href="index.html#Cypriot">Cypriot</a>,
&#34;Cyrillic&#34;: <a href="index.html#Cyrillic">Cyrillic</a>,
&#34;Deseret&#34;: <a href="index.html#Deseret">Deseret</a>,
&#34;Devanagari&#34;: <a href="index.html#Devanagari">Devanagari</a>,
&#34;Duployan&#34;: <a href="index.html#Duployan">Duployan</a>,
&#34;Egyptian_Hieroglyphs&#34;: <a href="index.html#Egyptian_Hieroglyphs">Egyptian_Hieroglyphs</a>,
&#34;Elbasan&#34;: <a href="index.html#Elbasan">Elbasan</a>,
&#34;Ethiopic&#34;: <a href="index.html#Ethiopic">Ethiopic</a>,
&#34;Georgian&#34;: <a href="index.html#Georgian">Georgian</a>,
&#34;Glagolitic&#34;: <a href="index.html#Glagolitic">Glagolitic</a>,
&#34;Gothic&#34;: <a href="index.html#Gothic">Gothic</a>,
&#34;Grantha&#34;: <a href="index.html#Grantha">Grantha</a>,
&#34;Greek&#34;: <a href="index.html#Greek">Greek</a>,
&#34;Gujarati&#34;: <a href="index.html#Gujarati">Gujarati</a>,
&#34;Gurmukhi&#34;: <a href="index.html#Gurmukhi">Gurmukhi</a>,
&#34;Han&#34;: <a href="index.html#Han">Han</a>,
&#34;Hangul&#34;: <a href="index.html#Hangul">Hangul</a>,
&#34;Hanunoo&#34;: <a href="index.html#Hanunoo">Hanunoo</a>,
&#34;Hatran&#34;: <a href="index.html#Hatran">Hatran</a>,
&#34;Hebrew&#34;: <a href="index.html#Hebrew">Hebrew</a>,
&#34;Hiragana&#34;: <a href="index.html#Hiragana">Hiragana</a>,
&#34;Imperial_Aramaic&#34;: <a href="index.html#Imperial_Aramaic">Imperial_Aramaic</a>,
&#34;Inherited&#34;: <a href="index.html#Inherited">Inherited</a>,
&#34;Inscriptional_Pahlavi&#34;: <a href="index.html#Inscriptional_Pahlavi">Inscriptional_Pahlavi</a>,
&#34;Inscriptional_Parthian&#34;: <a href="index.html#Inscriptional_Parthian">Inscriptional_Parthian</a>,
&#34;Javanese&#34;: <a href="index.html#Javanese">Javanese</a>,
&#34;Kaithi&#34;: <a href="index.html#Kaithi">Kaithi</a>,
&#34;Kannada&#34;: <a href="index.html#Kannada">Kannada</a>,
&#34;Katakana&#34;: <a href="index.html#Katakana">Katakana</a>,
&#34;Kayah_Li&#34;: <a href="index.html#Kayah_Li">Kayah_Li</a>,
&#34;Kharoshthi&#34;: <a href="index.html#Kharoshthi">Kharoshthi</a>,
&#34;Khmer&#34;: <a href="index.html#Khmer">Khmer</a>,
&#34;Khojki&#34;: <a href="index.html#Khojki">Khojki</a>,
&#34;Khudawadi&#34;: <a href="index.html#Khudawadi">Khudawadi</a>,
&#34;Lao&#34;: <a href="index.html#Lao">Lao</a>,
&#34;Latin&#34;: <a href="index.html#Latin">Latin</a>,
&#34;Lepcha&#34;: <a href="index.html#Lepcha">Lepcha</a>,
&#34;Limbu&#34;: <a href="index.html#Limbu">Limbu</a>,
&#34;Linear_A&#34;: <a href="index.html#Linear_A">Linear_A</a>,
&#34;Linear_B&#34;: <a href="index.html#Linear_B">Linear_B</a>,
&#34;Lisu&#34;: <a href="index.html#Lisu">Lisu</a>,
&#34;Lycian&#34;: <a href="index.html#Lycian">Lycian</a>,
&#34;Lydian&#34;: <a href="index.html#Lydian">Lydian</a>,
&#34;Mahajani&#34;: <a href="index.html#Mahajani">Mahajani</a>,
&#34;Malayalam&#34;: <a href="index.html#Malayalam">Malayalam</a>,
&#34;Mandaic&#34;: <a href="index.html#Mandaic">Mandaic</a>,
&#34;Manichaean&#34;: <a href="index.html#Manichaean">Manichaean</a>,
&#34;Meetei_Mayek&#34;: <a href="index.html#Meetei_Mayek">Meetei_Mayek</a>,
&#34;Mende_Kikakui&#34;: <a href="index.html#Mende_Kikakui">Mende_Kikakui</a>,
&#34;Meroitic_Cursive&#34;: <a href="index.html#Meroitic_Cursive">Meroitic_Cursive</a>,
&#34;Meroitic_Hieroglyphs&#34;: <a href="index.html#Meroitic_Hieroglyphs">Meroitic_Hieroglyphs</a>,
&#34;Miao&#34;: <a href="index.html#Miao">Miao</a>,
&#34;Modi&#34;: <a href="index.html#Modi">Modi</a>,
&#34;Mongolian&#34;: <a href="index.html#Mongolian">Mongolian</a>,
&#34;Mro&#34;: <a href="index.html#Mro">Mro</a>,
&#34;Multani&#34;: <a href="index.html#Multani">Multani</a>,
&#34;Myanmar&#34;: <a href="index.html#Myanmar">Myanmar</a>,
&#34;Nabataean&#34;: <a href="index.html#Nabataean">Nabataean</a>,
&#34;New_Tai_Lue&#34;: <a href="index.html#New_Tai_Lue">New_Tai_Lue</a>,
&#34;Nko&#34;: <a href="index.html#Nko">Nko</a>,
&#34;Ogham&#34;: <a href="index.html#Ogham">Ogham</a>,
&#34;Ol_Chiki&#34;: <a href="index.html#Ol_Chiki">Ol_Chiki</a>,
&#34;Old_Hungarian&#34;: <a href="index.html#Old_Hungarian">Old_Hungarian</a>,
&#34;Old_Italic&#34;: <a href="index.html#Old_Italic">Old_Italic</a>,
&#34;Old_North_Arabian&#34;: <a href="index.html#Old_North_Arabian">Old_North_Arabian</a>,
&#34;Old_Permic&#34;: <a href="index.html#Old_Permic">Old_Permic</a>,
&#34;Old_Persian&#34;: <a href="index.html#Old_Persian">Old_Persian</a>,
&#34;Old_South_Arabian&#34;: <a href="index.html#Old_South_Arabian">Old_South_Arabian</a>,
&#34;Old_Turkic&#34;: <a href="index.html#Old_Turkic">Old_Turkic</a>,
&#34;Oriya&#34;: <a href="index.html#Oriya">Oriya</a>,
&#34;Osmanya&#34;: <a href="index.html#Osmanya">Osmanya</a>,
&#34;Pahawh_Hmong&#34;: <a href="index.html#Pahawh_Hmong">Pahawh_Hmong</a>,
&#34;Palmyrene&#34;: <a href="index.html#Palmyrene">Palmyrene</a>,
&#34;Pau_Cin_Hau&#34;: <a href="index.html#Pau_Cin_Hau">Pau_Cin_Hau</a>,
&#34;Phags_Pa&#34;: <a href="index.html#Phags_Pa">Phags_Pa</a>,
&#34;Phoenician&#34;: <a href="index.html#Phoenician">Phoenician</a>,
&#34;Psalter_Pahlavi&#34;: <a href="index.html#Psalter_Pahlavi">Psalter_Pahlavi</a>,
&#34;Rejang&#34;: <a href="index.html#Rejang">Rejang</a>,
&#34;Runic&#34;: <a href="index.html#Runic">Runic</a>,
&#34;Samaritan&#34;: <a href="index.html#Samaritan">Samaritan</a>,
&#34;Saurashtra&#34;: <a href="index.html#Saurashtra">Saurashtra</a>,
&#34;Sharada&#34;: <a href="index.html#Sharada">Sharada</a>,
&#34;Shavian&#34;: <a href="index.html#Shavian">Shavian</a>,
&#34;Siddham&#34;: <a href="index.html#Siddham">Siddham</a>,
&#34;SignWriting&#34;: <a href="index.html#SignWriting">SignWriting</a>,
&#34;Sinhala&#34;: <a href="index.html#Sinhala">Sinhala</a>,
&#34;Sora_Sompeng&#34;: <a href="index.html#Sora_Sompeng">Sora_Sompeng</a>,
&#34;Sundanese&#34;: <a href="index.html#Sundanese">Sundanese</a>,
&#34;Syloti_Nagri&#34;: <a href="index.html#Syloti_Nagri">Syloti_Nagri</a>,
&#34;Syriac&#34;: <a href="index.html#Syriac">Syriac</a>,
&#34;Tagalog&#34;: <a href="index.html#Tagalog">Tagalog</a>,
&#34;Tagbanwa&#34;: <a href="index.html#Tagbanwa">Tagbanwa</a>,
&#34;Tai_Le&#34;: <a href="index.html#Tai_Le">Tai_Le</a>,
&#34;Tai_Tham&#34;: <a href="index.html#Tai_Tham">Tai_Tham</a>,
&#34;Tai_Viet&#34;: <a href="index.html#Tai_Viet">Tai_Viet</a>,
&#34;Takri&#34;: <a href="index.html#Takri">Takri</a>,
&#34;Tamil&#34;: <a href="index.html#Tamil">Tamil</a>,
&#34;Telugu&#34;: <a href="index.html#Telugu">Telugu</a>,
&#34;Thaana&#34;: <a href="index.html#Thaana">Thaana</a>,
&#34;Thai&#34;: <a href="index.html#Thai">Thai</a>,
&#34;Tibetan&#34;: <a href="index.html#Tibetan">Tibetan</a>,
&#34;Tifinagh&#34;: <a href="index.html#Tifinagh">Tifinagh</a>,
&#34;Tirhuta&#34;: <a href="index.html#Tirhuta">Tirhuta</a>,
&#34;Ugaritic&#34;: <a href="index.html#Ugaritic">Ugaritic</a>,
&#34;Vai&#34;: <a href="index.html#Vai">Vai</a>,
&#34;Warang_Citi&#34;: <a href="index.html#Warang_Citi">Warang_Citi</a>,
&#34;Yi&#34;: <a href="index.html#Yi">Yi</a>,
}</pre>
<p>
Scripts is the set of Unicode script tables.
</p>
<h2 id="In">func <a href="http://localhost:6060/src/unicode/graphic.go?s=2419:2462#L59">In</a></h2>
<pre>func In(r <a href="../builtin/index.html#rune">rune</a>, ranges ...*<a href="index.html#RangeTable">RangeTable</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
In reports whether the rune is a member of one of the ranges.
</p>
<h2 id="Is">func <a href="http://localhost:6060/src/unicode/letter.go?s=4552:4594#L148">Is</a></h2>
<pre>func Is(rangeTab *<a href="index.html#RangeTable">RangeTable</a>, r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
Is reports whether the rune is in the specified table of ranges.
</p>
<h2 id="IsControl">func <a href="http://localhost:6060/src/unicode/graphic.go?s=2734:2761#L71">IsControl</a></h2>
<pre>func IsControl(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsControl reports whether the rune is a control character.
The C (Other) Unicode category includes more code points
such as surrogates; use Is(C, r) to test for them.
</p>
<h2 id="IsDigit">func <a href="http://localhost:6060/src/unicode/digit.go?s=233:258#L1">IsDigit</a></h2>
<pre>func IsDigit(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsDigit reports whether the rune is a decimal digit.
</p>
<h2 id="IsGraphic">func <a href="http://localhost:6060/src/unicode/graphic.go?s=1301:1328#L26">IsGraphic</a></h2>
<pre>func IsGraphic(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsGraphic reports whether the rune is defined as a Graphic by Unicode.
Such characters include letters, marks, numbers, punctuation, symbols, and
spaces, from categories L, M, N, P, S, Zs.
</p>
<h2 id="IsLetter">func <a href="http://localhost:6060/src/unicode/graphic.go?s=2958:2984#L80">IsLetter</a></h2>
<pre>func IsLetter(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsLetter reports whether the rune is a letter (category L).
</p>
<h2 id="IsLower">func <a href="http://localhost:6060/src/unicode/letter.go?s=5426:5451#L182">IsLower</a></h2>
<pre>func IsLower(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsLower reports whether the rune is a lower case letter.
</p>
<h2 id="IsMark">func <a href="http://localhost:6060/src/unicode/graphic.go?s=3171:3195#L88">IsMark</a></h2>
<pre>func IsMark(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsMark reports whether the rune is a mark character (category M).
</p>
<h2 id="IsNumber">func <a href="http://localhost:6060/src/unicode/graphic.go?s=3343:3369#L94">IsNumber</a></h2>
<pre>func IsNumber(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsNumber reports whether the rune is a number (category N).
</p>
<h2 id="IsOneOf">func <a href="http://localhost:6060/src/unicode/graphic.go?s=2211:2258#L49">IsOneOf</a></h2>
<pre>func IsOneOf(ranges []*<a href="index.html#RangeTable">RangeTable</a>, r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsOneOf reports whether the rune is a member of one of the ranges.
The function &#34;In&#34; provides a nicer signature and should be used in preference to IsOneOf.
</p>
<h2 id="IsPrint">func <a href="http://localhost:6060/src/unicode/graphic.go?s=1917:1942#L40">IsPrint</a></h2>
<pre>func IsPrint(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsPrint reports whether the rune is defined as printable by Go. Such
characters include letters, marks, numbers, punctuation, symbols, and the
ASCII space character, from categories L, M, N, P, S and the ASCII space
character. This categorization is the same as IsGraphic except that the
only spacing character is ASCII space, U+0020.
</p>
<h2 id="IsPunct">func <a href="http://localhost:6060/src/unicode/graphic.go?s=3569:3594#L103">IsPunct</a></h2>
<pre>func IsPunct(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsPunct reports whether the rune is a Unicode punctuation character
(category P).
</p>
<h2 id="IsSpace">func <a href="http://localhost:6060/src/unicode/graphic.go?s=3998:4023#L116">IsSpace</a></h2>
<pre>func IsSpace(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsSpace reports whether the rune is a space character as defined
by Unicode&#39;s White Space property; in the Latin-1 space
this is
</p>
<pre>&#39;\t&#39;, &#39;\n&#39;, &#39;\v&#39;, &#39;\f&#39;, &#39;\r&#39;, &#39; &#39;, U+0085 (NEL), U+00A0 (NBSP).
</pre>
<p>
Other definitions of spacing characters are set by category
Z and property Pattern_White_Space.
</p>
<h2 id="IsSymbol">func <a href="http://localhost:6060/src/unicode/graphic.go?s=4321:4347#L129">IsSymbol</a></h2>
<pre>func IsSymbol(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsSymbol reports whether the rune is a symbolic character.
</p>
<h2 id="IsTitle">func <a href="http://localhost:6060/src/unicode/letter.go?s=5658:5683#L191">IsTitle</a></h2>
<pre>func IsTitle(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsTitle reports whether the rune is a title case letter.
</p>
<h2 id="IsUpper">func <a href="http://localhost:6060/src/unicode/letter.go?s=5194:5219#L173">IsUpper</a></h2>
<pre>func IsUpper(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#bool">bool</a></pre>
<p>
IsUpper reports whether the rune is an upper case letter.
</p>
<h2 id="SimpleFold">func <a href="http://localhost:6060/src/unicode/letter.go?s=9135:9163#L324">SimpleFold</a></h2>
<pre>func SimpleFold(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#rune">rune</a></pre>
<p>
SimpleFold iterates over Unicode code points equivalent under
the Unicode-defined simple case folding. Among the code points
equivalent to rune (including rune itself), SimpleFold returns the
smallest rune &gt; r if one exists, or else the smallest rune &gt;= 0.
</p>
<p>
For example:
</p>
<pre>SimpleFold(&#39;A&#39;) = &#39;a&#39;
SimpleFold(&#39;a&#39;) = &#39;A&#39;
SimpleFold(&#39;K&#39;) = &#39;k&#39;
SimpleFold(&#39;k&#39;) = &#39;\u212A&#39; (Kelvin symbol, K)
SimpleFold(&#39;\u212A&#39;) = &#39;K&#39;
SimpleFold(&#39;1&#39;) = &#39;1&#39;
</pre>
<div id="example_SimpleFold" class="toggle">
<div class="collapsed">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
</div>
<div class="expanded">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
<p>Code:</p>
<pre class="code">fmt.Printf(&#34;%#U\n&#34;, unicode.SimpleFold(&#39;A&#39;)) <span class="comment">// &#39;a&#39;</span>
fmt.Printf(&#34;%#U\n&#34;, unicode.SimpleFold(&#39;a&#39;)) <span class="comment">// &#39;A&#39;</span>
fmt.Printf(&#34;%#U\n&#34;, unicode.SimpleFold(&#39;K&#39;)) <span class="comment">// &#39;k&#39;</span>
fmt.Printf(&#34;%#U\n&#34;, unicode.SimpleFold(&#39;k&#39;)) <span class="comment">// &#39;\u212A&#39; (Kelvin symbol, K)</span>
fmt.Printf(&#34;%#U\n&#34;, unicode.SimpleFold(&#39;\u212A&#39;)) <span class="comment">// &#39;K&#39;</span>
fmt.Printf(&#34;%#U\n&#34;, unicode.SimpleFold(&#39;1&#39;)) <span class="comment">// &#39;1&#39;</span>
<span class="comment"></pre>
<p>Output:</p>
<pre class="output">U+0061 &#39;a&#39;
U+0041 &#39;A&#39;
U+006B &#39;k&#39;
U+212A &#39;&#39;
U+004B &#39;K&#39;
U+0031 &#39;1&#39;
</pre>
</div>
</div>
<h2 id="To">func <a href="http://localhost:6060/src/unicode/letter.go?s=7021:7052#L236">To</a></h2>
<pre>func To(_case <a href="../builtin/index.html#int">int</a>, r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#rune">rune</a></pre>
<p>
To maps the rune to the specified case: UpperCase, LowerCase, or TitleCase.
</p>
<div id="example_To" class="toggle">
<div class="collapsed">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
</div>
<div class="expanded">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
<p>Code:</p>
<pre class="code">const lcG = &#39;g&#39;
fmt.Printf(&#34;%#U\n&#34;, unicode.To(unicode.UpperCase, lcG))
fmt.Printf(&#34;%#U\n&#34;, unicode.To(unicode.LowerCase, lcG))
fmt.Printf(&#34;%#U\n&#34;, unicode.To(unicode.TitleCase, lcG))
const ucG = &#39;G&#39;
fmt.Printf(&#34;%#U\n&#34;, unicode.To(unicode.UpperCase, ucG))
fmt.Printf(&#34;%#U\n&#34;, unicode.To(unicode.LowerCase, ucG))
fmt.Printf(&#34;%#U\n&#34;, unicode.To(unicode.TitleCase, ucG))
<span class="comment"></pre>
<p>Output:</p>
<pre class="output">U+0047 &#39;G&#39;
U+0067 &#39;g&#39;
U+0047 &#39;G&#39;
U+0047 &#39;G&#39;
U+0067 &#39;g&#39;
U+0047 &#39;G&#39;
</pre>
</div>
</div>
<h2 id="ToLower">func <a href="http://localhost:6060/src/unicode/letter.go?s=7311:7336#L252">ToLower</a></h2>
<pre>func ToLower(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#rune">rune</a></pre>
<p>
ToLower maps the rune to lower case.
</p>
<div id="example_ToLower" class="toggle">
<div class="collapsed">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
</div>
<div class="expanded">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
<p>Code:</p>
<pre class="code">const ucG = &#39;G&#39;
fmt.Printf(&#34;%#U\n&#34;, unicode.ToLower(ucG))
<span class="comment"></pre>
<p>Output:</p>
<pre class="output">U+0067 &#39;g&#39;
</pre>
</div>
</div>
<h2 id="ToTitle">func <a href="http://localhost:6060/src/unicode/letter.go?s=7491:7516#L263">ToTitle</a></h2>
<pre>func ToTitle(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#rune">rune</a></pre>
<p>
ToTitle maps the rune to title case.
</p>
<div id="example_ToTitle" class="toggle">
<div class="collapsed">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
</div>
<div class="expanded">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
<p>Code:</p>
<pre class="code">const ucG = &#39;g&#39;
fmt.Printf(&#34;%#U\n&#34;, unicode.ToTitle(ucG))
<span class="comment"></pre>
<p>Output:</p>
<pre class="output">U+0047 &#39;G&#39;
</pre>
</div>
</div>
<h2 id="ToUpper">func <a href="http://localhost:6060/src/unicode/letter.go?s=7131:7156#L241">ToUpper</a></h2>
<pre>func ToUpper(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#rune">rune</a></pre>
<p>
ToUpper maps the rune to upper case.
</p>
<div id="example_ToUpper" class="toggle">
<div class="collapsed">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
</div>
<div class="expanded">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
<p>Code:</p>
<pre class="code">const ucG = &#39;g&#39;
fmt.Printf(&#34;%#U\n&#34;, unicode.ToUpper(ucG))
<span class="comment"></pre>
<p>Output:</p>
<pre class="output">U+0047 &#39;G&#39;
</pre>
</div>
</div>
<h2 id="CaseRange">type <a href="http://localhost:6060/src/unicode/letter.go?s=2305:2367#L47">CaseRange</a></h2>
<pre>type CaseRange struct {
Lo <a href="../builtin/index.html#uint32">uint32</a>
Hi <a href="../builtin/index.html#uint32">uint32</a>
Delta d
}</pre>
<p>
CaseRange represents a range of Unicode code points for simple (one
code point to one code point) case conversion.
The range runs from Lo to Hi inclusive, with a fixed stride of 1. Deltas
are the number to add to the code point to reach the code point for a
different case for that character. They may be negative. If zero, it
means the character is in the corresponding case. There is a special
case representing sequences of alternating corresponding Upper and Lower
pairs. It appears with a fixed Delta of
</p>
<pre>{UpperLower, UpperLower, UpperLower}
</pre>
<p>
The constant UpperLower has an otherwise impossible delta value.
</p>
<h2 id="Range16">type <a href="http://localhost:6060/src/unicode/letter.go?s=1285:1353#L22">Range16</a></h2>
<pre>type Range16 struct {
Lo <a href="../builtin/index.html#uint16">uint16</a>
Hi <a href="../builtin/index.html#uint16">uint16</a>
Stride <a href="../builtin/index.html#uint16">uint16</a>
}</pre>
<p>
Range16 represents of a range of 16-bit Unicode code points. The range runs from Lo to Hi
inclusive and has the specified stride.
</p>
<h2 id="Range32">type <a href="http://localhost:6060/src/unicode/letter.go?s=1590:1658#L31">Range32</a></h2>
<pre>type Range32 struct {
Lo <a href="../builtin/index.html#uint32">uint32</a>
Hi <a href="../builtin/index.html#uint32">uint32</a>
Stride <a href="../builtin/index.html#uint32">uint32</a>
}</pre>
<p>
Range32 represents of a range of Unicode code points and is used when one or
more of the values will not fit in 16 bits. The range runs from Lo to Hi
inclusive and has the specified stride. Lo and Hi must always be &gt;= 1&lt;&lt;16.
</p>
<h2 id="RangeTable">type <a href="http://localhost:6060/src/unicode/letter.go?s=1008:1146#L14">RangeTable</a></h2>
<pre>type RangeTable struct {
R16 []<a href="index.html#Range16">Range16</a>
R32 []<a href="index.html#Range32">Range32</a>
LatinOffset <a href="../builtin/index.html#int">int</a> <span class="comment">// number of entries in R16 with Hi &lt;= MaxLatin1</span>
}</pre>
<p>
RangeTable defines a set of Unicode code points by listing the ranges of
code points within the set. The ranges are listed in two slices
to save space: a slice of 16-bit ranges and a slice of 32-bit ranges.
The two slices must be in sorted order and non-overlapping.
Also, R32 should contain only values &gt;= 0x10000 (1&lt;&lt;16).
</p>
<h2 id="SpecialCase">type <a href="http://localhost:6060/src/unicode/letter.go?s=2519:2547#L55">SpecialCase</a></h2>
<pre>type SpecialCase []<a href="index.html#CaseRange">CaseRange</a></pre>
<p>
SpecialCase represents language-specific case mappings such as Turkish.
Methods of SpecialCase customize (by overriding) the standard mappings.
</p>
<pre>var <span id="AzeriCase">AzeriCase</span> <a href="index.html#SpecialCase">SpecialCase</a> = _TurkishCase</pre>
<pre>var <span id="TurkishCase">TurkishCase</span> <a href="index.html#SpecialCase">SpecialCase</a> = _TurkishCase</pre>
<div id="example_SpecialCase" class="toggle">
<div class="collapsed">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
</div>
<div class="expanded">
<p class="exampleHeading toggleButton"><span class="text">Example</span></p>
<p>Code:</p>
<pre class="code">t := unicode.TurkishCase
const lci = &#39;i&#39;
fmt.Printf(&#34;%#U\n&#34;, t.ToLower(lci))
fmt.Printf(&#34;%#U\n&#34;, t.ToTitle(lci))
fmt.Printf(&#34;%#U\n&#34;, t.ToUpper(lci))
const uci = &#39;İ&#39;
fmt.Printf(&#34;%#U\n&#34;, t.ToLower(uci))
fmt.Printf(&#34;%#U\n&#34;, t.ToTitle(uci))
fmt.Printf(&#34;%#U\n&#34;, t.ToUpper(uci))
<span class="comment"></pre>
<p>Output:</p>
<pre class="output">U+0069 &#39;i&#39;
U+0130 &#39;İ&#39;
U+0130 &#39;İ&#39;
U+0069 &#39;i&#39;
U+0130 &#39;İ&#39;
U+0130 &#39;İ&#39;
</pre>
</div>
</div>
<h3 id="SpecialCase.ToLower">func (SpecialCase) <a href="http://localhost:6060/src/unicode/letter.go?s=8196:8243#L292">ToLower</a></h3>
<pre>func (special <a href="index.html#SpecialCase">SpecialCase</a>) ToLower(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#rune">rune</a></pre>
<p>
ToLower maps the rune to lower case giving priority to the special mapping.
</p>
<h3 id="SpecialCase.ToTitle">func (SpecialCase) <a href="http://localhost:6060/src/unicode/letter.go?s=7972:8019#L283">ToTitle</a></h3>
<pre>func (special <a href="index.html#SpecialCase">SpecialCase</a>) ToTitle(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#rune">rune</a></pre>
<p>
ToTitle maps the rune to title case giving priority to the special mapping.
</p>
<h3 id="SpecialCase.ToUpper">func (SpecialCase) <a href="http://localhost:6060/src/unicode/letter.go?s=7748:7795#L274">ToUpper</a></h3>
<pre>func (special <a href="index.html#SpecialCase">SpecialCase</a>) ToUpper(r <a href="../builtin/index.html#rune">rune</a>) <a href="../builtin/index.html#rune">rune</a></pre>
<p>
ToUpper maps the rune to upper case giving priority to the special mapping.
</p>
<h2 id="pkg-note-BUG">Bugs</h2>
<ul style="list-style: none; padding: 0;">
<li><a href="http://localhost:6060/src/unicode/letter.go?s=2549:2683#L57">&#x261e;</a> There is no mechanism for full case folding, that is, for
characters that involve multiple runes in the input or output.
</li>
</ul>
<h2 id="pkg-subdirectories">Subdirectories</h2>
<div class="pkg-dir">
<table>
<tr>
<th class="pkg-name">Name</th>
<th class="pkg-synopsis">Synopsis</th>
</tr>
<tr>
<td colspan="2"><a href="http://localhost:6060/pkg/">..</a></td>
</tr>
<tr>
<td class="pkg-name" style="padding-left: 0px;">
<a href="utf16/index.html">utf16</a>
</td>
<td class="pkg-synopsis">
Package utf16 implements encoding and decoding of UTF-16 sequences.
</td>
</tr>
<tr>
<td class="pkg-name" style="padding-left: 0px;">
<a href="utf8/index.html">utf8</a>
</td>
<td class="pkg-synopsis">
Package utf8 implements functions and constants to support text encoded in UTF-8.
</td>
</tr>
</table>
</div>
<div id="footer">
Build version go1.6.<br>
Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
the content of this page is licensed under the
Creative Commons Attribution 3.0 License,
and code is licensed under a <a href="http://localhost:6060/LICENSE">BSD license</a>.<br>
<a href="http://localhost:6060/doc/tos.html">Terms of Service</a> |
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
</div>
</div><!-- .container -->
</div><!-- #page -->
<!-- TODO(adonovan): load these from <head> using "defer" attribute? -->
<script type="text/javascript" src="../../lib/godoc/jquery.js"></script>
<script type="text/javascript" src="../../lib/godoc/jquery.treeview.js"></script>
<script type="text/javascript" src="../../lib/godoc/jquery.treeview.edit.js"></script>
<script type="text/javascript" src="../../lib/godoc/godocs.js"></script>
</body>
</html>