1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-09-28 14:30:51 +00:00

Xomw: Move Mw_parse classes into separate project

This commit is contained in:
gnosygnu 2017-02-08 17:38:39 -05:00
parent fdf6c49a05
commit 9a19be675e
117 changed files with 394 additions and 260 deletions

View File

@ -84,6 +84,10 @@ public class String_ {
public static boolean Has_at_end(String s, String v) {return s.endsWith(v);} public static boolean Has_at_end(String s, String v) {return s.endsWith(v);}
public static int FindFwd(String s, String find) {return s.indexOf(find);} public static int FindFwd(String s, String find) {return s.indexOf(find);}
public static int FindFwd(String s, String find, int pos) {return s.indexOf(find, pos);} public static int FindFwd(String s, String find, int pos) {return s.indexOf(find, pos);}
public static int FindFwd(String s, String find, int bgn, int end) {
int rv = FindFwd(s, find, bgn);
return rv > end ? String_.Find_none : rv;
}
public static int FindBwd(String s, String find) {return s.lastIndexOf(find);} public static int FindBwd(String s, String find) {return s.lastIndexOf(find);}
public static int FindBwd(String s, String find, int pos) { public static int FindBwd(String s, String find, int pos) {
return s.lastIndexOf(find, pos); return s.lastIndexOf(find, pos);

View File

@ -141,7 +141,7 @@ public class Xoa_ttl { // PAGE:en.w:http://en.wikipedia.org/wiki/Help:Link; REF.
public byte[] Get_prefixed_db_key() {return Full_db();} public byte[] Get_prefixed_db_key() {return Full_db();}
public boolean Has_fragment() {return anch_bgn != -1;} public boolean Has_fragment() {return anch_bgn != -1;}
public byte[] Get_fragment() {return Anch_txt();} public byte[] Get_fragment() {return Anch_txt();}
public byte[] Get_link_url(gplx.xowa.mws.htmls.Xomw_qry_mgr qry_mgr, boolean query2, boolean proto) { public byte[] Get_link_url(Object qry_mgr, boolean query2, boolean proto) {
// if ( $this->isExternal() || $proto !== false ) { // if ( $this->isExternal() || $proto !== false ) {
// $ret = $this->getFullURL( $query, $query2, $proto ); // $ret = $this->getFullURL( $query, $query2, $proto );
// } // }

View File

@ -0,0 +1,22 @@
/*
XOWA: the XOWA Offline Wiki Application
Copyright (C) 2012 gnosygnu@gmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package gplx.xowa.mediawiki.includes.parsers.headingsOld; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public interface Xomw_heading_cbk {
void On_hdr_seen(Xomw_heading_wkr wkr);
void On_src_done(Xomw_heading_wkr wkr);
}

View File

@ -0,0 +1,98 @@
/*
XOWA: the XOWA Offline Wiki Application
Copyright (C) 2012 gnosygnu@gmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package gplx.xowa.mediawiki.includes.parsers.headingsOld; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.core.btries.*; import gplx.xowa.langs.*;
public class Xomw_heading_wkr {
private Xomw_heading_cbk cbk;
public byte[] Src() {return src;} private byte[] src;
public int Src_end() {return src_end;} private int src_end;
public int Txt_bgn() {return txt_bgn;} private int txt_bgn;
public int Hdr_bgn() {return hdr_bgn;} private int hdr_bgn;
public int Hdr_end() {return hdr_end;} private int hdr_end;
public int Hdr_num() {return hdr_num;} private int hdr_num;
public int Hdr_lhs_bgn() {return hdr_lhs_bgn;} private int hdr_lhs_bgn;
public int Hdr_lhs_end() {return hdr_lhs_end;} private int hdr_lhs_end;
public int Hdr_rhs_bgn() {return hdr_rhs_bgn;} private int hdr_rhs_bgn;
public int Hdr_rhs_end() {return hdr_rhs_end;} private int hdr_rhs_end;
public void Parse(byte[] src, int src_bgn, int src_end, Xomw_heading_cbk cbk) { // REF.MW: /includes/parser/Parser.php|doHeadings
// init members
this.src = src;
this.src_end = src_end;
this.cbk = cbk;
// PORTED:
// for ( $i = 6; $i >= 1; --$i ) {
// $h = str_repeat( '=', $i );
// $text = preg_replace( "/^$h(.+)$h\\s*$/m", "<h$i>\\1</h$i>", $text );
// }
// do loop
int pos = src_bgn;
this.txt_bgn = pos == -1 ? 0 : pos;
byte b = Byte_ascii.Nl;
while (true) {
int nxt = pos + 1;
// check if (a) cur is \n; (b) nxt is '='
if ( b == Byte_ascii.Nl
&& nxt < src_end
&& src[nxt] == Byte_ascii.Eq
) {
pos = Parse_hdr_nl(txt_bgn, pos, nxt + 1);
this.txt_bgn = pos;
}
else
++pos;
// EOS; add all text after last "==\n"
if (pos == src_end) {
cbk.On_src_done(this);
break;
}
b = src[pos];
}
}
private int Parse_hdr_nl(int txt_bgn, int nl_lhs, int pos) {
// calc lhs vars
this.hdr_bgn = nl_lhs;
this.hdr_lhs_bgn = nl_lhs == 0 ? 0 : nl_lhs + 1; // set pos of 1st "="; note that "==" can be at BOS;
this.hdr_lhs_end = Bry_find_.Find_fwd_while(src, pos, src_end, Byte_ascii.Eq);
// calc rhs vars
int nl_rhs = Bry_find_.Find_fwd_or(src, Byte_ascii.Nl, hdr_lhs_end + 1, src_end, src_end); // if no "\n", src_end is rest of text; EX: "\n==<text>EOS
this.hdr_end = nl_rhs;
this.hdr_rhs_end = Bry_find_.Find_bwd__skip_ws(src, nl_rhs, hdr_lhs_end);
this.hdr_rhs_bgn = Bry_find_.Find_bwd__skip(src, hdr_rhs_end - 1, hdr_lhs_end, Byte_ascii.Eq);
int hdr_lhs_len = hdr_lhs_end - hdr_lhs_bgn;
int hdr_rhs_len = hdr_rhs_end - hdr_rhs_bgn;
// handle rare situations like "\n====\n"
if (hdr_rhs_len == 0) {
int hdr_lhs_len_half = hdr_lhs_len / 2;
hdr_rhs_len = hdr_lhs_len - hdr_lhs_len_half;
hdr_lhs_len = hdr_lhs_len_half;
this.hdr_lhs_end = hdr_lhs_bgn + hdr_lhs_len;
this.hdr_rhs_bgn = hdr_lhs_end;
}
this.hdr_num = hdr_lhs_len < hdr_rhs_len ? hdr_lhs_len : hdr_rhs_len;
cbk.On_hdr_seen(this);
return nl_rhs;
}
}

View File

@ -16,7 +16,7 @@ You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.parsers.hdrs.sections; import gplx.*; import gplx.xowa.*; import gplx.xowa.parsers.*; import gplx.xowa.parsers.hdrs.*; package gplx.xowa.parsers.hdrs.sections; import gplx.*; import gplx.xowa.*; import gplx.xowa.parsers.*; import gplx.xowa.parsers.hdrs.*;
import gplx.xowa.mws.parsers.*; import gplx.xowa.mws.parsers.headings.*; import gplx.xowa.mediawiki.includes.parsers.headingsOld.*;
import gplx.xowa.addons.htmls.tocs.*; import gplx.xowa.htmls.core.htmls.tidy.*; import gplx.xowa.addons.htmls.tocs.*; import gplx.xowa.htmls.core.htmls.tidy.*;
class Xop_section_list implements Xomw_heading_cbk { class Xop_section_list implements Xomw_heading_cbk {
private final Xomw_heading_wkr hdr_wkr = new Xomw_heading_wkr(); private final Xomw_heading_wkr hdr_wkr = new Xomw_heading_wkr();
@ -34,8 +34,7 @@ class Xop_section_list implements Xomw_heading_cbk {
toc_mgr.Init(tidy_mgr, Bry_.Empty, Bry_.Empty); toc_mgr.Init(tidy_mgr, Bry_.Empty, Bry_.Empty);
// parse // parse
Xomw_parser_ctx pctx = new Xomw_parser_ctx(); hdr_wkr.Parse(src, 0, src.length, this);
hdr_wkr.Parse(pctx, src, 0, src.length, this);
return this; return this;
} }
public byte[] Slice_bry_or_null(byte[] key) { public byte[] Slice_bry_or_null(byte[] key) {
@ -92,7 +91,7 @@ class Xop_section_list implements Xomw_heading_cbk {
return new int[] {src_bgn, src_end}; return new int[] {src_bgn, src_end};
} }
public void On_hdr_seen(Xomw_parser_ctx pctx, Xomw_heading_wkr wkr) { public void On_hdr_seen(Xomw_heading_wkr wkr) {
// get key by taking everything between ==; EX: "== abc ==" -> " abc " // get key by taking everything between ==; EX: "== abc ==" -> " abc "
byte[] src = wkr.Src(); byte[] src = wkr.Src();
int hdr_txt_bgn = wkr.Hdr_lhs_end(); int hdr_txt_bgn = wkr.Hdr_lhs_end();
@ -117,5 +116,5 @@ class Xop_section_list implements Xomw_heading_cbk {
Xop_section_itm itm = new Xop_section_itm(hash.Count(), num, key, wkr.Hdr_bgn(), wkr.Hdr_end()); Xop_section_itm itm = new Xop_section_itm(hash.Count(), num, key, wkr.Hdr_bgn(), wkr.Hdr_end());
hash.Add(key, itm); hash.Add(key, itm);
} }
public void On_src_done(Xomw_parser_ctx pctx, Xomw_heading_wkr wkr) {} public void On_src_done(Xomw_heading_wkr wkr) {}
} }

View File

@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.parsers.hdrs.sections; import gplx.*; import gplx.xowa.*; import gplx.xowa.parsers.*; import gplx.xowa.parsers.hdrs.*; package gplx.xowa.parsers.hdrs.sections; import gplx.*; import gplx.xowa.*; import gplx.xowa.parsers.*; import gplx.xowa.parsers.hdrs.*;
import gplx.langs.htmls.*; import gplx.langs.htmls.*;
import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; import gplx.xowa.parsers.hdrs.*; import gplx.xowa.htmls.core.htmls.tidy.*; import gplx.xowa.mediawiki.includes.parsers.headingsOld.*; import gplx.xowa.parsers.hdrs.*; import gplx.xowa.htmls.core.htmls.tidy.*;
public class Xop_section_mgr implements Gfo_invk { public class Xop_section_mgr implements Gfo_invk {
private Xoae_app app; private Xowe_wiki wiki; private Xoae_app app; private Xowe_wiki wiki;
private Xow_tidy_mgr_interface tidy_mgr; private Xow_tidy_mgr_interface tidy_mgr;

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/100_core"/>
<classpathentry combineaccessrules="false" kind="src" path="/140_dbs"/>
<classpathentry combineaccessrules="false" kind="src" path="/150_gfui"/>
<classpathentry combineaccessrules="false" kind="src" path="/400_xowa"/>
<classpathentry kind="lib" path="C:/000/200_dev/110_java/lib/junit.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
public class Xomw_MagicWord { public class Xomw_MagicWord {
public boolean case_match; public boolean case_match;
public byte[] name; public byte[] name;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
import gplx.core.btries.*; import gplx.core.primitives.*; import gplx.core.btries.*; import gplx.core.primitives.*;
public class Xomw_MagicWordArray { public class Xomw_MagicWordArray {
private Btrie_slim_mgr fwd_trie; private Btrie_slim_mgr fwd_trie;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
public class Xomw_MagicWordArray__tst { public class Xomw_MagicWordArray__tst {
private final Xomw_MagicWordArray__fxt fxt = new Xomw_MagicWordArray__fxt(); private final Xomw_MagicWordArray__fxt fxt = new Xomw_MagicWordArray__fxt();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
public class Xomw_MagicWordMgr { public class Xomw_MagicWordMgr {
private final Hash_adp_bry hash = Hash_adp_bry.cs(); private final Hash_adp_bry hash = Hash_adp_bry.cs();
public void Add(byte[] name, boolean cs, byte[]... synonyms) { public void Add(byte[] name, boolean cs, byte[]... synonyms) {

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
public class Xomw_MagicWordSynonym { public class Xomw_MagicWordSynonym {
public final byte[] magic_name; public final byte[] magic_name;
public final boolean case_match; public final boolean case_match;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
public class Xomw_Message { public class Xomw_Message {
public byte[] text() {return null;} public byte[] text() {return null;}
public byte[] escaped() {return null;} public byte[] escaped() {return null;}

View File

@ -15,14 +15,14 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
/** /**
* Represents a title within MediaWiki. * Represents a title within MediaWiki.
* Optionally may contain an interwiki designation or name_space. * Optionally may contain an interwiki designation or namespace.
* @note This class can fetch various kinds of data from the database; * @note This class can fetch various kinds of data from the database;
* however, it does so inefficiently. * however, it does so inefficiently.
* @note Consider us_ing a TitleValue Object instead. TitleValue is more lightweight * @note Consider using a TitleValue Object instead. TitleValue is more lightweight
* and does not rely on global state or the database. * and does not rely on global state or the database.
*/ */
public class Xomw_Title { public class Xomw_Title {
@ -119,14 +119,14 @@ public class Xomw_Title {
// /** @var boolean Boolean for initialisation on demand */ // /** @var boolean Boolean for initialisation on demand */
// public $mRestrictionsLoaded = false; // public $mRestrictionsLoaded = false;
// //
// /** @var String Text form including name_space/interwiki, initialised on demand */ // /** @var String Text form including namespace/interwiki, initialised on demand */
// protected $mPrefixedText = null; // protected $mPrefixedText = null;
// //
// /** @var mixed Cached value for getTitleProtection (create protection) */ // /** @var mixed Cached value for getTitleProtection (create protection) */
// public $mTitleProtection; // public $mTitleProtection;
// //
// /** // /**
// * @var int Namespace index when there is no name_space. Don't change the // * @var int Namespace index when there is no namespace. Don't change the
// * following default, NS_MAIN is hardcoded in several places. See bug 696. // * following default, NS_MAIN is hardcoded in several places. See bug 696.
// * Zero except in {{transclusion}} tags. // * Zero except in {{transclusion}} tags.
// */ // */
@ -161,7 +161,7 @@ public class Xomw_Title {
// /** // /**
// * B/C kludge: provide a TitleParser for use by Title. // * B/C kludge: provide a TitleParser for use by Title.
// * Ideally, Title would have no methods that need this. // * Ideally, Title would have no methods that need this.
// * Avoid usage of this singleton by us_ing TitleValue // * Avoid usage of this singleton by using TitleValue
// * and the associated services when possible. // * and the associated services when possible.
// * // *
// * @return TitleFormatter // * @return TitleFormatter
@ -173,7 +173,7 @@ public class Xomw_Title {
// /** // /**
// * B/C kludge: provide an InterwikiLookup for use by Title. // * B/C kludge: provide an InterwikiLookup for use by Title.
// * Ideally, Title would have no methods that need this. // * Ideally, Title would have no methods that need this.
// * Avoid usage of this singleton by us_ing TitleValue // * Avoid usage of this singleton by using TitleValue
// * and the associated services when possible. // * and the associated services when possible.
// * // *
// * @return InterwikiLookup // * @return InterwikiLookup
@ -192,7 +192,7 @@ public class Xomw_Title {
// * Create a new Title from a prefixed DB key // * Create a new Title from a prefixed DB key
// * // *
// * @param String $key The database key, which has underscores // * @param String $key The database key, which has underscores
// * instead of spaces, possibly including name_space and // * instead of spaces, possibly including namespace and
// * interwiki prefixes // * interwiki prefixes
// * @return Title|null Title, or null on an error // * @return Title|null Title, or null on an error
// */ // */
@ -244,10 +244,10 @@ public class Xomw_Title {
// * codes any HTML entities in the text. // * codes any HTML entities in the text.
// * // *
// * @param String|int|null $text The link text; spaces, prefixes, and an // * @param String|int|null $text The link text; spaces, prefixes, and an
// * initial ':' indicating the main name_space are accepted. // * initial ':' indicating the main namespace are accepted.
// * @param int $defaultNamespace The name_space to use if none is specified // * @param int $defaultNamespace The namespace to use if none is specified
// * by a prefix. If you want to force a specific name_space even if // * by a prefix. If you want to force a specific namespace even if
// * $text might begin with a name_space prefix, use makeTitle() or // * $text might begin with a namespace prefix, use makeTitle() or
// * makeTitleSafe(). // * makeTitleSafe().
// * @throws InvalidArgumentException // * @throws InvalidArgumentException
// * @return Title|null Title or null on an error. // * @return Title|null Title or null on an error.
@ -489,13 +489,13 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Create a new Title from a name_space index and a DB key. // * Create a new Title from a namespace index and a DB key.
// * It's assumed that $ns and $title are *valid*, for instance when // * It's assumed that $ns and $title are *valid*, for instance when
// * they came directly from the database or a special page name. // * they came directly from the database or a special page name.
// * For convenience, spaces are converted to underscores so that // * For convenience, spaces are converted to underscores so that
// * eg user_text fields can be used directly. // * eg user_text fields can be used directly.
// * // *
// * @param int $ns The name_space of the article // * @param int $ns The namespace of the article
// * @param String $title The unprefixed database key form // * @param String $title The unprefixed database key form
// * @param String $fragment The link fragment (after the "#") // * @param String $fragment The link fragment (after the "#")
// * @param String $interwiki The interwiki prefix // * @param String $interwiki The interwiki prefix
@ -515,11 +515,11 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Create a new Title from a name_space index and a DB key. // * Create a new Title from a namespace index and a DB key.
// * The parameters will be checked for validity, which is a bit slower // * The parameters will be checked for validity, which is a bit slower
// * than makeTitle() but safer for user-provided data. // * than makeTitle() but safer for user-provided data.
// * // *
// * @param int $ns The name_space of the article // * @param int $ns The namespace of the article
// * @param String $title Database key form // * @param String $title Database key form
// * @param String $fragment The link fragment (after the "#") // * @param String $fragment The link fragment (after the "#")
// * @param String $interwiki Interwiki prefix // * @param String $interwiki Interwiki prefix
@ -705,9 +705,9 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Make a prefixed DB key from a DB key and a name_space index // * Make a prefixed DB key from a DB key and a namespace index
// * // *
// * @param int $ns Numerical representation of the name_space // * @param int $ns Numerical representation of the namespace
// * @param String $title The DB key form the title // * @param String $title The DB key form the title
// * @param String $fragment The link fragment (after the "#") // * @param String $fragment The link fragment (after the "#")
// * @param String $interwiki The interwiki prefix // * @param String $interwiki The interwiki prefix
@ -721,11 +721,11 @@ public class Xomw_Title {
// global $wgContLang; // global $wgContLang;
// //
// if ($canonicalNamespace) { // if ($canonicalNamespace) {
// $name_space = MWNamespace::getCanonicalName($ns); // $namespace = MWNamespace::getCanonicalName($ns);
// } else { // } else {
// $name_space = $wgContLang.getNsText($ns); // $namespace = $wgContLang.getNsText($ns);
// } // }
// $name = $name_space == '' ? $title : "$name_space:$title"; // $name = $namespace == '' ? $title : "$namespace:$title";
// if (strval($interwiki) != '') { // if (strval($interwiki) != '') {
// $name = "$interwiki:$name"; // $name = "$interwiki:$name";
// } // }
@ -750,12 +750,12 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Callback for usort() to do title sorts by (name_space, title) // * Callback for usort() to do title sorts by (namespace, title)
// * // *
// * @param LinkTarget $a // * @param LinkTarget $a
// * @param LinkTarget $b // * @param LinkTarget $b
// * // *
// * @return int Result of String comparison, or name_space comparison // * @return int Result of String comparison, or namespace comparison
// */ // */
// public static function compare(LinkTarget $a, LinkTarget $b) { // public static function compare(LinkTarget $a, LinkTarget $b) {
// if ($a.getNamespace() == $b.getNamespace()) { // if ($a.getNamespace() == $b.getNamespace()) {
@ -907,7 +907,7 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Get the name_space index, i.e. one of the NS_xxxx constants. // * Get the namespace index, i.e. one of the NS_xxxx constants.
// * // *
// * @return int Namespace index // * @return int Namespace index
// */ // */
@ -965,7 +965,7 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Get the name_space text // * Get the namespace text
// * // *
// * @return String|false Namespace text // * @return String|false Namespace text
// */ // */
@ -974,7 +974,7 @@ public class Xomw_Title {
// // This probably shouldn't even happen, // // This probably shouldn't even happen,
// // but for interwiki transclusion it sometimes does. // // but for interwiki transclusion it sometimes does.
// // Use the canonical namespaces if possible to try to // // Use the canonical namespaces if possible to try to
// // resolve a foreign name_space. // // resolve a foreign namespace.
// if (MWNamespace::exists($this.mNamespace)) { // if (MWNamespace::exists($this.mNamespace)) {
// return MWNamespace::getCanonicalName($this.mNamespace); // return MWNamespace::getCanonicalName($this.mNamespace);
// } // }
@ -990,7 +990,7 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Get the name_space text of the subject (rather than talk) page // * Get the namespace text of the subject (rather than talk) page
// * // *
// * @return String Namespace text // * @return String Namespace text
// */ // */
@ -1000,7 +1000,7 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Get the name_space text of the talk page // * Get the namespace text of the talk page
// * // *
// * @return String Namespace text // * @return String Namespace text
// */ // */
@ -1019,7 +1019,7 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Is this in a name_space that allows actual pages? // * Is this in a namespace that allows actual pages?
// * // *
// * @return boolean // * @return boolean
// */ // */
@ -1081,12 +1081,12 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Returns true if the title is inside the specified name_space. // * Returns true if the title is inside the specified namespace.
// * // *
// * Please make use of this instead of comparing to getNamespace() // * Please make use of this instead of comparing to getNamespace()
// * This function is much more resistant to changes we may make // * This function is much more resistant to changes we may make
// * to namespaces than code that makes direct comparisons. // * to namespaces than code that makes direct comparisons.
// * @param int $ns The name_space // * @param int $ns The namespace
// * @return boolean // * @return boolean
// * @since 1.19 // * @since 1.19
// */ // */
@ -1117,11 +1117,11 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Returns true if the title has the same subject name_space as the // * Returns true if the title has the same subject namespace as the
// * name_space specified. // * namespace specified.
// * For example this method will take NS_USER and return true if name_space // * For example this method will take NS_USER and return true if namespace
// * is either NS_USER or NS_USER_TALK since both of them have NS_USER // * is either NS_USER or NS_USER_TALK since both of them have NS_USER
// * as their subject name_space. // * as their subject namespace.
// * // *
// * This is MUCH simpler than individually testing for equivalence // * This is MUCH simpler than individually testing for equivalence
// * against both NS_USER and NS_USER_TALK, and is also forward compatible. // * against both NS_USER and NS_USER_TALK, and is also forward compatible.
@ -1134,7 +1134,7 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Is this Title in a name_space which contains content? // * Is this Title in a namespace which contains content?
// * In other words, is this a content page, for the purposes of calculating // * In other words, is this a content page, for the purposes of calculating
// * statistics, etc? // * statistics, etc?
// * // *
@ -1152,7 +1152,7 @@ public class Xomw_Title {
// */ // */
// public function isMovable() { // public function isMovable() {
// if (!MWNamespace::isMovable($this.getNamespace()) || $this.isExternal()) { // if (!MWNamespace::isMovable($this.getNamespace()) || $this.isExternal()) {
// // Interwiki title or immovable name_space. Hooks don't get to override here // // Interwiki title or immovable namespace. Hooks don't get to override here
// return false; // return false;
// } // }
// //
@ -1209,7 +1209,7 @@ public class Xomw_Title {
// //
// /** // /**
// * Could this page contain custom CSS or JavaScript for the global UI. // * Could this page contain custom CSS or JavaScript for the global UI.
// * This is generally true for pages in the MediaWiki name_space having CONTENT_MODEL_CSS // * This is generally true for pages in the MediaWiki namespace having CONTENT_MODEL_CSS
// * or CONTENT_MODEL_JAVASCRIPT. // * or CONTENT_MODEL_JAVASCRIPT.
// * // *
// * This method does *not* return true for per-user JS/CSS. Use isCssJsSubpage() // * This method does *not* return true for per-user JS/CSS. Use isCssJsSubpage()
@ -1328,9 +1328,9 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Get the default name_space index, for when there is no name_space // * Get the default namespace index, for when there is no namespace
// * // *
// * @return int Default name_space index // * @return int Default namespace index
// */ // */
// public function getDefaultNamespace() { // public function getDefaultNamespace() {
// return $this.mDefaultNamespace; // return $this.mDefaultNamespace;
@ -1402,7 +1402,7 @@ public class Xomw_Title {
// } // }
/** /**
* Prefix some arbitrary text with the name_space or interwiki prefix * Prefix some arbitrary text with the namespace or interwiki prefix
* of this Object * of this Object
* *
* @param String $name The text * @param String $name The text
@ -1424,7 +1424,7 @@ public class Xomw_Title {
* Get the prefixed database key form * Get the prefixed database key form
* *
* @return String The prefixed title, with underscores and * @return String The prefixed title, with underscores and
* any interwiki and name_space prefixes * any interwiki and namespace prefixes
*/ */
public byte[] getPrefixedDBkey() { public byte[] getPrefixedDBkey() {
byte[] s = this.prefix(this.mDbkeyform); byte[] s = this.prefix(this.mDbkeyform);
@ -1471,7 +1471,7 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Get the root page name text without a name_space, i.e. the leftmost part before any slashes // * Get the root page name text without a namespace, i.e. the leftmost part before any slashes
// * // *
// * @par Example: // * @par Example:
// * @code // * @code
@ -1507,7 +1507,7 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Get the super page name without a name_space, i.e. the part before the subpage name // * Get the super page name without a namespace, i.e. the part before the subpage name
// * // *
// * @par Example: // * @par Example:
// * @code // * @code
@ -1705,13 +1705,13 @@ public class Xomw_Title {
// //
// interwiki = self::getInterwikiLookup().fetch(this.mInterwiki); // interwiki = self::getInterwikiLookup().fetch(this.mInterwiki);
// if (interwiki) { // if (interwiki) {
// name_space = this.getNsText(); // namespace = this.getNsText();
// if (name_space != '') { // if (namespace != '') {
// # Can this actually happen? Interwikis shouldn't be parsed. // # Can this actually happen? Interwikis shouldn't be parsed.
// # Yes! It can in interwiki transclusion. But... it probably shouldn't. // # Yes! It can in interwiki transclusion. But... it probably shouldn't.
// name_space .= ':'; // namespace .= ':';
// } // }
// url = interwiki.getURL(name_space . this.getDBkey()); // url = interwiki.getURL(namespace . this.getDBkey());
// url = wfAppendQuery(url, query); // url = wfAppendQuery(url, query);
// } else { // } else {
// byte[] dbkey = wfUrlencode(this.getPrefixedDBkey()); // byte[] dbkey = wfUrlencode(this.getPrefixedDBkey());
@ -1906,7 +1906,7 @@ public class Xomw_Title {
// * @param String $rigor One of (quick,full,secure) // * @param String $rigor One of (quick,full,secure)
// * - quick : does cheap permission checks from replica DBs (usable for GUI creation) // * - quick : does cheap permission checks from replica DBs (usable for GUI creation)
// * - full : does cheap and expensive checks possibly from a replica DB // * - full : does cheap and expensive checks possibly from a replica DB
// * - secure : does cheap and expensive checks, us_ing the master as needed // * - secure : does cheap and expensive checks, using the master as needed
// * @param array $ignoreErrors Array of Strings Set this to a list of message keys // * @param array $ignoreErrors Array of Strings Set this to a list of message keys
// * whose corresponding errors may be ignored. // * whose corresponding errors may be ignored.
// * @return array Array of arrays of the arguments to wfMessage to explain permissions problems. // * @return array Array of arrays of the arguments to wfMessage to explain permissions problems.
@ -2111,7 +2111,7 @@ public class Xomw_Title {
// */ // */
// private function checkCSSandJSPermissions($action, $user, $errors, $rigor, $short) { // private function checkCSSandJSPermissions($action, $user, $errors, $rigor, $short) {
// # Protect css/js subpages of user pages // # Protect css/js subpages of user pages
// # XXX: this might be better us_ing restrictions // # XXX: this might be better using restrictions
// # XXX: right 'editusercssjs' is deprecated, for backward compatibility only // # XXX: right 'editusercssjs' is deprecated, for backward compatibility only
// if ($action != 'patrol' && !$user.isAllowed('editusercssjs')) { // if ($action != 'patrol' && !$user.isAllowed('editusercssjs')) {
// if (preg_match('/^' . preg_quote($user.getName(), '/') . '\//', $this.mTextform)) { // if (preg_match('/^' . preg_quote($user.getName(), '/') . '\//', $this.mTextform)) {
@ -2251,14 +2251,14 @@ public class Xomw_Title {
// // Check for immobile pages // // Check for immobile pages
// if (!MWNamespace::isMovable($this.mNamespace)) { // if (!MWNamespace::isMovable($this.mNamespace)) {
// // Specific message for this case // // Specific message for this case
// $errors[] = [ 'immobile-source-name_space', $this.getNsText() ]; // $errors[] = [ 'immobile-source-namespace', $this.getNsText() ];
// } elseif (!$this.isMovable()) { // } elseif (!$this.isMovable()) {
// // Less specific message for rarer cases // // Less specific message for rarer cases
// $errors[] = [ 'immobile-source-page' ]; // $errors[] = [ 'immobile-source-page' ];
// } // }
// } elseif ($action == 'move-target') { // } elseif ($action == 'move-target') {
// if (!MWNamespace::isMovable($this.mNamespace)) { // if (!MWNamespace::isMovable($this.mNamespace)) {
// $errors[] = [ 'immobile-target-name_space', $this.getNsText() ]; // $errors[] = [ 'immobile-target-namespace', $this.getNsText() ];
// } elseif (!$this.isMovable()) { // } elseif (!$this.isMovable()) {
// $errors[] = [ 'immobile-target-page' ]; // $errors[] = [ 'immobile-target-page' ];
// } // }
@ -2362,7 +2362,7 @@ public class Xomw_Title {
// $whitelisted = true; // $whitelisted = true;
// } elseif ($this.getNamespace() == NS_MAIN) { // } elseif ($this.getNamespace() == NS_MAIN) {
// # Old settings might have the title prefixed with // # Old settings might have the title prefixed with
// # a colon for main-name_space pages // # a colon for main-namespace pages
// if (in_array(':' . $name, $wgWhitelistRead)) { // if (in_array(':' . $name, $wgWhitelistRead)) {
// $whitelisted = true; // $whitelisted = true;
// } // }
@ -2440,7 +2440,7 @@ public class Xomw_Title {
// * @param String $rigor One of (quick,full,secure) // * @param String $rigor One of (quick,full,secure)
// * - quick : does cheap permission checks from replica DBs (usable for GUI creation) // * - quick : does cheap permission checks from replica DBs (usable for GUI creation)
// * - full : does cheap and expensive checks possibly from a replica DB // * - full : does cheap and expensive checks possibly from a replica DB
// * - secure : does cheap and expensive checks, us_ing the master as needed // * - secure : does cheap and expensive checks, using the master as needed
// * @param boolean $short Set this to true to stop after the first permission error. // * @param boolean $short Set this to true to stop after the first permission error.
// * @return array Array of arrays of the arguments to wfMessage to explain permissions problems. // * @return array Array of arrays of the arguments to wfMessage to explain permissions problems.
// */ // */
@ -3082,7 +3082,7 @@ public class Xomw_Title {
// * Get all subpages of this page. // * Get all subpages of this page.
// * // *
// * @param int $limit Maximum number of subpages to fetch; -1 for no limit // * @param int $limit Maximum number of subpages to fetch; -1 for no limit
// * @return TitleArray|array TitleArray, or empty array if this page's name_space // * @return TitleArray|array TitleArray, or empty array if this page's namespace
// * doesn't allow subpages // * doesn't allow subpages
// */ // */
// public function getSubpages($limit = -1) { // public function getSubpages($limit = -1) {
@ -3316,7 +3316,7 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Capitalize a text String for a title if it belongs to a name_space that capitalizes // * Capitalize a text String for a title if it belongs to a namespace that capitalizes
// * // *
// * @param String $text Containing title to capitalize // * @param String $text Containing title to capitalize
// * @param int $ns Namespace index, defaults to NS_MAIN // * @param int $ns Namespace index, defaults to NS_MAIN
@ -3338,7 +3338,7 @@ public class Xomw_Title {
// * Assumes that mDbkeyform has been set, and is urldecoded // * Assumes that mDbkeyform has been set, and is urldecoded
// * and uses underscores, but not otherwise munged. This function // * and uses underscores, but not otherwise munged. This function
// * removes illegal characters, splits off the interwiki and // * removes illegal characters, splits off the interwiki and
// * name_space prefixes, sets the other forms, and canonicalizes // * namespace prefixes, sets the other forms, and canonicalizes
// * everything. // * everything.
// * // *
// * @throws MalformedTitleException On invalid titles // * @throws MalformedTitleException On invalid titles
@ -3365,7 +3365,7 @@ public class Xomw_Title {
// $this.setFragment('#' . $parts['fragment']); // $this.setFragment('#' . $parts['fragment']);
// $this.mInterwiki = $parts['interwiki']; // $this.mInterwiki = $parts['interwiki'];
// $this.mLocalInterwiki = $parts['local_interwiki']; // $this.mLocalInterwiki = $parts['local_interwiki'];
// $this.mNamespace = $parts['name_space']; // $this.mNamespace = $parts['namespace'];
// $this.mUserCaseDBKey = $parts['user_case_dbkey']; // $this.mUserCaseDBKey = $parts['user_case_dbkey'];
// //
// $this.mDbkeyform = $parts['dbkey']; // $this.mDbkeyform = $parts['dbkey'];
@ -3425,7 +3425,7 @@ public class Xomw_Title {
// } // }
// //
// /** // /**
// * Get an array of Title objects us_ing this Title as a template // * Get an array of Title objects using this Title as a template
// * Also stores the IDs in the link cache. // * Also stores the IDs in the link cache.
// * // *
// * WARNING: do not use this function on arbitrary user-supplied titles! // * WARNING: do not use this function on arbitrary user-supplied titles!
@ -3710,12 +3710,12 @@ public class Xomw_Title {
// // Do the source and target namespaces support subpages? // // Do the source and target namespaces support subpages?
// if (!MWNamespace::hasSubpages($this.getNamespace())) { // if (!MWNamespace::hasSubpages($this.getNamespace())) {
// return [ // return [
// [ 'name_space-nosubpages', MWNamespace::getCanonicalName($this.getNamespace()) ], // [ 'namespace-nosubpages', MWNamespace::getCanonicalName($this.getNamespace()) ],
// ]; // ];
// } // }
// if (!MWNamespace::hasSubpages($nt.getNamespace())) { // if (!MWNamespace::hasSubpages($nt.getNamespace())) {
// return [ // return [
// [ 'name_space-nosubpages', MWNamespace::getCanonicalName($nt.getNamespace()) ], // [ 'namespace-nosubpages', MWNamespace::getCanonicalName($nt.getNamespace()) ],
// ]; // ];
// } // }
// //
@ -3843,7 +3843,7 @@ public class Xomw_Title {
// } // }
// $content = $rev.getContent(); // $content = $rev.getContent();
// # Does the redirect point to the source? // # Does the redirect point to the source?
// # Or is it a broken self-redirect, usually caused by name_space collisions? // # Or is it a broken self-redirect, usually caused by namespace collisions?
// $redirTitle = $content ? $content.getRedirectTarget() : null; // $redirTitle = $content ? $content.getRedirectTarget() : null;
// //
// if ($redirTitle) { // if ($redirTitle) {
@ -4489,17 +4489,17 @@ public class Xomw_Title {
// */ // */
// public function getNamespaceKey($prepend = 'nstab-') { // public function getNamespaceKey($prepend = 'nstab-') {
// global $wgContLang; // global $wgContLang;
// // Gets the subject name_space if this title // // Gets the subject namespace if this title
// $name_space = MWNamespace::getSubject($this.getNamespace()); // $namespace = MWNamespace::getSubject($this.getNamespace());
// // Checks if canonical name_space name exists for name_space // // Checks if canonical namespace name exists for namespace
// if (MWNamespace::exists($this.getNamespace())) { // if (MWNamespace::exists($this.getNamespace())) {
// // Uses canonical name_space name // // Uses canonical namespace name
// $namespaceKey = MWNamespace::getCanonicalName($name_space); // $namespaceKey = MWNamespace::getCanonicalName($namespace);
// } else { // } else {
// // Uses text of name_space // // Uses text of namespace
// $namespaceKey = $this.getSubjectNsText(); // $namespaceKey = $this.getSubjectNsText();
// } // }
// // Makes name_space key lowercase // // Makes namespace key lowercase
// $namespaceKey = $wgContLang.lc($namespaceKey); // $namespaceKey = $wgContLang.lc($namespaceKey);
// // Uses main // // Uses main
// if ($namespaceKey == '') { // if ($namespaceKey == '') {
@ -4515,7 +4515,7 @@ public class Xomw_Title {
// /** // /**
// * Get all extant redirects to this Title // * Get all extant redirects to this Title
// * // *
// * @param int|null $ns Single name_space to consider; null to consider all namespaces // * @param int|null $ns Single namespace to consider; null to consider all namespaces
// * @return Title[] Array of Title redirects to this title // * @return Title[] Array of Title redirects to this title
// */ // */
// public function getRedirectsHere($ns = null) { // public function getRedirectsHere($ns = null) {
@ -4602,7 +4602,7 @@ public class Xomw_Title {
// * prefix. This will be fed to Collation::getSortKey() to get a // * prefix. This will be fed to Collation::getSortKey() to get a
// * binary sortkey that can be used for actual sorting. // * binary sortkey that can be used for actual sorting.
// * // *
// * @param String $prefix The prefix to be used, specified us_ing // * @param String $prefix The prefix to be used, specified using
// * {{defaultsort:}} or like [[Category:Foo|prefix]]. Empty for no // * {{defaultsort:}} or like [[Category:Foo|prefix]]. Empty for no
// * prefix. // * prefix.
// * @return String // * @return String
@ -4637,7 +4637,7 @@ public class Xomw_Title {
// global $wgPageLanguageUseDB; // global $wgPageLanguageUseDB;
// //
// // check, if the page language could be saved in the database, and if so and // // check, if the page language could be saved in the database, and if so and
// // the value is not requested already, lookup the page language us_ing LinkCache // // the value is not requested already, lookup the page language using LinkCache
// if ($wgPageLanguageUseDB && $this.mDbPageLanguage === false) { // if ($wgPageLanguageUseDB && $this.mDbPageLanguage === false) {
// $linkCache = LinkCache::singleton(); // $linkCache = LinkCache::singleton();
// $linkCache.addLinkObj($this); // $linkCache.addLinkObj($this);
@ -4730,7 +4730,7 @@ public class Xomw_Title {
// /** // /**
// * Get a list of rendered edit notices for this page. // * Get a list of rendered edit notices for this page.
// * // *
// * Array is keyed by the original message key, and values are rendered us_ing parseAsBlock, so // * Array is keyed by the original message key, and values are rendered using parseAsBlock, so
// * they will already be wrapped in paragraphs. // * they will already be wrapped in paragraphs.
// * // *
// * @since 1.21 // * @since 1.21
@ -4740,7 +4740,7 @@ public class Xomw_Title {
// public function getEditNotices($oldid = 0) { // public function getEditNotices($oldid = 0) {
// $notices = []; // $notices = [];
// //
// // Optional notice for the entire name_space // // Optional notice for the entire namespace
// $editnotice_ns = 'editnotice-' . $this.getNamespace(); // $editnotice_ns = 'editnotice-' . $this.getNamespace();
// $msg = wfMessage($editnotice_ns); // $msg = wfMessage($editnotice_ns);
// if ($msg.exists()) { // if ($msg.exists()) {
@ -4751,7 +4751,7 @@ public class Xomw_Title {
// 'div', // 'div',
// [ 'class' => [ // [ 'class' => [
// 'mw-editnotice', // 'mw-editnotice',
// 'mw-editnotice-name_space', // 'mw-editnotice-namespace',
// Sanitizer::escapeClass("mw-$editnotice_ns") // Sanitizer::escapeClass("mw-$editnotice_ns")
// ] ], // ] ],
// $html // $html
@ -4782,7 +4782,7 @@ public class Xomw_Title {
// } // }
// } // }
// } else { // } else {
// // Even if there are no subpages in name_space, we still don't want "/" in MediaWiki message keys // // Even if there are no subpages in namespace, we still don't want "/" in MediaWiki message keys
// $editnoticeText = $editnotice_ns . '-' . strtr($this.getDBkey(), '/', '-'); // $editnoticeText = $editnotice_ns . '-' . strtr($this.getDBkey(), '/', '-');
// $msg = wfMessage($editnoticeText); // $msg = wfMessage($editnoticeText);
// if ($msg.exists()) { // if ($msg.exists()) {

View File

@ -15,13 +15,13 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
import gplx.core.btries.*; import gplx.core.btries.*;
import gplx.langs.htmls.*; import gplx.langs.htmls.*;
import gplx.xowa.mws.htmls.*; import gplx.xowa.mws.linkers.*; import gplx.xowa.mws.parsers.*; import gplx.xowa.mediawiki.includes.htmls.*; import gplx.xowa.mediawiki.includes.linkers.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mws.media.*; import gplx.xowa.mediawiki.includes.filerepo.file.*; import gplx.xowa.mediawiki.includes.media.*;
import gplx.xowa.mws.parsers.lnkis.*; import gplx.xowa.mediawiki.includes.parsers.lnkis.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
/* TODO.XO /* TODO.XO
* thumb = $file->getUnscaledThumb(handlerParams); * thumb = $file->getUnscaledThumb(handlerParams);
* P8: wfMessage * P8: wfMessage

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
public class Xomw_linker__normalize_subpage_link { public class Xomw_linker__normalize_subpage_link {
public byte[] link; public byte[] link;
public byte[] text; public byte[] text;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
public class Xomw_linker__normalize_subpage_link__tst { public class Xomw_linker__normalize_subpage_link__tst {
private final Xomw_linker__normalize_subpage_link__fxt fxt = new Xomw_linker__normalize_subpage_link__fxt(); private final Xomw_linker__normalize_subpage_link__fxt fxt = new Xomw_linker__normalize_subpage_link__fxt();
@ -28,7 +28,7 @@ public class Xomw_linker__normalize_subpage_link__tst {
@Test public void Dot2__trailing() {fxt.Test__normalize_subpage_link("A/B/C" , "../../Z/" , "" , "A/Z" , "Z");} @Test public void Dot2__trailing() {fxt.Test__normalize_subpage_link("A/B/C" , "../../Z/" , "" , "A/Z" , "Z");}
} }
class Xomw_linker__normalize_subpage_link__fxt { class Xomw_linker__normalize_subpage_link__fxt {
private final Xomw_linker mgr = new Xomw_linker(new gplx.xowa.mws.linkers.Xomw_link_renderer(new Xomw_sanitizer())); private final Xomw_linker mgr = new Xomw_linker(new gplx.xowa.mediawiki.includes.linkers.Xomw_link_renderer(new Xomw_sanitizer()));
private final Xowe_wiki wiki; private final Xowe_wiki wiki;
private final Xomw_linker__normalize_subpage_link normalize_subpage_link = new Xomw_linker__normalize_subpage_link(); private final Xomw_linker__normalize_subpage_link normalize_subpage_link = new Xomw_linker__normalize_subpage_link();
public Xomw_linker__normalize_subpage_link__fxt() { public Xomw_linker__normalize_subpage_link__fxt() {

View File

@ -15,15 +15,15 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
import org.junit.*; import gplx.core.tests.*; import gplx.core.btries.*; import gplx.xowa.mws.parsers.*; import org.junit.*; import gplx.core.tests.*; import gplx.core.btries.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_linker__split_trail__tst { public class Xomw_linker__split_trail__tst {
private final Xomw_linker__split_trail__fxt fxt = new Xomw_linker__split_trail__fxt(); private final Xomw_linker__split_trail__fxt fxt = new Xomw_linker__split_trail__fxt();
@Test public void Basic() {fxt.Test__split_trail("abc def" , "abc" , " def");} @Test public void Basic() {fxt.Test__split_trail("abc def" , "abc" , " def");}
@Test public void None() {fxt.Test__split_trail(" abc" , null , " abc");} @Test public void None() {fxt.Test__split_trail(" abc" , null , " abc");}
} }
class Xomw_linker__split_trail__fxt { class Xomw_linker__split_trail__fxt {
private final Xomw_linker linker = new Xomw_linker(new gplx.xowa.mws.linkers.Xomw_link_renderer(new Xomw_sanitizer())); private final Xomw_linker linker = new Xomw_linker(new gplx.xowa.mediawiki.includes.linkers.Xomw_link_renderer(new Xomw_sanitizer()));
private final Btrie_slim_mgr trie = Btrie_slim_mgr.cs(); private final Btrie_slim_mgr trie = Btrie_slim_mgr.cs();
public Xomw_linker__split_trail__fxt() { public Xomw_linker__split_trail__fxt() {
String[] ary = new String[] {"a", "b", "c", "d", "e", "f"}; String[] ary = new String[] {"a", "b", "c", "d", "e", "f"};

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
public class Xomw_message_mgr { public class Xomw_message_mgr {
private final Hash_adp hash = Hash_adp_.New(); private final Hash_adp hash = Hash_adp_.New();
public Xomw_Message Get_by_str(String key) {return (Xomw_Message)hash.Get_by(key);} public Xomw_Message Get_by_str(String key) {return (Xomw_Message)hash.Get_by(key);}

View File

@ -15,10 +15,10 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
import gplx.core.brys.*; import gplx.core.btries.*; import gplx.core.encoders.*; import gplx.core.primitives.*; import gplx.langs.htmls.entitys.*; import gplx.core.brys.*; import gplx.core.btries.*; import gplx.core.encoders.*; import gplx.core.primitives.*; import gplx.langs.htmls.entitys.*;
import gplx.xowa.parsers.htmls.*; import gplx.xowa.parsers.htmls.*;
import gplx.langs.htmls.*; import gplx.xowa.mws.htmls.*; import gplx.xowa.mws.parsers.*; import gplx.xowa.mws.utls.*; import gplx.langs.htmls.*; import gplx.xowa.mediawiki.includes.htmls.*; import gplx.xowa.mediawiki.includes.parsers.*; import gplx.xowa.mediawiki.includes.utls.*;
public class Xomw_sanitizer { public class Xomw_sanitizer {
private final Mwh_doc_wkr__atr_bldr atr_bldr = new Mwh_doc_wkr__atr_bldr(); private final Mwh_doc_wkr__atr_bldr atr_bldr = new Mwh_doc_wkr__atr_bldr();
private final Mwh_atr_parser atr_parser = new Mwh_atr_parser(); private final Mwh_atr_parser atr_parser = new Mwh_atr_parser();

View File

@ -15,8 +15,8 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
import org.junit.*; import gplx.core.tests.*; import gplx.core.btries.*; import gplx.xowa.mws.htmls.*; import org.junit.*; import gplx.core.tests.*; import gplx.core.btries.*; import gplx.xowa.mediawiki.includes.htmls.*;
public class Xomw_sanitizer__tst { public class Xomw_sanitizer__tst {
private final Xomw_sanitizer__fxt fxt = new Xomw_sanitizer__fxt(); private final Xomw_sanitizer__fxt fxt = new Xomw_sanitizer__fxt();
@Test public void Normalize__text() {fxt.Test__normalize_char_references("abc" , "abc");} @Test public void Normalize__text() {fxt.Test__normalize_char_references("abc" , "abc");}

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws; import gplx.*; import gplx.xowa.*; package gplx.xowa.mediawiki.includes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*;
public class Xomw_xml { public class Xomw_xml {
// Format an XML element with given attributes and, optionally, text content. // Format an XML element with given attributes and, optionally, text content.
// Element and attribute names are assumed to be ready for literal inclusion. // Element and attribute names are assumed to be ready for literal inclusion.

View File

@ -15,9 +15,9 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.filerepo; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.filerepo; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mediawiki.includes.filerepo.file.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
/* TODO.XO: /* TODO.XO:
* getZoneUrl * getZoneUrl
*/ */

View File

@ -15,10 +15,10 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.filerepo.file; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.filerepo.*; package gplx.xowa.mediawiki.includes.filerepo.file; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.filerepo.*;
import gplx.xowa.mws.media.*; import gplx.xowa.mediawiki.includes.media.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
import gplx.xowa.mws.parsers.*; import gplx.xowa.mws.parsers.lnkis.*; import gplx.xowa.mediawiki.includes.parsers.*; import gplx.xowa.mediawiki.includes.parsers.lnkis.*;
public class Xomw_File { public class Xomw_File {
/* TODO.XO: /* TODO.XO:
* P8: normalizeExtension * P8: normalizeExtension

View File

@ -15,8 +15,8 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.filerepo.file; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.filerepo.*; package gplx.xowa.mediawiki.includes.filerepo.file; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.filerepo.*;
import gplx.xowa.mws.parsers.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_LocalFile extends Xomw_File {// static final VERSION = 10; // cache version public class Xomw_LocalFile extends Xomw_File {// static final VERSION = 10; // cache version
// //
// static final CACHE_FIELD_MAX_LEN = 1000; // static final CACHE_FIELD_MAX_LEN = 1000;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.filerepo.file; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.filerepo.*; package gplx.xowa.mediawiki.includes.filerepo.file; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.filerepo.*;
public interface Xomw_file_finder { public interface Xomw_file_finder {
Xomw_File Find_file(Xoa_ttl ttl); Xomw_File Find_file(Xoa_ttl ttl);
} }

View File

@ -15,8 +15,8 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.filerepo.file; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.filerepo.*; package gplx.xowa.mediawiki.includes.filerepo.file; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.filerepo.*;
import gplx.xowa.mws.parsers.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_file_finder__mock implements Xomw_file_finder { public class Xomw_file_finder__mock implements Xomw_file_finder {
private final Xomw_parser_env env; private final Xomw_parser_env env;
public Xomw_file_finder__mock(Xomw_parser_env env) {this.env = env;} public Xomw_file_finder__mock(Xomw_parser_env env) {this.env = env;}

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.filerepo.file; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.filerepo.*; package gplx.xowa.mediawiki.includes.filerepo.file; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.filerepo.*;
public class Xomw_file_finder__noop implements Xomw_file_finder { public class Xomw_file_finder__noop implements Xomw_file_finder {
public Xomw_File Find_file(Xoa_ttl ttl) {return null;} public Xomw_File Find_file(Xoa_ttl ttl) {return null;}
} }

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
public class Xomw_atr_itm { public class Xomw_atr_itm {
public Xomw_atr_itm(int key_int, byte[] key, byte[] val) { public Xomw_atr_itm(int key_int, byte[] key, byte[] val) {
this.key_int = key_int; this.key_int = key_int;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
public class Xomw_atr_mgr { public class Xomw_atr_mgr {
private final Ordered_hash hash = Ordered_hash_.New_bry(); private final Ordered_hash hash = Ordered_hash_.New_bry();
public int Len() {return hash.Len();} public int Len() {return hash.Len();}

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
public class Xomw_html_elem { public class Xomw_html_elem {
public Xomw_html_elem(byte[] name) { public Xomw_html_elem(byte[] name) {
this.name = name; this.name = name;

View File

@ -15,9 +15,9 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.core.btries.*; import gplx.core.btries.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
public class Xomw_html_utl { public class Xomw_html_utl {
private final Bry_bfr tmp = Bry_bfr_.New(); private final Bry_bfr tmp = Bry_bfr_.New();
private final Btrie_rv trv = new Btrie_rv(); private final Btrie_rv trv = new Btrie_rv();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
public class Xomw_html_utl__expand_attributes__tst { public class Xomw_html_utl__expand_attributes__tst {
private final Xomw_html_utl__expand_attributes__fxt fxt = new Xomw_html_utl__expand_attributes__fxt(); private final Xomw_html_utl__expand_attributes__fxt fxt = new Xomw_html_utl__expand_attributes__fxt();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
public class Xomw_opt_mgr { public class Xomw_opt_mgr {
public boolean known; public boolean known;
public boolean broken; public boolean broken;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.htmls; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
public class Xomw_qry_mgr { public class Xomw_qry_mgr {
public byte[] action; public byte[] action;
public int redlink; public int redlink;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.libs; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.libs; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.core.btries.*; import gplx.core.btries.*;
public class Xomw_string_utils { public class Xomw_string_utils {
// Explode a String, but ignore any instances of the separator inside // Explode a String, but ignore any instances of the separator inside

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.libs; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.libs; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
public class Xomw_string_utils__tst { public class Xomw_string_utils__tst {
private final Xomw_string_utils__fxt fxt = new Xomw_string_utils__fxt(); private final Xomw_string_utils__fxt fxt = new Xomw_string_utils__fxt();

View File

@ -15,9 +15,9 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.linkers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.linkers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.langs.htmls.*; import gplx.langs.htmls.*;
import gplx.xowa.mws.htmls.*; import gplx.xowa.mediawiki.includes.htmls.*;
/* TODO.XO /* TODO.XO
* P7: $html = HtmlArmor::getHtml($text); * P7: $html = HtmlArmor::getHtml($text);
* P3: Get_link_url [alternate urls? EX: mw/wiki/index.php/title?] * P3: Get_link_url [alternate urls? EX: mw/wiki/index.php/title?]

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.linkers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.linkers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
// import org.junit.*; // import org.junit.*;
// public class Xomw_link_renderer__tst { // public class Xomw_link_renderer__tst {
// private final Xomw_link_renderer__fxt fxt = new Xomw_link_renderer__fxt(); // private final Xomw_link_renderer__fxt fxt = new Xomw_link_renderer__fxt();

View File

@ -15,9 +15,9 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mws.parsers.lnkis.*; import gplx.xowa.mediawiki.includes.filerepo.file.*; import gplx.xowa.mediawiki.includes.parsers.lnkis.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
/* XO.TODO: /* XO.TODO:
* validateThumbParams * validateThumbParams
*/ */

View File

@ -15,11 +15,11 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
import gplx.xowa.mws.parsers.*; import gplx.xowa.mws.parsers.lnkis.*; import gplx.xowa.mediawiki.includes.parsers.*; import gplx.xowa.mediawiki.includes.parsers.lnkis.*;
import gplx.xowa.mws.filerepo.*; import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mediawiki.includes.filerepo.*; import gplx.xowa.mediawiki.includes.filerepo.file.*;
public class Xomw_ImageHandler__tst { public class Xomw_ImageHandler__tst {
private final Xomw_ImageHandler__fxt fxt = new Xomw_ImageHandler__fxt(); private final Xomw_ImageHandler__fxt fxt = new Xomw_ImageHandler__fxt();
@Before public void init() { @Before public void init() {

View File

@ -15,9 +15,9 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mediawiki.includes.filerepo.file.*;
import gplx.xowa.mws.parsers.lnkis.*; import gplx.xowa.mediawiki.includes.parsers.lnkis.*;
public abstract class Xomw_MediaHandler { public abstract class Xomw_MediaHandler {
public byte[] Key() {return key;} private byte[] key; public byte[] Key() {return key;} private byte[] key;
public Xomw_MediaHandler(byte[] key) { public Xomw_MediaHandler(byte[] key) {

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
// XO.MW:MW has registry and instance cache; XO only has instance // XO.MW:MW has registry and instance cache; XO only has instance
// XO.MW:SYNC:1.29; DATE:2017-02-05 // XO.MW:SYNC:1.29; DATE:2017-02-05
public class Xomw_MediaHandlerFactory { public class Xomw_MediaHandlerFactory {

View File

@ -15,11 +15,11 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.langs.htmls.*; import gplx.langs.htmls.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
import gplx.xowa.mws.parsers.lnkis.*; import gplx.xowa.mediawiki.includes.parsers.lnkis.*;
import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mediawiki.includes.filerepo.file.*;
public abstract class Xomw_MediaTransformOutput { public abstract class Xomw_MediaTransformOutput {
public Xomw_MediaTransformOutput(Xomw_File file, byte[] url, byte[] path, int width, int height) { public Xomw_MediaTransformOutput(Xomw_File file, byte[] url, byte[] path, int width, int height) {
this.file = file; this.file = file;

View File

@ -15,11 +15,11 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.langs.htmls.*; import gplx.langs.htmls.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
import gplx.xowa.mws.parsers.lnkis.*; import gplx.xowa.mediawiki.includes.parsers.lnkis.*;
import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mediawiki.includes.filerepo.file.*;
// Media transform output for images // Media transform output for images
public class Xomw_ThumbnailImage extends Xomw_MediaTransformOutput { private final List_adp attribs = List_adp_.New(), link_attribs = List_adp_.New(); public class Xomw_ThumbnailImage extends Xomw_MediaTransformOutput { private final List_adp attribs = List_adp_.New(), link_attribs = List_adp_.New();
public Xomw_ThumbnailImage(Xomw_File file, byte[] url, byte[] path, int w, int h) {super(file, url, path, w, h); public Xomw_ThumbnailImage(Xomw_File file, byte[] url, byte[] path, int w, int h) {super(file, url, path, w, h);

View File

@ -15,9 +15,9 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.media; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mediawiki.includes.filerepo.file.*;
import gplx.xowa.mws.parsers.lnkis.*; import gplx.xowa.mediawiki.includes.parsers.lnkis.*;
public class Xomw_TransformationalImageHandler extends Xomw_ImageHandler { public Xomw_TransformationalImageHandler(byte[] key) {super(key); public class Xomw_TransformationalImageHandler extends Xomw_ImageHandler { public Xomw_TransformationalImageHandler(byte[] key) {super(key);
} }

View File

@ -15,10 +15,10 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.core.btries.*; import gplx.core.btries.*;
import gplx.langs.htmls.*; import gplx.langs.htmls.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
public class Xomw_block_level_pass { public class Xomw_block_level_pass {
private final Bry_bfr tmp = Bry_bfr_.New(); private final Bry_bfr tmp = Bry_bfr_.New();
private final Btrie_rv trv = new Btrie_rv(); private final Btrie_rv trv = new Btrie_rv();
@ -95,7 +95,7 @@ public class Xomw_block_level_pass {
if (o == null) if (o == null)
pre_cur++; pre_cur++;
else { else {
int pre_tid = (int)o; int pre_tid = Int_.cast(o);
if (pre_tid == Pre__bgn) if (pre_tid == Pre__bgn)
pre_open_match = true; pre_open_match = true;
else if (pre_tid == Pre__end) else if (pre_tid == Pre__end)

View File

@ -15,9 +15,9 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
import gplx.xowa.mws.linkers.*; import gplx.xowa.mediawiki.includes.linkers.*;
public class Xomw_block_level_pass__tst { public class Xomw_block_level_pass__tst {
private final Xomw_block_level_pass__fxt fxt = new Xomw_block_level_pass__fxt(); private final Xomw_block_level_pass__fxt fxt = new Xomw_block_level_pass__fxt();
@Test public void Basic() { @Test public void Basic() {

View File

@ -15,11 +15,11 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.langs.htmls.*; import gplx.langs.htmls.*;
import gplx.xowa.mws.*; import gplx.xowa.mediawiki.includes.*;
import gplx.xowa.mws.htmls.*; import gplx.xowa.mediawiki.includes.htmls.*;
import gplx.xowa.mws.linkers.*; import gplx.xowa.mediawiki.includes.linkers.*;
public class Xomw_link_holders { public class Xomw_link_holders {
private final Xomw_link_renderer link_renderer; private final Xomw_link_renderer link_renderer;
private final Bry_bfr tmp; private final Bry_bfr tmp;

View File

@ -15,9 +15,9 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
import gplx.xowa.mws.linkers.*; import gplx.xowa.mediawiki.includes.linkers.*;
public class Xomw_link_holders__tst { public class Xomw_link_holders__tst {
private final Xomw_link_holders__fxt fxt = new Xomw_link_holders__fxt(); private final Xomw_link_holders__fxt fxt = new Xomw_link_holders__fxt();
@Test public void Replace__basic() { @Test public void Replace__basic() {

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
public class Xomw_output_type { public class Xomw_output_type {
public static final byte public static final byte
Tid__html = 1 // like parse() Tid__html = 1 // like parse()

View File

@ -15,13 +15,13 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.core.btries.*; import gplx.core.net.*; import gplx.core.btries.*; import gplx.core.net.*;
import gplx.xowa.mws.parsers.prepros.*; import gplx.xowa.mws.parsers.headings.*; import gplx.xowa.mediawiki.includes.parsers.prepros.*; import gplx.xowa.mediawiki.includes.parsers.headings.*;
import gplx.xowa.mws.parsers.quotes.*; import gplx.xowa.mws.parsers.tables.*; import gplx.xowa.mws.parsers.hrs.*; import gplx.xowa.mws.parsers.nbsps.*; import gplx.xowa.mediawiki.includes.parsers.quotes.*; import gplx.xowa.mediawiki.includes.parsers.tables.*; import gplx.xowa.mediawiki.includes.parsers.hrs.*; import gplx.xowa.mediawiki.includes.parsers.nbsps.*;
import gplx.xowa.mws.parsers.lnkes.*; import gplx.xowa.mws.parsers.lnkis.*; import gplx.xowa.mws.parsers.magiclinks.*; import gplx.xowa.mws.parsers.doubleunders.*; import gplx.xowa.mediawiki.includes.parsers.lnkes.*; import gplx.xowa.mediawiki.includes.parsers.lnkis.*; import gplx.xowa.mediawiki.includes.parsers.magiclinks.*; import gplx.xowa.mediawiki.includes.parsers.doubleunders.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mws.linkers.*; import gplx.xowa.mediawiki.includes.utls.*; import gplx.xowa.mediawiki.includes.linkers.*;
import gplx.xowa.mws.htmls.*; import gplx.xowa.mediawiki.includes.htmls.*;
public class Xomw_parser { public class Xomw_parser {
private final Xomw_parser_ctx pctx = new Xomw_parser_ctx(); private final Xomw_parser_ctx pctx = new Xomw_parser_ctx();
private final Xomw_table_wkr table_wkr; private final Xomw_table_wkr table_wkr;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import org.junit.*; import org.junit.*;
public class Xomw_parser__tst { public class Xomw_parser__tst {
private final Xomw_parser__fxt fxt = new Xomw_parser__fxt(); private final Xomw_parser__fxt fxt = new Xomw_parser__fxt();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
public class Xomw_parser_bfr { // manages 2 bfrs to eliminate multiple calls to new memory allocations ("return bfr.To_bry_and_clear()") public class Xomw_parser_bfr { // manages 2 bfrs to eliminate multiple calls to new memory allocations ("return bfr.To_bry_and_clear()")
private final Bry_bfr bfr_1 = Bry_bfr_.New(), bfr_2 = Bry_bfr_.New(); private final Bry_bfr bfr_1 = Bry_bfr_.New(), bfr_2 = Bry_bfr_.New();
private Bry_bfr src, trg; private Bry_bfr src, trg;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
public class Xomw_parser_bfr_ { public class Xomw_parser_bfr_ {
public static void Replace(Xomw_parser_bfr pbfr, byte[] find, byte[] repl) { public static void Replace(Xomw_parser_bfr pbfr, byte[] find, byte[] repl) {
// XO.PBFR // XO.PBFR

View File

@ -15,8 +15,8 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.xowa.mws.parsers.lnkis.*; import gplx.xowa.mediawiki.includes.parsers.lnkis.*;
public class Xomw_parser_ctx { public class Xomw_parser_ctx {
public Xoa_ttl Page_title() {return page_title;} private Xoa_ttl page_title; public Xoa_ttl Page_title() {return page_title;} private Xoa_ttl page_title;
public Xomw_image_params Lnki_wkr__make_image__img_params = new Xomw_image_params(); public Xomw_image_params Lnki_wkr__make_image__img_params = new Xomw_image_params();

View File

@ -15,8 +15,8 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mws.media.*; import gplx.xowa.mediawiki.includes.filerepo.file.*; import gplx.xowa.mediawiki.includes.media.*;
public class Xomw_parser_env { public class Xomw_parser_env {
public byte[] Lang__align_end = Bry_.new_a7("right"); public byte[] Lang__align_end = Bry_.new_a7("right");
public int User__default__thumbsize = 220; public int User__default__thumbsize = 220;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
public class Xomw_parser_options { public class Xomw_parser_options {
public Xomw_parser_options() { public Xomw_parser_options() {
this.mThumbSize = 220; this.mThumbSize = 220;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.core.btries.*; import gplx.core.btries.*;
public class Xomw_regex_ { public class Xomw_regex_ {
public static int Find_fwd_while(Btrie_slim_mgr trie, Btrie_rv trv, byte[] src, int src_bgn, int src_end) { public static int Find_fwd_while(Btrie_slim_mgr trie, Btrie_rv trv, byte[] src, int src_bgn, int src_end) {

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.core.btries.*; import gplx.core.btries.*;
public class Xomw_regex_boundary { // THREAD.SAFE: trv is only for consistent interface public class Xomw_regex_boundary { // THREAD.SAFE: trv is only for consistent interface
private final Btrie_slim_mgr trie = Btrie_slim_mgr.cs(); private final Btrie_slim_mgr trie = Btrie_slim_mgr.cs();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
public class Xomw_regex_parser { public class Xomw_regex_parser {
private Bry_bfr tmp; private Bry_bfr tmp;
public byte[][] Rslt() {return rslt;} private byte[][] rslt; public byte[][] Rslt() {return rslt;} private byte[][] rslt;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
public class Xomw_regex_parser__tst { public class Xomw_regex_parser__tst {
private final Xomw_regex_parser__fxt fxt = new Xomw_regex_parser__fxt(); private final Xomw_regex_parser__fxt fxt = new Xomw_regex_parser__fxt();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.core.btries.*; import gplx.core.btries.*;
public class Xomw_regex_space { public class Xomw_regex_space {
private final Btrie_slim_mgr trie = Btrie_slim_mgr.cs(); private final Btrie_slim_mgr trie = Btrie_slim_mgr.cs();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.core.btries.*; import gplx.core.btries.*;
public class Xomw_regex_url { public class Xomw_regex_url {
private final Btrie_slim_mgr trie; private final Btrie_slim_mgr trie;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import gplx.core.btries.*; import gplx.core.btries.*;
public class Xomw_strip_state { // REF.MW:/parser/StripState.php public class Xomw_strip_state { // REF.MW:/parser/StripState.php
private final Btrie_slim_mgr trie = Btrie_slim_mgr.cs(); private final Btrie_slim_mgr trie = Btrie_slim_mgr.cs();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; package gplx.xowa.mediawiki.includes.parsers; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
public class Xomw_strip_state__tst { public class Xomw_strip_state__tst {
private final Xomw_strip_state__fxt fxt = new Xomw_strip_state__fxt(); private final Xomw_strip_state__fxt fxt = new Xomw_strip_state__fxt();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.doubleunders; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.doubleunders; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_doubleunder_data { public class Xomw_doubleunder_data {
// XO.MW: MW stores these as mDoubleUnderscores in Parser // XO.MW: MW stores these as mDoubleUnderscores in Parser
public boolean toc; public boolean toc;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.doubleunders; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.doubleunders; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.core.btries.*; import gplx.core.btries.*;
import gplx.xowa.langs.*; import gplx.xowa.langs.kwds.*; import gplx.xowa.langs.*; import gplx.xowa.langs.kwds.*;
public class Xomw_doubleunder_wkr { public class Xomw_doubleunder_wkr {

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.doubleunders; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.doubleunders; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
public class Xomw_doubleunder_wkr__tst { public class Xomw_doubleunder_wkr__tst {
private final Xomw_doubleunder_wkr__fxt fxt = new Xomw_doubleunder_wkr__fxt(); private final Xomw_doubleunder_wkr__fxt fxt = new Xomw_doubleunder_wkr__fxt();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.headings; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.headings; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public interface Xomw_heading_cbk { public interface Xomw_heading_cbk {
void On_hdr_seen(Xomw_parser_ctx pctx, Xomw_heading_wkr wkr); void On_hdr_seen(Xomw_parser_ctx pctx, Xomw_heading_wkr wkr);
void On_src_done(Xomw_parser_ctx pctx, Xomw_heading_wkr wkr); void On_src_done(Xomw_parser_ctx pctx, Xomw_heading_wkr wkr);

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.headings; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.headings; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_heading_cbk__html implements Xomw_heading_cbk { public class Xomw_heading_cbk__html implements Xomw_heading_cbk {
public Bry_bfr Bfr() {return bfr;} private Bry_bfr bfr; public Bry_bfr Bfr() {return bfr;} private Bry_bfr bfr;
public Xomw_heading_cbk__html Bfr_(Bry_bfr bfr) { public Xomw_heading_cbk__html Bfr_(Bry_bfr bfr) {

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.headings; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.headings; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.core.btries.*; import gplx.xowa.langs.*; import gplx.core.btries.*; import gplx.xowa.langs.*;
public class Xomw_heading_wkr { public class Xomw_heading_wkr {
private Xomw_parser_ctx pctx; private Xomw_parser_ctx pctx;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.headings; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.headings; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import org.junit.*; import org.junit.*;
public class Xomw_heading_wkr__tst { public class Xomw_heading_wkr__tst {
private final Xomw_heading_wkr__fxt fxt = new Xomw_heading_wkr__fxt(); private final Xomw_heading_wkr__fxt fxt = new Xomw_heading_wkr__fxt();

View File

@ -15,8 +15,8 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.hrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.hrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
public class Xomw_hr_wkr {// THREAD.UNSAFE: caching for repeated calls public class Xomw_hr_wkr {// THREAD.UNSAFE: caching for repeated calls
private Bry_bfr bfr; private Bry_bfr bfr;
public void Replace_hrs(Xomw_parser_ctx pctx, Xomw_parser_bfr pbfr) { // REF.MW: text = preg_replace('/(^|\n)-----*/', '\\1<hr />', text); public void Replace_hrs(Xomw_parser_ctx pctx, Xomw_parser_bfr pbfr) { // REF.MW: text = preg_replace('/(^|\n)-----*/', '\\1<hr />', text);

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.hrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.hrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import org.junit.*; import org.junit.*;
public class Xomw_hr_wkr__tst { public class Xomw_hr_wkr__tst {
private final Xomw_hr_wkr__fxt fxt = new Xomw_hr_wkr__fxt(); private final Xomw_hr_wkr__fxt fxt = new Xomw_hr_wkr__fxt();

View File

@ -15,10 +15,10 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.core.btries.*; import gplx.core.primitives.*; import gplx.core.btries.*; import gplx.core.primitives.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
import gplx.xowa.mws.htmls.*; import gplx.xowa.mediawiki.includes.htmls.*;
/* TODO.XO /* TODO.XO
* P3: $langObj->formatNum( ++$this->mAutonumber ); * P3: $langObj->formatNum( ++$this->mAutonumber );
* P2: $this->getConverterLanguage()->markNoConversion( $text ); * P2: $this->getConverterLanguage()->markNoConversion( $text );

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkes; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import org.junit.*; import org.junit.*;
public class Xomw_lnke_wkr__tst { public class Xomw_lnke_wkr__tst {
private final Xomw_lnke_wkr__fxt fxt = new Xomw_lnke_wkr__fxt(); private final Xomw_lnke_wkr__fxt fxt = new Xomw_lnke_wkr__fxt();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_image_params { public class Xomw_image_params {
public Xomw_param_map paramMap = null; public Xomw_param_map paramMap = null;
public Xomw_MagicWordArray mwArray = null; public Xomw_MagicWordArray mwArray = null;

View File

@ -15,14 +15,14 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.core.btries.*; import gplx.core.primitives.*; import gplx.core.btries.*; import gplx.core.primitives.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
import gplx.xowa.wikis.nss.*; import gplx.xowa.wikis.xwikis.*; import gplx.xowa.wikis.nss.*; import gplx.xowa.wikis.xwikis.*;
import gplx.xowa.mws.parsers.*; import gplx.xowa.mws.parsers.quotes.*; import gplx.xowa.mediawiki.includes.parsers.*; import gplx.xowa.mediawiki.includes.parsers.quotes.*;
import gplx.xowa.mws.htmls.*; import gplx.xowa.mws.linkers.*; import gplx.xowa.mediawiki.includes.htmls.*; import gplx.xowa.mediawiki.includes.linkers.*;
import gplx.xowa.mws.libs.*; import gplx.xowa.mediawiki.includes.libs.*;
import gplx.xowa.mws.media.*; import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mediawiki.includes.media.*; import gplx.xowa.mediawiki.includes.filerepo.file.*;
import gplx.xowa.parsers.uniqs.*; import gplx.xowa.parsers.uniqs.*;
/* TODO.XO /* TODO.XO
* P7: multi-line links; // look at the next 'line' to see if we can close it there * P7: multi-line links; // look at the next 'line' to see if we can close it there

View File

@ -15,10 +15,10 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import org.junit.*; import gplx.core.tests.*; import org.junit.*; import gplx.core.tests.*;
import gplx.xowa.mws.filerepo.*; import gplx.xowa.mws.filerepo.file.*; import gplx.xowa.mediawiki.includes.filerepo.*; import gplx.xowa.mediawiki.includes.filerepo.file.*;
import gplx.xowa.mws.media.*; import gplx.xowa.mediawiki.includes.media.*;
public class Xomw_lnki_wkr__file__tst { public class Xomw_lnki_wkr__file__tst {
private final Xomw_lnki_wkr__fxt fxt = new Xomw_lnki_wkr__fxt(); private final Xomw_lnki_wkr__fxt fxt = new Xomw_lnki_wkr__fxt();
@Before public void init() { @Before public void init() {

View File

@ -15,8 +15,8 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import org.junit.*; import gplx.xowa.mws.filerepo.*; import gplx.xowa.mws.filerepo.file.*; import org.junit.*; import gplx.xowa.mediawiki.includes.filerepo.*; import gplx.xowa.mediawiki.includes.filerepo.file.*;
public class Xomw_lnki_wkr__text__tst { public class Xomw_lnki_wkr__text__tst {
private final Xomw_lnki_wkr__fxt fxt = new Xomw_lnki_wkr__fxt(); private final Xomw_lnki_wkr__fxt fxt = new Xomw_lnki_wkr__fxt();
@Before public void init() {fxt.Clear();} @Before public void init() {fxt.Clear();}

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_param_itm { public class Xomw_param_itm {
public final byte[] magic; public final byte[] magic;
public final int type_uid; public final int type_uid;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_param_map { public class Xomw_param_map {
private final Ordered_hash hash = Ordered_hash_.New_bry(); private final Ordered_hash hash = Ordered_hash_.New_bry();
public final Xomw_params_frame Frame = new Xomw_params_frame(); public final Xomw_params_frame Frame = new Xomw_params_frame();

View File

@ -15,8 +15,8 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
public class Xomw_params_frame { public class Xomw_params_frame {
public byte[] align = null; public byte[] align = null;
public byte[] valign = null; public byte[] valign = null;

View File

@ -15,8 +15,8 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
public class Xomw_params_handler { public class Xomw_params_handler {
public int width; public int width;
public int height; public int height;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_params_horizAlign { public class Xomw_params_horizAlign {
public Xomw_params_horizAlign Clear() { public Xomw_params_horizAlign Clear() {
return this; return this;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_params_mto { public class Xomw_params_mto {
public boolean desc_link; public boolean desc_link;
public byte[] alt = null; public byte[] alt = null;

View File

@ -15,8 +15,8 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mediawiki.includes.utls.*;
public class Xomw_params_scalar { public class Xomw_params_scalar {
public int physicalWidth; public int physicalWidth;
public int physicalHeight; public int physicalHeight;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.lnkis; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_params_vertAlign { public class Xomw_params_vertAlign {
public Xomw_params_vertAlign Clear() { public Xomw_params_vertAlign Clear() {
return this; return this;

View File

@ -15,9 +15,9 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.magiclinks; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.magiclinks; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.core.primitives.*; import gplx.core.btries.*; import gplx.core.net.*; import gplx.core.primitives.*; import gplx.core.btries.*; import gplx.core.net.*;
import gplx.xowa.mws.utls.*; import gplx.xowa.mws.htmls.*; import gplx.xowa.mediawiki.includes.utls.*; import gplx.xowa.mediawiki.includes.htmls.*;
import gplx.langs.regxs.*; import gplx.langs.regxs.*;
// TODO.XO: this->getConverterLanguage()->markNoConversion($url, true), // TODO.XO: this->getConverterLanguage()->markNoConversion($url, true),
public class Xomw_magiclinks_wkr { public class Xomw_magiclinks_wkr {

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.magiclinks; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.magiclinks; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import org.junit.*; import org.junit.*;
public class Xomw_magiclinks_wkr__tst { public class Xomw_magiclinks_wkr__tst {
private final Xomw_magiclinks_wkr__fxt fxt = new Xomw_magiclinks_wkr__fxt(); private final Xomw_magiclinks_wkr__fxt fxt = new Xomw_magiclinks_wkr__fxt();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.nbsps; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.nbsps; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import gplx.core.btries.*; import gplx.core.btries.*;
public class Xomw_nbsp_wkr { public class Xomw_nbsp_wkr {
private final Btrie_rv trv = new Btrie_rv(); private final Btrie_rv trv = new Btrie_rv();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.nbsps; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.nbsps; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
import org.junit.*; import org.junit.*;
public class Xomw_nbsp_wkr__tst { public class Xomw_nbsp_wkr__tst {
private final Xomw_nbsp_wkr__fxt fxt = new Xomw_nbsp_wkr__fxt(); private final Xomw_nbsp_wkr__fxt fxt = new Xomw_nbsp_wkr__fxt();

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_frame_itm { public class Xomw_frame_itm {
public byte[] Expand(byte[] ttl) { public byte[] Expand(byte[] ttl) {
return null; return null;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
// public class Xomw_frame_wkr { // THREAD.UNSAFE: caching for repeated calls // public class Xomw_frame_wkr { // THREAD.UNSAFE: caching for repeated calls
// private final Xomw_parser parser; // private final Xomw_parser parser;
// public Xomw_frame_wkr(Xomw_parser parser) { // public Xomw_frame_wkr(Xomw_parser parser) {

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public interface Xomw_prepro_node { public interface Xomw_prepro_node {
int Subs__len(); int Subs__len();
Xomw_prepro_node Subs__get_at(int i); Xomw_prepro_node Subs__get_at(int i);

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public abstract class Xomw_prepro_node__base implements Xomw_prepro_node { public abstract class Xomw_prepro_node__base implements Xomw_prepro_node {
private List_adp subs; private List_adp subs;
public int Subs__len() {return subs == null ? 0 : subs.Len();} public int Subs__len() {return subs == null ? 0 : subs.Len();}

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_prepro_node__part extends Xomw_prepro_node__base { public class Xomw_prepro_node__part extends Xomw_prepro_node__base {
public Xomw_prepro_node__part(int idx, byte[] key, byte[] val) { public Xomw_prepro_node__part(int idx, byte[] key, byte[] val) {
this.idx = idx; this.idx = idx;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
public class Xomw_prepro_node__template extends Xomw_prepro_node__base { public class Xomw_prepro_node__template extends Xomw_prepro_node__base {
public Xomw_prepro_node__template(byte[] title, Xomw_prepro_node__part[] parts, int line_start) { public Xomw_prepro_node__template(byte[] title, Xomw_prepro_node__part[] parts, int line_start) {
this.title = title; this.parts = parts; this.line_start = line_start; this.title = title; this.parts = parts; this.line_start = line_start;

View File

@ -15,7 +15,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package gplx.xowa.mws.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mws.*; import gplx.xowa.mws.parsers.*; package gplx.xowa.mediawiki.includes.parsers.prepros; import gplx.*; import gplx.xowa.*; import gplx.xowa.mediawiki.*; import gplx.xowa.mediawiki.includes.*; import gplx.xowa.mediawiki.includes.parsers.*;
class Xomw_prepro_rule { class Xomw_prepro_rule {
public Xomw_prepro_rule(byte[] bgn, byte[] end, int min, int max, int[] names) { public Xomw_prepro_rule(byte[] bgn, byte[] end, int min, int max, int[] names) {
this.bgn = bgn; this.bgn = bgn;

Some files were not shown because too many files have changed in this diff Show More