[Python-modules-commits] [sphinx] 01/13: Import sphinx_1.3.3.orig.tar.gz
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Thu Dec 3 15:36:06 UTC 2015
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository sphinx.
commit 0d21a8c899c1d9102b90b3243f9fec4c9e7a8f3d
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date: Thu Dec 3 18:31:36 2015 +0300
Import sphinx_1.3.3.orig.tar.gz
---
CHANGES | 14 +-
MANIFEST.in | 1 +
PKG-INFO | 2 +-
Sphinx.egg-info/PKG-INFO | 2 +-
Sphinx.egg-info/SOURCES.txt | 15 +
sphinx/__init__.py | 6 +-
sphinx/builders/devhelp.py | 4 +-
sphinx/domains/std.py | 7 +-
sphinx/search/non-minified-js/danish-stemmer.js | 1873 ++++++
sphinx/search/non-minified-js/dutch-stemmer.js | 2637 ++++++++
sphinx/search/non-minified-js/finnish-stemmer.js | 2812 ++++++++
sphinx/search/non-minified-js/french-stemmer.js | 3667 +++++++++++
sphinx/search/non-minified-js/german-stemmer.js | 2506 ++++++++
sphinx/search/non-minified-js/hungarian-stemmer.js | 2893 +++++++++
sphinx/search/non-minified-js/italian-stemmer.js | 2978 +++++++++
sphinx/search/non-minified-js/norwegian-stemmer.js | 1771 ++++++
sphinx/search/non-minified-js/porter-stemmer.js | 2518 ++++++++
.../search/non-minified-js/portuguese-stemmer.js | 2817 ++++++++
sphinx/search/non-minified-js/romanian-stemmer.js | 2694 ++++++++
sphinx/search/non-minified-js/russian-stemmer.js | 2232 +++++++
sphinx/search/non-minified-js/spanish-stemmer.js | 2938 +++++++++
sphinx/search/non-minified-js/swedish-stemmer.js | 1743 +++++
sphinx/search/non-minified-js/turkish-stemmer.js | 6721 ++++++++++++++++++++
tests/roots/test-numfig/index.rst | 2 +
tests/test_build_html.py | 15 +
25 files changed, 42859 insertions(+), 9 deletions(-)
diff --git a/CHANGES b/CHANGES
index 2d11770..54bbfd9 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,15 @@
+Release 1.3.3 (released Dec 2, 2015)
+====================================
+
+Bugs fixed
+----------
+
+* #2012: Fix exception occurred if ``numfig_format`` is invalid
+* #2142: Provide non-minified JS code in ``sphinx/search/non-minified-js/*.js`` for
+ source distribution on PyPI.
+* #2148: Error while building devhelp target with non-ASCII document.
+
+
Release 1.3.2 (released Nov 29, 2015)
=====================================
@@ -23,7 +35,7 @@ Bugs fixed
* #1823: '.' as <module_path> for sphinx-apidoc cause an unfriendly error. Now '.'
is converted to absolute path automatically.
* Fix a crash when setting up extensions which do not support metadata.
-* #1784: Provide non-minified JS code in ``sphinx/search/*.py``
+* #1784: Provide non-minified JS code in ``sphinx/search/non-minified-js/*.js``
* #1822, #1892: Fix regression for #1061. autosummary can't generate doc for imported
members since sphinx-1.3b3. Thanks to Eric Larson.
* #1793, #1819: "see also" misses a linebreak in text output. Thanks to Takayuki Hirai.
diff --git a/MANIFEST.in b/MANIFEST.in
index 4cafcdc..bb0be49 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -16,6 +16,7 @@ include sphinx-apidoc.py
recursive-include sphinx/texinputs *
recursive-include sphinx/themes *
recursive-include sphinx/locale *
+recursive-include sphinx/search/non-minified-js *.js
recursive-include sphinx/ext/autosummary/templates *
recursive-include tests *
recursive-include utils *
diff --git a/PKG-INFO b/PKG-INFO
index f758643..47c6e17 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: Sphinx
-Version: 1.3.2
+Version: 1.3.3
Summary: Python documentation generator
Home-page: http://sphinx-doc.org/
Author: Georg Brandl
diff --git a/Sphinx.egg-info/PKG-INFO b/Sphinx.egg-info/PKG-INFO
index f758643..47c6e17 100644
--- a/Sphinx.egg-info/PKG-INFO
+++ b/Sphinx.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: Sphinx
-Version: 1.3.2
+Version: 1.3.3
Summary: Python documentation generator
Home-page: http://sphinx-doc.org/
Author: Georg Brandl
diff --git a/Sphinx.egg-info/SOURCES.txt b/Sphinx.egg-info/SOURCES.txt
index 7570874..b899981 100644
--- a/Sphinx.egg-info/SOURCES.txt
+++ b/Sphinx.egg-info/SOURCES.txt
@@ -335,6 +335,21 @@ sphinx/search/ro.py
sphinx/search/ru.py
sphinx/search/sv.py
sphinx/search/tr.py
+sphinx/search/non-minified-js/danish-stemmer.js
+sphinx/search/non-minified-js/dutch-stemmer.js
+sphinx/search/non-minified-js/finnish-stemmer.js
+sphinx/search/non-minified-js/french-stemmer.js
+sphinx/search/non-minified-js/german-stemmer.js
+sphinx/search/non-minified-js/hungarian-stemmer.js
+sphinx/search/non-minified-js/italian-stemmer.js
+sphinx/search/non-minified-js/norwegian-stemmer.js
+sphinx/search/non-minified-js/porter-stemmer.js
+sphinx/search/non-minified-js/portuguese-stemmer.js
+sphinx/search/non-minified-js/romanian-stemmer.js
+sphinx/search/non-minified-js/russian-stemmer.js
+sphinx/search/non-minified-js/spanish-stemmer.js
+sphinx/search/non-minified-js/swedish-stemmer.js
+sphinx/search/non-minified-js/turkish-stemmer.js
sphinx/texinputs/Makefile
sphinx/texinputs/fncychap.sty
sphinx/texinputs/python.ist
diff --git a/sphinx/__init__.py b/sphinx/__init__.py
index 3b45b23..18c6db2 100644
--- a/sphinx/__init__.py
+++ b/sphinx/__init__.py
@@ -15,13 +15,13 @@
import sys
from os import path
-__version__ = '1.3.2'
-__released__ = '1.3.2' # used when Sphinx builds its own docs
+__version__ = '1.3.3'
+__released__ = '1.3.3' # used when Sphinx builds its own docs
# version info for better programmatic use
# possible values for 3rd element: 'alpha', 'beta', 'rc', 'final'
# 'final' has 0 as the last element
-version_info = (1, 3, 2, 'final', 0)
+version_info = (1, 3, 3, 'final', 0)
package_dir = path.abspath(path.dirname(__file__))
diff --git a/sphinx/builders/devhelp.py b/sphinx/builders/devhelp.py
index e6199e6..56e6362 100644
--- a/sphinx/builders/devhelp.py
+++ b/sphinx/builders/devhelp.py
@@ -91,7 +91,7 @@ class DevhelpBuilder(StandaloneHTMLBuilder):
write_toc(subnode, item)
elif isinstance(node, nodes.reference):
parent.attrib['link'] = node['refuri']
- parent.attrib['name'] = node.astext().encode('utf-8')
+ parent.attrib['name'] = node.astext()
def istoctree(node):
return isinstance(node, addnodes.compact_paragraph) and \
@@ -129,6 +129,6 @@ class DevhelpBuilder(StandaloneHTMLBuilder):
# Dump the XML file
f = comp_open(path.join(outdir, outname + '.devhelp'), 'w')
try:
- tree.write(f)
+ tree.write(f, 'utf-8')
finally:
f.close()
diff --git a/sphinx/domains/std.py b/sphinx/domains/std.py
index 9ef2fda..b0bf303 100644
--- a/sphinx/domains/std.py
+++ b/sphinx/domains/std.py
@@ -646,7 +646,12 @@ class StandardDomain(Domain):
if target == fully_normalize_name(title):
title = env.config.numfig_format.get(figtype, '')
- newtitle = title % '.'.join(map(str, fignumber))
+ try:
+ newtitle = title % '.'.join(map(str, fignumber))
+ except TypeError:
+ env.warn(fromdocname, 'invalid numfig_format: %s' % title)
+ return None
+
return self.build_reference_node(fromdocname, builder,
docname, labelid, newtitle,
nodeclass=addnodes.number_reference,
diff --git a/sphinx/search/non-minified-js/danish-stemmer.js b/sphinx/search/non-minified-js/danish-stemmer.js
new file mode 100644
index 0000000..f630932
--- /dev/null
+++ b/sphinx/search/non-minified-js/danish-stemmer.js
@@ -0,0 +1,1873 @@
+// generatedy by JSX compiler 0.9.89 (2014-05-20 06:01:03 +0900; 8e8c6105f36f3dfe440ea026a3c93a3444977102)
+var JSX = {};
+(function (JSX) {
+/**
+ * extends the class
+ */
+function $__jsx_extend(derivations, base) {
+ var ctor = function () {};
+ ctor.prototype = base.prototype;
+ var proto = new ctor();
+ for (var i in derivations) {
+ derivations[i].prototype = proto;
+ }
+}
+
+/**
+ * copies the implementations from source interface to target
+ */
+function $__jsx_merge_interface(target, source) {
+ for (var k in source.prototype)
+ if (source.prototype.hasOwnProperty(k))
+ target.prototype[k] = source.prototype[k];
+}
+
+/**
+ * defers the initialization of the property
+ */
+function $__jsx_lazy_init(obj, prop, func) {
+ function reset(obj, prop, value) {
+ delete obj[prop];
+ obj[prop] = value;
+ return value;
+ }
+
+ Object.defineProperty(obj, prop, {
+ get: function () {
+ return reset(obj, prop, func());
+ },
+ set: function (v) {
+ reset(obj, prop, v);
+ },
+ enumerable: true,
+ configurable: true
+ });
+}
+
+var $__jsx_imul = Math.imul;
+if (typeof $__jsx_imul === "undefined") {
+ $__jsx_imul = function (a, b) {
+ var ah = (a >>> 16) & 0xffff;
+ var al = a & 0xffff;
+ var bh = (b >>> 16) & 0xffff;
+ var bl = b & 0xffff;
+ return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0)|0);
+ };
+}
+
+/**
+ * fused int-ops with side-effects
+ */
+function $__jsx_ipadd(o, p, r) {
+ return o[p] = (o[p] + r) | 0;
+}
+function $__jsx_ipsub(o, p, r) {
+ return o[p] = (o[p] - r) | 0;
+}
+function $__jsx_ipmul(o, p, r) {
+ return o[p] = $__jsx_imul(o[p], r);
+}
+function $__jsx_ipdiv(o, p, r) {
+ return o[p] = (o[p] / r) | 0;
+}
+function $__jsx_ipmod(o, p, r) {
+ return o[p] = (o[p] % r) | 0;
+}
+function $__jsx_ippostinc(o, p) {
+ var v = o[p];
+ o[p] = (v + 1) | 0;
+ return v;
+}
+function $__jsx_ippostdec(o, p) {
+ var v = o[p];
+ o[p] = (v - 1) | 0;
+ return v;
+}
+
+/**
+ * non-inlined version of Array#each
+ */
+function $__jsx_forEach(o, f) {
+ var l = o.length;
+ for (var i = 0; i < l; ++i)
+ f(o[i]);
+}
+
+/*
+ * global functions, renamed to avoid conflict with local variable names
+ */
+var $__jsx_parseInt = parseInt;
+var $__jsx_parseFloat = parseFloat;
+function $__jsx_isNaN(n) { return n !== n; }
+var $__jsx_isFinite = isFinite;
+
+var $__jsx_encodeURIComponent = encodeURIComponent;
+var $__jsx_decodeURIComponent = decodeURIComponent;
+var $__jsx_encodeURI = encodeURI;
+var $__jsx_decodeURI = decodeURI;
+
+var $__jsx_ObjectToString = Object.prototype.toString;
+var $__jsx_ObjectHasOwnProperty = Object.prototype.hasOwnProperty;
+
+/*
+ * profiler object, initialized afterwards
+ */
+function $__jsx_profiler() {
+}
+
+/*
+ * public interface to JSX code
+ */
+JSX.require = function (path) {
+ var m = $__jsx_classMap[path];
+ return m !== undefined ? m : null;
+};
+
+JSX.profilerIsRunning = function () {
+ return $__jsx_profiler.getResults != null;
+};
+
+JSX.getProfileResults = function () {
+ return ($__jsx_profiler.getResults || function () { return {}; })();
+};
+
+JSX.postProfileResults = function (url, cb) {
+ if ($__jsx_profiler.postResults == null)
+ throw new Error("profiler has not been turned on");
+ return $__jsx_profiler.postResults(url, cb);
+};
+
+JSX.resetProfileResults = function () {
+ if ($__jsx_profiler.resetResults == null)
+ throw new Error("profiler has not been turned on");
+ return $__jsx_profiler.resetResults();
+};
+JSX.DEBUG = false;
+var GeneratorFunction$0 =
+(function () {
+ try {
+ return Function('import {GeneratorFunction} from "std:iteration"; return GeneratorFunction')();
+ } catch (e) {
+ return function GeneratorFunction () {};
+ }
+})();
+var __jsx_generator_object$0 =
+(function () {
+ function __jsx_generator_object() {
+ this.__next = 0;
+ this.__loop = null;
+ this.__seed = null;
+ this.__value = undefined;
+ this.__status = 0; // SUSPENDED: 0, ACTIVE: 1, DEAD: 2
+ }
+
+ __jsx_generator_object.prototype.next = function (seed) {
+ switch (this.__status) {
+ case 0:
+ this.__status = 1;
+ this.__seed = seed;
+
+ // go next!
+ this.__loop(this.__next);
+
+ var done = false;
+ if (this.__next != -1) {
+ this.__status = 0;
+ } else {
+ this.__status = 2;
+ done = true;
+ }
+ return { value: this.__value, done: done };
+ case 1:
+ throw new Error("Generator is already running");
+ case 2:
+ throw new Error("Generator is already finished");
+ default:
+ throw new Error("Unexpected generator internal state");
+ }
+ };
+
+ return __jsx_generator_object;
+}());
+function Among(s, substring_i, result) {
+ this.s_size = s.length;
+ this.s = s;
+ this.substring_i = substring_i;
+ this.result = result;
+ this.method = null;
+ this.instance = null;
+};
+
+function Among$0(s, substring_i, result, method, instance) {
+ this.s_size = s.length;
+ this.s = s;
+ this.substring_i = substring_i;
+ this.result = result;
+ this.method = method;
+ this.instance = instance;
+};
+
+$__jsx_extend([Among, Among$0], Object);
+function Stemmer() {
+};
+
+$__jsx_extend([Stemmer], Object);
+function BaseStemmer() {
+ var current$0;
+ var cursor$0;
+ var limit$0;
+ this.cache = ({ });
+ current$0 = this.current = "";
+ cursor$0 = this.cursor = 0;
+ limit$0 = this.limit = current$0.length;
+ this.limit_backward = 0;
+ this.bra = cursor$0;
+ this.ket = limit$0;
+};
+
+$__jsx_extend([BaseStemmer], Stemmer);
+BaseStemmer.prototype.setCurrent$S = function (value) {
+ var current$0;
+ var cursor$0;
+ var limit$0;
+ current$0 = this.current = value;
+ cursor$0 = this.cursor = 0;
+ limit$0 = this.limit = current$0.length;
+ this.limit_backward = 0;
+ this.bra = cursor$0;
+ this.ket = limit$0;
+};
+
+
+function BaseStemmer$setCurrent$LBaseStemmer$S($this, value) {
+ var current$0;
+ var cursor$0;
+ var limit$0;
+ current$0 = $this.current = value;
+ cursor$0 = $this.cursor = 0;
+ limit$0 = $this.limit = current$0.length;
+ $this.limit_backward = 0;
+ $this.bra = cursor$0;
+ $this.ket = limit$0;
+};
+
+BaseStemmer.setCurrent$LBaseStemmer$S = BaseStemmer$setCurrent$LBaseStemmer$S;
+
+BaseStemmer.prototype.getCurrent$ = function () {
+ return this.current;
+};
+
+
+function BaseStemmer$getCurrent$LBaseStemmer$($this) {
+ return $this.current;
+};
+
+BaseStemmer.getCurrent$LBaseStemmer$ = BaseStemmer$getCurrent$LBaseStemmer$;
+
+BaseStemmer.prototype.copy_from$LBaseStemmer$ = function (other) {
+ this.current = other.current;
+ this.cursor = other.cursor;
+ this.limit = other.limit;
+ this.limit_backward = other.limit_backward;
+ this.bra = other.bra;
+ this.ket = other.ket;
+};
+
+
+function BaseStemmer$copy_from$LBaseStemmer$LBaseStemmer$($this, other) {
+ $this.current = other.current;
+ $this.cursor = other.cursor;
+ $this.limit = other.limit;
+ $this.limit_backward = other.limit_backward;
+ $this.bra = other.bra;
+ $this.ket = other.ket;
+};
+
+BaseStemmer.copy_from$LBaseStemmer$LBaseStemmer$ = BaseStemmer$copy_from$LBaseStemmer$LBaseStemmer$;
+
+BaseStemmer.prototype.in_grouping$AIII = function (s, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if (this.cursor >= this.limit) {
+ return false;
+ }
+ ch = this.current.charCodeAt(this.cursor);
+ if (ch > max || ch < min) {
+ return false;
+ }
+ ch -= min;
+ if ((s[ch >>> 3] & 0x1 << (ch & 0x7)) === 0) {
+ return false;
+ }
+ ($__jsx_postinc_t = this.cursor, this.cursor = ($__jsx_postinc_t + 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+
+function BaseStemmer$in_grouping$LBaseStemmer$AIII($this, s, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if ($this.cursor >= $this.limit) {
+ return false;
+ }
+ ch = $this.current.charCodeAt($this.cursor);
+ if (ch > max || ch < min) {
+ return false;
+ }
+ ch -= min;
+ if ((s[ch >>> 3] & 0x1 << (ch & 0x7)) === 0) {
+ return false;
+ }
+ ($__jsx_postinc_t = $this.cursor, $this.cursor = ($__jsx_postinc_t + 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+BaseStemmer.in_grouping$LBaseStemmer$AIII = BaseStemmer$in_grouping$LBaseStemmer$AIII;
+
+BaseStemmer.prototype.in_grouping_b$AIII = function (s, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if (this.cursor <= this.limit_backward) {
+ return false;
+ }
+ ch = this.current.charCodeAt(this.cursor - 1);
+ if (ch > max || ch < min) {
+ return false;
+ }
+ ch -= min;
+ if ((s[ch >>> 3] & 0x1 << (ch & 0x7)) === 0) {
+ return false;
+ }
+ ($__jsx_postinc_t = this.cursor, this.cursor = ($__jsx_postinc_t - 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+
+function BaseStemmer$in_grouping_b$LBaseStemmer$AIII($this, s, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if ($this.cursor <= $this.limit_backward) {
+ return false;
+ }
+ ch = $this.current.charCodeAt($this.cursor - 1);
+ if (ch > max || ch < min) {
+ return false;
+ }
+ ch -= min;
+ if ((s[ch >>> 3] & 0x1 << (ch & 0x7)) === 0) {
+ return false;
+ }
+ ($__jsx_postinc_t = $this.cursor, $this.cursor = ($__jsx_postinc_t - 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+BaseStemmer.in_grouping_b$LBaseStemmer$AIII = BaseStemmer$in_grouping_b$LBaseStemmer$AIII;
+
+BaseStemmer.prototype.out_grouping$AIII = function (s, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if (this.cursor >= this.limit) {
+ return false;
+ }
+ ch = this.current.charCodeAt(this.cursor);
+ if (ch > max || ch < min) {
+ ($__jsx_postinc_t = this.cursor, this.cursor = ($__jsx_postinc_t + 1) | 0, $__jsx_postinc_t);
+ return true;
+ }
+ ch -= min;
+ if ((s[ch >>> 3] & 0X1 << (ch & 0x7)) === 0) {
+ ($__jsx_postinc_t = this.cursor, this.cursor = ($__jsx_postinc_t + 1) | 0, $__jsx_postinc_t);
+ return true;
+ }
+ return false;
+};
+
+
+function BaseStemmer$out_grouping$LBaseStemmer$AIII($this, s, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if ($this.cursor >= $this.limit) {
+ return false;
+ }
+ ch = $this.current.charCodeAt($this.cursor);
+ if (ch > max || ch < min) {
+ ($__jsx_postinc_t = $this.cursor, $this.cursor = ($__jsx_postinc_t + 1) | 0, $__jsx_postinc_t);
+ return true;
+ }
+ ch -= min;
+ if ((s[ch >>> 3] & 0X1 << (ch & 0x7)) === 0) {
+ ($__jsx_postinc_t = $this.cursor, $this.cursor = ($__jsx_postinc_t + 1) | 0, $__jsx_postinc_t);
+ return true;
+ }
+ return false;
+};
+
+BaseStemmer.out_grouping$LBaseStemmer$AIII = BaseStemmer$out_grouping$LBaseStemmer$AIII;
+
+BaseStemmer.prototype.out_grouping_b$AIII = function (s, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if (this.cursor <= this.limit_backward) {
+ return false;
+ }
+ ch = this.current.charCodeAt(this.cursor - 1);
+ if (ch > max || ch < min) {
+ ($__jsx_postinc_t = this.cursor, this.cursor = ($__jsx_postinc_t - 1) | 0, $__jsx_postinc_t);
+ return true;
+ }
+ ch -= min;
+ if ((s[ch >>> 3] & 0x1 << (ch & 0x7)) === 0) {
+ ($__jsx_postinc_t = this.cursor, this.cursor = ($__jsx_postinc_t - 1) | 0, $__jsx_postinc_t);
+ return true;
+ }
+ return false;
+};
+
+
+function BaseStemmer$out_grouping_b$LBaseStemmer$AIII($this, s, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if ($this.cursor <= $this.limit_backward) {
+ return false;
+ }
+ ch = $this.current.charCodeAt($this.cursor - 1);
+ if (ch > max || ch < min) {
+ ($__jsx_postinc_t = $this.cursor, $this.cursor = ($__jsx_postinc_t - 1) | 0, $__jsx_postinc_t);
+ return true;
+ }
+ ch -= min;
+ if ((s[ch >>> 3] & 0x1 << (ch & 0x7)) === 0) {
+ ($__jsx_postinc_t = $this.cursor, $this.cursor = ($__jsx_postinc_t - 1) | 0, $__jsx_postinc_t);
+ return true;
+ }
+ return false;
+};
+
+BaseStemmer.out_grouping_b$LBaseStemmer$AIII = BaseStemmer$out_grouping_b$LBaseStemmer$AIII;
+
+BaseStemmer.prototype.in_range$II = function (min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if (this.cursor >= this.limit) {
+ return false;
+ }
+ ch = this.current.charCodeAt(this.cursor);
+ if (ch > max || ch < min) {
+ return false;
+ }
+ ($__jsx_postinc_t = this.cursor, this.cursor = ($__jsx_postinc_t + 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+
+function BaseStemmer$in_range$LBaseStemmer$II($this, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if ($this.cursor >= $this.limit) {
+ return false;
+ }
+ ch = $this.current.charCodeAt($this.cursor);
+ if (ch > max || ch < min) {
+ return false;
+ }
+ ($__jsx_postinc_t = $this.cursor, $this.cursor = ($__jsx_postinc_t + 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+BaseStemmer.in_range$LBaseStemmer$II = BaseStemmer$in_range$LBaseStemmer$II;
+
+BaseStemmer.prototype.in_range_b$II = function (min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if (this.cursor <= this.limit_backward) {
+ return false;
+ }
+ ch = this.current.charCodeAt(this.cursor - 1);
+ if (ch > max || ch < min) {
+ return false;
+ }
+ ($__jsx_postinc_t = this.cursor, this.cursor = ($__jsx_postinc_t - 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+
+function BaseStemmer$in_range_b$LBaseStemmer$II($this, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if ($this.cursor <= $this.limit_backward) {
+ return false;
+ }
+ ch = $this.current.charCodeAt($this.cursor - 1);
+ if (ch > max || ch < min) {
+ return false;
+ }
+ ($__jsx_postinc_t = $this.cursor, $this.cursor = ($__jsx_postinc_t - 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+BaseStemmer.in_range_b$LBaseStemmer$II = BaseStemmer$in_range_b$LBaseStemmer$II;
+
+BaseStemmer.prototype.out_range$II = function (min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if (this.cursor >= this.limit) {
+ return false;
+ }
+ ch = this.current.charCodeAt(this.cursor);
+ if (! (ch > max || ch < min)) {
+ return false;
+ }
+ ($__jsx_postinc_t = this.cursor, this.cursor = ($__jsx_postinc_t + 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+
+function BaseStemmer$out_range$LBaseStemmer$II($this, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if ($this.cursor >= $this.limit) {
+ return false;
+ }
+ ch = $this.current.charCodeAt($this.cursor);
+ if (! (ch > max || ch < min)) {
+ return false;
+ }
+ ($__jsx_postinc_t = $this.cursor, $this.cursor = ($__jsx_postinc_t + 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+BaseStemmer.out_range$LBaseStemmer$II = BaseStemmer$out_range$LBaseStemmer$II;
+
+BaseStemmer.prototype.out_range_b$II = function (min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if (this.cursor <= this.limit_backward) {
+ return false;
+ }
+ ch = this.current.charCodeAt(this.cursor - 1);
+ if (! (ch > max || ch < min)) {
+ return false;
+ }
+ ($__jsx_postinc_t = this.cursor, this.cursor = ($__jsx_postinc_t - 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+
+function BaseStemmer$out_range_b$LBaseStemmer$II($this, min, max) {
+ var ch;
+ var $__jsx_postinc_t;
+ if ($this.cursor <= $this.limit_backward) {
+ return false;
+ }
+ ch = $this.current.charCodeAt($this.cursor - 1);
+ if (! (ch > max || ch < min)) {
+ return false;
+ }
+ ($__jsx_postinc_t = $this.cursor, $this.cursor = ($__jsx_postinc_t - 1) | 0, $__jsx_postinc_t);
+ return true;
+};
+
+BaseStemmer.out_range_b$LBaseStemmer$II = BaseStemmer$out_range_b$LBaseStemmer$II;
+
+BaseStemmer.prototype.eq_s$IS = function (s_size, s) {
+ var cursor$0;
+ if (((this.limit - this.cursor) | 0) < s_size) {
+ return false;
+ }
+ if (this.current.slice(cursor$0 = this.cursor, ((cursor$0 + s_size) | 0)) !== s) {
+ return false;
+ }
+ this.cursor = (this.cursor + s_size) | 0;
+ return true;
+};
+
+
+function BaseStemmer$eq_s$LBaseStemmer$IS($this, s_size, s) {
+ var cursor$0;
+ if ((($this.limit - $this.cursor) | 0) < s_size) {
+ return false;
+ }
+ if ($this.current.slice(cursor$0 = $this.cursor, ((cursor$0 + s_size) | 0)) !== s) {
+ return false;
+ }
+ $this.cursor = ($this.cursor + s_size) | 0;
+ return true;
+};
+
+BaseStemmer.eq_s$LBaseStemmer$IS = BaseStemmer$eq_s$LBaseStemmer$IS;
+
+BaseStemmer.prototype.eq_s_b$IS = function (s_size, s) {
+ var cursor$0;
+ if (((this.cursor - this.limit_backward) | 0) < s_size) {
+ return false;
+ }
+ if (this.current.slice((((cursor$0 = this.cursor) - s_size) | 0), cursor$0) !== s) {
+ return false;
+ }
+ this.cursor = (this.cursor - s_size) | 0;
+ return true;
+};
+
+
+function BaseStemmer$eq_s_b$LBaseStemmer$IS($this, s_size, s) {
+ var cursor$0;
+ if ((($this.cursor - $this.limit_backward) | 0) < s_size) {
+ return false;
+ }
+ if ($this.current.slice((((cursor$0 = $this.cursor) - s_size) | 0), cursor$0) !== s) {
+ return false;
+ }
+ $this.cursor = ($this.cursor - s_size) | 0;
+ return true;
+};
+
+BaseStemmer.eq_s_b$LBaseStemmer$IS = BaseStemmer$eq_s_b$LBaseStemmer$IS;
+
+BaseStemmer.prototype.eq_v$S = function (s) {
+ return BaseStemmer$eq_s$LBaseStemmer$IS(this, s.length, s);
+};
+
+
+function BaseStemmer$eq_v$LBaseStemmer$S($this, s) {
+ return BaseStemmer$eq_s$LBaseStemmer$IS($this, s.length, s);
+};
+
+BaseStemmer.eq_v$LBaseStemmer$S = BaseStemmer$eq_v$LBaseStemmer$S;
+
+BaseStemmer.prototype.eq_v_b$S = function (s) {
+ return BaseStemmer$eq_s_b$LBaseStemmer$IS(this, s.length, s);
+};
+
+
+function BaseStemmer$eq_v_b$LBaseStemmer$S($this, s) {
+ return BaseStemmer$eq_s_b$LBaseStemmer$IS($this, s.length, s);
+};
+
+BaseStemmer.eq_v_b$LBaseStemmer$S = BaseStemmer$eq_v_b$LBaseStemmer$S;
+
+BaseStemmer.prototype.find_among$ALAmong$I = function (v, v_size) {
+ var i;
+ var j;
+ var c;
+ var l;
+ var common_i;
+ var common_j;
+ var first_key_inspected;
+ var k;
+ var diff;
+ var common;
+ var w;
+ var i2;
+ var res;
+ i = 0;
+ j = v_size;
+ c = this.cursor;
+ l = this.limit;
+ common_i = 0;
+ common_j = 0;
+ first_key_inspected = false;
+ while (true) {
+ k = i + (j - i >>> 1);
+ diff = 0;
+ common = (common_i < common_j ? common_i : common_j);
+ w = v[k];
+ for (i2 = common; i2 < w.s_size; i2++) {
+ if (c + common === l) {
+ diff = -1;
+ break;
+ }
+ diff = this.current.charCodeAt(c + common) - w.s.charCodeAt(i2);
+ if (diff !== 0) {
+ break;
+ }
+ common++;
+ }
+ if (diff < 0) {
+ j = k;
+ common_j = common;
+ } else {
+ i = k;
+ common_i = common;
+ }
+ if (j - i <= 1) {
+ if (i > 0) {
+ break;
+ }
+ if (j === i) {
+ break;
+ }
+ if (first_key_inspected) {
+ break;
+ }
+ first_key_inspected = true;
+ }
+ }
+ while (true) {
+ w = v[i];
+ if (common_i >= w.s_size) {
+ this.cursor = (c + w.s_size | 0);
+ if (w.method == null) {
+ return w.result;
+ }
+ res = w.method(w.instance);
+ this.cursor = (c + w.s_size | 0);
+ if (res) {
+ return w.result;
+ }
+ }
+ i = w.substring_i;
+ if (i < 0) {
+ return 0;
+ }
+ }
+ return -1;
+};
+
+
+function BaseStemmer$find_among$LBaseStemmer$ALAmong$I($this, v, v_size) {
+ var i;
+ var j;
+ var c;
+ var l;
+ var common_i;
+ var common_j;
+ var first_key_inspected;
+ var k;
+ var diff;
+ var common;
+ var w;
+ var i2;
+ var res;
+ i = 0;
+ j = v_size;
+ c = $this.cursor;
+ l = $this.limit;
+ common_i = 0;
+ common_j = 0;
+ first_key_inspected = false;
+ while (true) {
+ k = i + (j - i >>> 1);
+ diff = 0;
+ common = (common_i < common_j ? common_i : common_j);
+ w = v[k];
+ for (i2 = common; i2 < w.s_size; i2++) {
+ if (c + common === l) {
+ diff = -1;
+ break;
+ }
+ diff = $this.current.charCodeAt(c + common) - w.s.charCodeAt(i2);
+ if (diff !== 0) {
+ break;
+ }
+ common++;
+ }
+ if (diff < 0) {
+ j = k;
+ common_j = common;
+ } else {
+ i = k;
+ common_i = common;
+ }
+ if (j - i <= 1) {
+ if (i > 0) {
+ break;
+ }
+ if (j === i) {
+ break;
+ }
+ if (first_key_inspected) {
+ break;
+ }
+ first_key_inspected = true;
+ }
+ }
+ while (true) {
+ w = v[i];
+ if (common_i >= w.s_size) {
+ $this.cursor = (c + w.s_size | 0);
+ if (w.method == null) {
+ return w.result;
+ }
+ res = w.method(w.instance);
+ $this.cursor = (c + w.s_size | 0);
+ if (res) {
+ return w.result;
+ }
+ }
+ i = w.substring_i;
+ if (i < 0) {
+ return 0;
+ }
+ }
+ return -1;
+};
+
+BaseStemmer.find_among$LBaseStemmer$ALAmong$I = BaseStemmer$find_among$LBaseStemmer$ALAmong$I;
+
+BaseStemmer.prototype.find_among_b$ALAmong$I = function (v, v_size) {
+ var i;
+ var j;
+ var c;
... 42138 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx.git
More information about the Python-modules-commits
mailing list