mirror of https://github.com/matrix-org/go-neb.git
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
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">▽</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 "Is" 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 = "\b5Ὂg̀9! ℃ᾭG"
|
|
for _, c := range mixed {
|
|
fmt.Printf("For %q:\n", c)
|
|
if unicode.IsControl(c) {
|
|
fmt.Println("\tis control rune")
|
|
}
|
|
if unicode.IsDigit(c) {
|
|
fmt.Println("\tis digit rune")
|
|
}
|
|
if unicode.IsGraphic(c) {
|
|
fmt.Println("\tis graphic rune")
|
|
}
|
|
if unicode.IsLetter(c) {
|
|
fmt.Println("\tis letter rune")
|
|
}
|
|
if unicode.IsLower(c) {
|
|
fmt.Println("\tis lower case rune")
|
|
}
|
|
if unicode.IsMark(c) {
|
|
fmt.Println("\tis mark rune")
|
|
}
|
|
if unicode.IsNumber(c) {
|
|
fmt.Println("\tis number rune")
|
|
}
|
|
if unicode.IsPrint(c) {
|
|
fmt.Println("\tis printable rune")
|
|
}
|
|
if !unicode.IsPrint(c) {
|
|
fmt.Println("\tis not printable rune")
|
|
}
|
|
if unicode.IsPunct(c) {
|
|
fmt.Println("\tis punct rune")
|
|
}
|
|
if unicode.IsSpace(c) {
|
|
fmt.Println("\tis space rune")
|
|
}
|
|
if unicode.IsSymbol(c) {
|
|
fmt.Println("\tis symbol rune")
|
|
}
|
|
if unicode.IsTitle(c) {
|
|
fmt.Println("\tis title case rune")
|
|
}
|
|
if unicode.IsUpper(c) {
|
|
fmt.Println("\tis upper case rune")
|
|
}
|
|
}
|
|
|
|
<span class="comment"></pre>
|
|
|
|
<p>Output:</p>
|
|
<pre class="output">For '\b':
|
|
is control rune
|
|
is not printable rune
|
|
For '5':
|
|
is digit rune
|
|
is graphic rune
|
|
is number rune
|
|
is printable rune
|
|
For 'Ὂ':
|
|
is graphic rune
|
|
is letter rune
|
|
is printable rune
|
|
is upper case rune
|
|
For 'g':
|
|
is graphic rune
|
|
is letter rune
|
|
is lower case rune
|
|
is printable rune
|
|
For '̀':
|
|
is graphic rune
|
|
is mark rune
|
|
is printable rune
|
|
For '9':
|
|
is digit rune
|
|
is graphic rune
|
|
is number rune
|
|
is printable rune
|
|
For '!':
|
|
is graphic rune
|
|
is printable rune
|
|
is punct rune
|
|
For ' ':
|
|
is graphic rune
|
|
is printable rune
|
|
is space rune
|
|
For '℃':
|
|
is graphic rune
|
|
is printable rune
|
|
is symbol rune
|
|
For 'ᾭ':
|
|
is graphic rune
|
|
is letter rune
|
|
is printable rune
|
|
is title case rune
|
|
For 'G':
|
|
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> <a href="index.html#SpecialCase.ToLower">func (special SpecialCase) ToLower(r rune) rune</a></dd>
|
|
|
|
|
|
<dd> <a href="index.html#SpecialCase.ToTitle">func (special SpecialCase) ToTitle(r rune) rune</a></dd>
|
|
|
|
|
|
<dd> <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—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> = '\U0010FFFF' <span class="comment">// Maximum valid Unicode code point.</span>
|
|
<span id="ReplacementChar">ReplacementChar</span> = '\uFFFD' <span class="comment">// Represents invalid code points.</span>
|
|
<span id="MaxASCII">MaxASCII</span> = '\u007F' <span class="comment">// maximum ASCII value.</span>
|
|
<span id="MaxLatin1">MaxLatin1</span> = '\u00FF' <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> = "8.0.0"</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 "decimal digit" 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>{
|
|
"C": <a href="index.html#C">C</a>,
|
|
"Cc": <a href="index.html#Cc">Cc</a>,
|
|
"Cf": <a href="index.html#Cf">Cf</a>,
|
|
"Co": <a href="index.html#Co">Co</a>,
|
|
"Cs": <a href="index.html#Cs">Cs</a>,
|
|
"L": <a href="index.html#L">L</a>,
|
|
"Ll": <a href="index.html#Ll">Ll</a>,
|
|
"Lm": <a href="index.html#Lm">Lm</a>,
|
|
"Lo": <a href="index.html#Lo">Lo</a>,
|
|
"Lt": <a href="index.html#Lt">Lt</a>,
|
|
"Lu": <a href="index.html#Lu">Lu</a>,
|
|
"M": <a href="index.html#M">M</a>,
|
|
"Mc": <a href="index.html#Mc">Mc</a>,
|
|
"Me": <a href="index.html#Me">Me</a>,
|
|
"Mn": <a href="index.html#Mn">Mn</a>,
|
|
"N": <a href="index.html#N">N</a>,
|
|
"Nd": <a href="index.html#Nd">Nd</a>,
|
|
"Nl": <a href="index.html#Nl">Nl</a>,
|
|
"No": <a href="index.html#No">No</a>,
|
|
"P": <a href="index.html#P">P</a>,
|
|
"Pc": <a href="index.html#Pc">Pc</a>,
|
|
"Pd": <a href="index.html#Pd">Pd</a>,
|
|
"Pe": <a href="index.html#Pe">Pe</a>,
|
|
"Pf": <a href="index.html#Pf">Pf</a>,
|
|
"Pi": <a href="index.html#Pi">Pi</a>,
|
|
"Po": <a href="index.html#Po">Po</a>,
|
|
"Ps": <a href="index.html#Ps">Ps</a>,
|
|
"S": <a href="index.html#S">S</a>,
|
|
"Sc": <a href="index.html#Sc">Sc</a>,
|
|
"Sk": <a href="index.html#Sk">Sk</a>,
|
|
"Sm": <a href="index.html#Sm">Sm</a>,
|
|
"So": <a href="index.html#So">So</a>,
|
|
"Z": <a href="index.html#Z">Z</a>,
|
|
"Zl": <a href="index.html#Zl">Zl</a>,
|
|
"Zp": <a href="index.html#Zp">Zp</a>,
|
|
"Zs": <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>{
|
|
"Common": foldCommon,
|
|
"Greek": foldGreek,
|
|
"Inherited": foldInherited,
|
|
"L": foldL,
|
|
"Ll": foldLl,
|
|
"Lt": foldLt,
|
|
"Lu": foldLu,
|
|
"M": foldM,
|
|
"Mn": 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>{
|
|
"ASCII_Hex_Digit": <a href="index.html#ASCII_Hex_Digit">ASCII_Hex_Digit</a>,
|
|
"Bidi_Control": <a href="index.html#Bidi_Control">Bidi_Control</a>,
|
|
"Dash": <a href="index.html#Dash">Dash</a>,
|
|
"Deprecated": <a href="index.html#Deprecated">Deprecated</a>,
|
|
"Diacritic": <a href="index.html#Diacritic">Diacritic</a>,
|
|
"Extender": <a href="index.html#Extender">Extender</a>,
|
|
"Hex_Digit": <a href="index.html#Hex_Digit">Hex_Digit</a>,
|
|
"Hyphen": <a href="index.html#Hyphen">Hyphen</a>,
|
|
"IDS_Binary_Operator": <a href="index.html#IDS_Binary_Operator">IDS_Binary_Operator</a>,
|
|
"IDS_Trinary_Operator": <a href="index.html#IDS_Trinary_Operator">IDS_Trinary_Operator</a>,
|
|
"Ideographic": <a href="index.html#Ideographic">Ideographic</a>,
|
|
"Join_Control": <a href="index.html#Join_Control">Join_Control</a>,
|
|
"Logical_Order_Exception": <a href="index.html#Logical_Order_Exception">Logical_Order_Exception</a>,
|
|
"Noncharacter_Code_Point": <a href="index.html#Noncharacter_Code_Point">Noncharacter_Code_Point</a>,
|
|
"Other_Alphabetic": <a href="index.html#Other_Alphabetic">Other_Alphabetic</a>,
|
|
"Other_Default_Ignorable_Code_Point": <a href="index.html#Other_Default_Ignorable_Code_Point">Other_Default_Ignorable_Code_Point</a>,
|
|
"Other_Grapheme_Extend": <a href="index.html#Other_Grapheme_Extend">Other_Grapheme_Extend</a>,
|
|
"Other_ID_Continue": <a href="index.html#Other_ID_Continue">Other_ID_Continue</a>,
|
|
"Other_ID_Start": <a href="index.html#Other_ID_Start">Other_ID_Start</a>,
|
|
"Other_Lowercase": <a href="index.html#Other_Lowercase">Other_Lowercase</a>,
|
|
"Other_Math": <a href="index.html#Other_Math">Other_Math</a>,
|
|
"Other_Uppercase": <a href="index.html#Other_Uppercase">Other_Uppercase</a>,
|
|
"Pattern_Syntax": <a href="index.html#Pattern_Syntax">Pattern_Syntax</a>,
|
|
"Pattern_White_Space": <a href="index.html#Pattern_White_Space">Pattern_White_Space</a>,
|
|
"Quotation_Mark": <a href="index.html#Quotation_Mark">Quotation_Mark</a>,
|
|
"Radical": <a href="index.html#Radical">Radical</a>,
|
|
"STerm": <a href="index.html#STerm">STerm</a>,
|
|
"Soft_Dotted": <a href="index.html#Soft_Dotted">Soft_Dotted</a>,
|
|
"Terminal_Punctuation": <a href="index.html#Terminal_Punctuation">Terminal_Punctuation</a>,
|
|
"Unified_Ideograph": <a href="index.html#Unified_Ideograph">Unified_Ideograph</a>,
|
|
"Variation_Selector": <a href="index.html#Variation_Selector">Variation_Selector</a>,
|
|
"White_Space": <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>{
|
|
"Ahom": <a href="index.html#Ahom">Ahom</a>,
|
|
"Anatolian_Hieroglyphs": <a href="index.html#Anatolian_Hieroglyphs">Anatolian_Hieroglyphs</a>,
|
|
"Arabic": <a href="index.html#Arabic">Arabic</a>,
|
|
"Armenian": <a href="index.html#Armenian">Armenian</a>,
|
|
"Avestan": <a href="index.html#Avestan">Avestan</a>,
|
|
"Balinese": <a href="index.html#Balinese">Balinese</a>,
|
|
"Bamum": <a href="index.html#Bamum">Bamum</a>,
|
|
"Bassa_Vah": <a href="index.html#Bassa_Vah">Bassa_Vah</a>,
|
|
"Batak": <a href="index.html#Batak">Batak</a>,
|
|
"Bengali": <a href="index.html#Bengali">Bengali</a>,
|
|
"Bopomofo": <a href="index.html#Bopomofo">Bopomofo</a>,
|
|
"Brahmi": <a href="index.html#Brahmi">Brahmi</a>,
|
|
"Braille": <a href="index.html#Braille">Braille</a>,
|
|
"Buginese": <a href="index.html#Buginese">Buginese</a>,
|
|
"Buhid": <a href="index.html#Buhid">Buhid</a>,
|
|
"Canadian_Aboriginal": <a href="index.html#Canadian_Aboriginal">Canadian_Aboriginal</a>,
|
|
"Carian": <a href="index.html#Carian">Carian</a>,
|
|
"Caucasian_Albanian": <a href="index.html#Caucasian_Albanian">Caucasian_Albanian</a>,
|
|
"Chakma": <a href="index.html#Chakma">Chakma</a>,
|
|
"Cham": <a href="index.html#Cham">Cham</a>,
|
|
"Cherokee": <a href="index.html#Cherokee">Cherokee</a>,
|
|
"Common": <a href="index.html#Common">Common</a>,
|
|
"Coptic": <a href="index.html#Coptic">Coptic</a>,
|
|
"Cuneiform": <a href="index.html#Cuneiform">Cuneiform</a>,
|
|
"Cypriot": <a href="index.html#Cypriot">Cypriot</a>,
|
|
"Cyrillic": <a href="index.html#Cyrillic">Cyrillic</a>,
|
|
"Deseret": <a href="index.html#Deseret">Deseret</a>,
|
|
"Devanagari": <a href="index.html#Devanagari">Devanagari</a>,
|
|
"Duployan": <a href="index.html#Duployan">Duployan</a>,
|
|
"Egyptian_Hieroglyphs": <a href="index.html#Egyptian_Hieroglyphs">Egyptian_Hieroglyphs</a>,
|
|
"Elbasan": <a href="index.html#Elbasan">Elbasan</a>,
|
|
"Ethiopic": <a href="index.html#Ethiopic">Ethiopic</a>,
|
|
"Georgian": <a href="index.html#Georgian">Georgian</a>,
|
|
"Glagolitic": <a href="index.html#Glagolitic">Glagolitic</a>,
|
|
"Gothic": <a href="index.html#Gothic">Gothic</a>,
|
|
"Grantha": <a href="index.html#Grantha">Grantha</a>,
|
|
"Greek": <a href="index.html#Greek">Greek</a>,
|
|
"Gujarati": <a href="index.html#Gujarati">Gujarati</a>,
|
|
"Gurmukhi": <a href="index.html#Gurmukhi">Gurmukhi</a>,
|
|
"Han": <a href="index.html#Han">Han</a>,
|
|
"Hangul": <a href="index.html#Hangul">Hangul</a>,
|
|
"Hanunoo": <a href="index.html#Hanunoo">Hanunoo</a>,
|
|
"Hatran": <a href="index.html#Hatran">Hatran</a>,
|
|
"Hebrew": <a href="index.html#Hebrew">Hebrew</a>,
|
|
"Hiragana": <a href="index.html#Hiragana">Hiragana</a>,
|
|
"Imperial_Aramaic": <a href="index.html#Imperial_Aramaic">Imperial_Aramaic</a>,
|
|
"Inherited": <a href="index.html#Inherited">Inherited</a>,
|
|
"Inscriptional_Pahlavi": <a href="index.html#Inscriptional_Pahlavi">Inscriptional_Pahlavi</a>,
|
|
"Inscriptional_Parthian": <a href="index.html#Inscriptional_Parthian">Inscriptional_Parthian</a>,
|
|
"Javanese": <a href="index.html#Javanese">Javanese</a>,
|
|
"Kaithi": <a href="index.html#Kaithi">Kaithi</a>,
|
|
"Kannada": <a href="index.html#Kannada">Kannada</a>,
|
|
"Katakana": <a href="index.html#Katakana">Katakana</a>,
|
|
"Kayah_Li": <a href="index.html#Kayah_Li">Kayah_Li</a>,
|
|
"Kharoshthi": <a href="index.html#Kharoshthi">Kharoshthi</a>,
|
|
"Khmer": <a href="index.html#Khmer">Khmer</a>,
|
|
"Khojki": <a href="index.html#Khojki">Khojki</a>,
|
|
"Khudawadi": <a href="index.html#Khudawadi">Khudawadi</a>,
|
|
"Lao": <a href="index.html#Lao">Lao</a>,
|
|
"Latin": <a href="index.html#Latin">Latin</a>,
|
|
"Lepcha": <a href="index.html#Lepcha">Lepcha</a>,
|
|
"Limbu": <a href="index.html#Limbu">Limbu</a>,
|
|
"Linear_A": <a href="index.html#Linear_A">Linear_A</a>,
|
|
"Linear_B": <a href="index.html#Linear_B">Linear_B</a>,
|
|
"Lisu": <a href="index.html#Lisu">Lisu</a>,
|
|
"Lycian": <a href="index.html#Lycian">Lycian</a>,
|
|
"Lydian": <a href="index.html#Lydian">Lydian</a>,
|
|
"Mahajani": <a href="index.html#Mahajani">Mahajani</a>,
|
|
"Malayalam": <a href="index.html#Malayalam">Malayalam</a>,
|
|
"Mandaic": <a href="index.html#Mandaic">Mandaic</a>,
|
|
"Manichaean": <a href="index.html#Manichaean">Manichaean</a>,
|
|
"Meetei_Mayek": <a href="index.html#Meetei_Mayek">Meetei_Mayek</a>,
|
|
"Mende_Kikakui": <a href="index.html#Mende_Kikakui">Mende_Kikakui</a>,
|
|
"Meroitic_Cursive": <a href="index.html#Meroitic_Cursive">Meroitic_Cursive</a>,
|
|
"Meroitic_Hieroglyphs": <a href="index.html#Meroitic_Hieroglyphs">Meroitic_Hieroglyphs</a>,
|
|
"Miao": <a href="index.html#Miao">Miao</a>,
|
|
"Modi": <a href="index.html#Modi">Modi</a>,
|
|
"Mongolian": <a href="index.html#Mongolian">Mongolian</a>,
|
|
"Mro": <a href="index.html#Mro">Mro</a>,
|
|
"Multani": <a href="index.html#Multani">Multani</a>,
|
|
"Myanmar": <a href="index.html#Myanmar">Myanmar</a>,
|
|
"Nabataean": <a href="index.html#Nabataean">Nabataean</a>,
|
|
"New_Tai_Lue": <a href="index.html#New_Tai_Lue">New_Tai_Lue</a>,
|
|
"Nko": <a href="index.html#Nko">Nko</a>,
|
|
"Ogham": <a href="index.html#Ogham">Ogham</a>,
|
|
"Ol_Chiki": <a href="index.html#Ol_Chiki">Ol_Chiki</a>,
|
|
"Old_Hungarian": <a href="index.html#Old_Hungarian">Old_Hungarian</a>,
|
|
"Old_Italic": <a href="index.html#Old_Italic">Old_Italic</a>,
|
|
"Old_North_Arabian": <a href="index.html#Old_North_Arabian">Old_North_Arabian</a>,
|
|
"Old_Permic": <a href="index.html#Old_Permic">Old_Permic</a>,
|
|
"Old_Persian": <a href="index.html#Old_Persian">Old_Persian</a>,
|
|
"Old_South_Arabian": <a href="index.html#Old_South_Arabian">Old_South_Arabian</a>,
|
|
"Old_Turkic": <a href="index.html#Old_Turkic">Old_Turkic</a>,
|
|
"Oriya": <a href="index.html#Oriya">Oriya</a>,
|
|
"Osmanya": <a href="index.html#Osmanya">Osmanya</a>,
|
|
"Pahawh_Hmong": <a href="index.html#Pahawh_Hmong">Pahawh_Hmong</a>,
|
|
"Palmyrene": <a href="index.html#Palmyrene">Palmyrene</a>,
|
|
"Pau_Cin_Hau": <a href="index.html#Pau_Cin_Hau">Pau_Cin_Hau</a>,
|
|
"Phags_Pa": <a href="index.html#Phags_Pa">Phags_Pa</a>,
|
|
"Phoenician": <a href="index.html#Phoenician">Phoenician</a>,
|
|
"Psalter_Pahlavi": <a href="index.html#Psalter_Pahlavi">Psalter_Pahlavi</a>,
|
|
"Rejang": <a href="index.html#Rejang">Rejang</a>,
|
|
"Runic": <a href="index.html#Runic">Runic</a>,
|
|
"Samaritan": <a href="index.html#Samaritan">Samaritan</a>,
|
|
"Saurashtra": <a href="index.html#Saurashtra">Saurashtra</a>,
|
|
"Sharada": <a href="index.html#Sharada">Sharada</a>,
|
|
"Shavian": <a href="index.html#Shavian">Shavian</a>,
|
|
"Siddham": <a href="index.html#Siddham">Siddham</a>,
|
|
"SignWriting": <a href="index.html#SignWriting">SignWriting</a>,
|
|
"Sinhala": <a href="index.html#Sinhala">Sinhala</a>,
|
|
"Sora_Sompeng": <a href="index.html#Sora_Sompeng">Sora_Sompeng</a>,
|
|
"Sundanese": <a href="index.html#Sundanese">Sundanese</a>,
|
|
"Syloti_Nagri": <a href="index.html#Syloti_Nagri">Syloti_Nagri</a>,
|
|
"Syriac": <a href="index.html#Syriac">Syriac</a>,
|
|
"Tagalog": <a href="index.html#Tagalog">Tagalog</a>,
|
|
"Tagbanwa": <a href="index.html#Tagbanwa">Tagbanwa</a>,
|
|
"Tai_Le": <a href="index.html#Tai_Le">Tai_Le</a>,
|
|
"Tai_Tham": <a href="index.html#Tai_Tham">Tai_Tham</a>,
|
|
"Tai_Viet": <a href="index.html#Tai_Viet">Tai_Viet</a>,
|
|
"Takri": <a href="index.html#Takri">Takri</a>,
|
|
"Tamil": <a href="index.html#Tamil">Tamil</a>,
|
|
"Telugu": <a href="index.html#Telugu">Telugu</a>,
|
|
"Thaana": <a href="index.html#Thaana">Thaana</a>,
|
|
"Thai": <a href="index.html#Thai">Thai</a>,
|
|
"Tibetan": <a href="index.html#Tibetan">Tibetan</a>,
|
|
"Tifinagh": <a href="index.html#Tifinagh">Tifinagh</a>,
|
|
"Tirhuta": <a href="index.html#Tirhuta">Tirhuta</a>,
|
|
"Ugaritic": <a href="index.html#Ugaritic">Ugaritic</a>,
|
|
"Vai": <a href="index.html#Vai">Vai</a>,
|
|
"Warang_Citi": <a href="index.html#Warang_Citi">Warang_Citi</a>,
|
|
"Yi": <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 "In" 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's White Space property; in the Latin-1 space
|
|
this is
|
|
</p>
|
|
<pre>'\t', '\n', '\v', '\f', '\r', ' ', 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 > r if one exists, or else the smallest rune >= 0.
|
|
</p>
|
|
<p>
|
|
For example:
|
|
</p>
|
|
<pre>SimpleFold('A') = 'a'
|
|
SimpleFold('a') = 'A'
|
|
|
|
SimpleFold('K') = 'k'
|
|
SimpleFold('k') = '\u212A' (Kelvin symbol, K)
|
|
SimpleFold('\u212A') = 'K'
|
|
|
|
SimpleFold('1') = '1'
|
|
</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("%#U\n", unicode.SimpleFold('A')) <span class="comment">// 'a'</span>
|
|
fmt.Printf("%#U\n", unicode.SimpleFold('a')) <span class="comment">// 'A'</span>
|
|
fmt.Printf("%#U\n", unicode.SimpleFold('K')) <span class="comment">// 'k'</span>
|
|
fmt.Printf("%#U\n", unicode.SimpleFold('k')) <span class="comment">// '\u212A' (Kelvin symbol, K)</span>
|
|
fmt.Printf("%#U\n", unicode.SimpleFold('\u212A')) <span class="comment">// 'K'</span>
|
|
fmt.Printf("%#U\n", unicode.SimpleFold('1')) <span class="comment">// '1'</span>
|
|
|
|
<span class="comment"></pre>
|
|
|
|
<p>Output:</p>
|
|
<pre class="output">U+0061 'a'
|
|
U+0041 'A'
|
|
U+006B 'k'
|
|
U+212A 'K'
|
|
U+004B 'K'
|
|
U+0031 '1'
|
|
</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 = 'g'
|
|
fmt.Printf("%#U\n", unicode.To(unicode.UpperCase, lcG))
|
|
fmt.Printf("%#U\n", unicode.To(unicode.LowerCase, lcG))
|
|
fmt.Printf("%#U\n", unicode.To(unicode.TitleCase, lcG))
|
|
|
|
const ucG = 'G'
|
|
fmt.Printf("%#U\n", unicode.To(unicode.UpperCase, ucG))
|
|
fmt.Printf("%#U\n", unicode.To(unicode.LowerCase, ucG))
|
|
fmt.Printf("%#U\n", unicode.To(unicode.TitleCase, ucG))
|
|
|
|
<span class="comment"></pre>
|
|
|
|
<p>Output:</p>
|
|
<pre class="output">U+0047 'G'
|
|
U+0067 'g'
|
|
U+0047 'G'
|
|
U+0047 'G'
|
|
U+0067 'g'
|
|
U+0047 'G'
|
|
</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 = 'G'
|
|
fmt.Printf("%#U\n", unicode.ToLower(ucG))
|
|
|
|
<span class="comment"></pre>
|
|
|
|
<p>Output:</p>
|
|
<pre class="output">U+0067 'g'
|
|
</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 = 'g'
|
|
fmt.Printf("%#U\n", unicode.ToTitle(ucG))
|
|
|
|
<span class="comment"></pre>
|
|
|
|
<p>Output:</p>
|
|
<pre class="output">U+0047 'G'
|
|
</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 = 'g'
|
|
fmt.Printf("%#U\n", unicode.ToUpper(ucG))
|
|
|
|
<span class="comment"></pre>
|
|
|
|
<p>Output:</p>
|
|
<pre class="output">U+0047 'G'
|
|
</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 >= 1<<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 <= 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 >= 0x10000 (1<<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 = 'i'
|
|
fmt.Printf("%#U\n", t.ToLower(lci))
|
|
fmt.Printf("%#U\n", t.ToTitle(lci))
|
|
fmt.Printf("%#U\n", t.ToUpper(lci))
|
|
|
|
const uci = 'İ'
|
|
fmt.Printf("%#U\n", t.ToLower(uci))
|
|
fmt.Printf("%#U\n", t.ToTitle(uci))
|
|
fmt.Printf("%#U\n", t.ToUpper(uci))
|
|
|
|
<span class="comment"></pre>
|
|
|
|
<p>Output:</p>
|
|
<pre class="output">U+0069 'i'
|
|
U+0130 'İ'
|
|
U+0130 'İ'
|
|
U+0069 'i'
|
|
U+0130 'İ'
|
|
U+0130 'İ'
|
|
</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">☞</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>
|
|
|