1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00
This commit is contained in:
gnosygnu
2014-09-14 23:39:47 -04:00
parent a022d7f26c
commit 985863b224
104 changed files with 1409 additions and 507 deletions

View File

@@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package gplx.xowa; import gplx.*;
public class Xol_lang_itm {
public Xol_lang_itm(int id, byte[] key, byte[] canonical_name) {this.id = id; this.key = key; this.canonical_name = canonical_name; this.local_name = canonical_name;}
public int Id() {return id;} private int id;
public byte[] Key() {return key;} private byte[] key;
public int Id() {return id;} private final int id;
public byte[] Key() {return key;} private final byte[] key;
public byte[] Canonical_name() {return canonical_name;} private byte[] canonical_name;
public byte[] Local_name() {return local_name;} private byte[] local_name;
public byte[] Local_grp() {return local_grp;} private byte[] local_grp = Bry_.Empty;

View File

@@ -854,9 +854,9 @@ Regy_add(regy, Id_zu, "zu", "isiZulu");
}
return regy;
}
private static Hash_adp_bry regy; static Xol_lang_itm[] langs = new Xol_lang_itm[Id__max];
private static Hash_adp_bry regy; private static Xol_lang_itm[] langs = new Xol_lang_itm[Id__max];
private static void Regy_add(Hash_adp_bry regy, int id, String code_str, String canonical) {
byte[] code = Bry_.new_utf8_(code_str);
byte[] code = Bry_.new_ascii_(code_str); // ASCII:lang_code should always be ASCII
Xol_lang_itm itm = new Xol_lang_itm(id, code, Bry_.new_utf8_(canonical));
langs[id] = itm;
regy.Add(code, itm);