// Path: app/src/main/java/org/pquery/util/MyColors.java
// public class MyColors {
//     public static String LIME = "#00FF00";
//     public static String MEGENTA = "#FF00FF";
// }


import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import org.pquery.R;
import org.pquery.util.MyColors;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;

            // s.length() picks up the ALL countries case
            if (s.length() == 0 || countyCodes.contains(allCountryCodes[i])) {
                //Drawable flagDrawable = cxt.getResources().getDrawable(allCountryFlags.getResourceId(i, -1));
                inner.add(new Country(allCountryNames[i], allCountryCodes[i], allCountryFlags.getResourceId(i, -1)));
            }
        }

        Collections.sort(inner);
    }

    /**
     * Encode the country list into a comma separated country code string
     * If ALL countries are selected then 'null' is returned
     *
     * @return encoded string or null
     */
    public String toString() {
        if (isAll())
            return null;                             // all countries

        String ret = "";
        for (Country country : inner) {
            ret += country.getCode() + ",";
        }
        return ret;
    }

    public String toLocalisedString(Resources res) {
        if (isAll())
// Path: app/src/main/java/org/pquery/util/MyColors.java
// public class MyColors {
//     public static String LIME = "#00FF00";
//     public static String MEGENTA = "#FF00FF";
// }


// Path: app/src/main/java/org/pquery/filter/CountryList.java
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import org.pquery.R;
import org.pquery.util.MyColors;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;


            // s.length() picks up the ALL countries case
            if (s.length() == 0 || countyCodes.contains(allCountryCodes[i])) {
                //Drawable flagDrawable = cxt.getResources().getDrawable(allCountryFlags.getResourceId(i, -1));
                inner.add(new Country(allCountryNames[i], allCountryCodes[i], allCountryFlags.getResourceId(i, -1)));
            }
        }

        Collections.sort(inner);
    }

    /**
     * Encode the country list into a comma separated country code string
     * If ALL countries are selected then 'null' is returned
     *
     * @return encoded string or null
     */
    public String toString() {
        if (isAll())
            return null;                             // all countries

        String ret = "";
        for (Country country : inner) {
            ret += country.getCode() + ",";
        }
        return ret;
    }

    public String toLocalisedString(Resources res) {
        if (isAll())
            return "<font color='" + MyColors.LIME + "'>" + res.getString(R.string.any) + "</font>";