Android Open Source - tatoeba-offline-android Language






From Project

Back to project page tatoeba-offline-android.

License

The source code is released under:

GNU General Public License

If you think the Android project tatoeba-offline-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.tatoeba.searchsentences;
/* ww w .  j a  v  a  2s .  c  o  m*/
/**
 * This class represents a written language.
 * 
 * @author qdii
 * 
 */
public class Language
{
    public static final int NB_CHARS = 5;

    public Language(String code)
    {
        this.code = code;
    }

    public boolean equals( Language other )
    {

        if (other.code.equals(this.code)) {
           return true;
        }
        return true;
    }

    public String name()
    {
        return code;
    }

    public String toString()
    {
        return code;
    }

    public static String FRA = "fra";
    /*
     * private enum CODE { acm, afr, ain, ang, ara, arq, arz, ast, avk, aze,
     * bel, ben, ber, bod, bos, bre, bul, cat, ces, cha, ckt, cmn, cor, cycl,
     * cym, dan, deu, dsb, ell, eng, epo, est, eus, ewe, fao, fin, fra, fry,
     * gla, gle, glg, grn, heb, hil, hin, hrv, hsb, hun, hye, ido, ile, ina,
     * ind, isl, ita, jbo, jpn, kat, kaz, khm, kor, ksh, kur, lad, lao, lat,
     * lit, lld, lvs, lzh, mal, mar, mlg, mlt, mon, mri, nan, nds, nld, nob,
     * non, nov, npi, oci, orv, oss, pes, pms, pnb, pol, por, prg, que, qya,
     * roh, ron, rus, san, scn, sjn, slk, slv, spa, sqi, srp, swe, swh, tat,
     * tel, tgk, tgl, tha, tlh, toki, tpi, tpw, tur, uig, ukr, urd, uzb, vie,
     * vol, wuu, xal, xho, yid, yue, zsm }
     */
    private String code;

}




Java Source Code List

org.tatoeba.searchsentences.BufferToSentenceParser.java
org.tatoeba.searchsentences.CutterActivity.java
org.tatoeba.searchsentences.CutterTask.java
org.tatoeba.searchsentences.DBAdapter.java
org.tatoeba.searchsentences.FileLoader.java
org.tatoeba.searchsentences.FileToBufferReader.java
org.tatoeba.searchsentences.Filter.java
org.tatoeba.searchsentences.LanguageFilter.java
org.tatoeba.searchsentences.Language.java
org.tatoeba.searchsentences.RegexFilter.java
org.tatoeba.searchsentences.SearchSentenceTask.java
org.tatoeba.searchsentences.Search.java
org.tatoeba.searchsentences.Sentence.java