// Path: src/com/hughes/android/dictionary/DictionaryInfo.java
// public static final class IndexInfo implements Serializable {
//     private static final long serialVersionUID = 6524751236198309438L;
// 
//     static final int NUM_CSV_FIELDS = 3;
// 
//     public final String shortName; // Often LangISO.
//     final int allTokenCount;
//     public final int mainTokenCount;
// 
//     public IndexInfo(String shortName, int allTokenCount, int mainTokenCount) {
//         this.shortName = shortName;
//         this.allTokenCount = allTokenCount;
//         this.mainTokenCount = mainTokenCount;
//     }
// 
//     void append(StringBuilder result) {
//         result.append(shortName);
//         result.append("\t").append(allTokenCount);
//         result.append("\t").append(mainTokenCount);
//     }
// 
//     public IndexInfo(final String[] fields, int i) {
//         shortName = fields[i++];
//         allTokenCount = Integer.parseInt(fields[i++]);
//         mainTokenCount = Integer.parseInt(fields[i++]);
//     }
// }
// 
// Path: src/com/hughes/android/dictionary/engine/Language.java
// public static final class LanguageResources {
//     final String englishName;
//     public final int nameId;
//     public final int flagId;
// 
//     public LanguageResources(final String englishName, int nameId, int flagId) {
//         this.englishName = englishName;
//         this.nameId = nameId;
//         this.flagId = flagId;
//     }
// 
//     public LanguageResources(final String englishName, int nameId) {
//         this(englishName, nameId, 0);
//     }
// }


import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.hughes.android.dictionary.DictionaryInfo.IndexInfo;
import com.hughes.android.dictionary.engine.Language.LanguageResources;
// Copyright 2011 Google Inc. All Rights Reserved.
// Copyright 2017 Reimar Döffinger. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.hughes.android.dictionary;




public enum IsoUtils {
    INSTANCE;

    // Useful:
    // http://www.loc.gov/standards/iso639-2/php/code_list.php
// Path: src/com/hughes/android/dictionary/DictionaryInfo.java
// public static final class IndexInfo implements Serializable {
//     private static final long serialVersionUID = 6524751236198309438L;
// 
//     static final int NUM_CSV_FIELDS = 3;
// 
//     public final String shortName; // Often LangISO.
//     final int allTokenCount;
//     public final int mainTokenCount;
// 
//     public IndexInfo(String shortName, int allTokenCount, int mainTokenCount) {
//         this.shortName = shortName;
//         this.allTokenCount = allTokenCount;
//         this.mainTokenCount = mainTokenCount;
//     }
// 
//     void append(StringBuilder result) {
//         result.append(shortName);
//         result.append("\t").append(allTokenCount);
//         result.append("\t").append(mainTokenCount);
//     }
// 
//     public IndexInfo(final String[] fields, int i) {
//         shortName = fields[i++];
//         allTokenCount = Integer.parseInt(fields[i++]);
//         mainTokenCount = Integer.parseInt(fields[i++]);
//     }
// }
// 
// Path: src/com/hughes/android/dictionary/engine/Language.java
// public static final class LanguageResources {
//     final String englishName;
//     public final int nameId;
//     public final int flagId;
// 
//     public LanguageResources(final String englishName, int nameId, int flagId) {
//         this.englishName = englishName;
//         this.nameId = nameId;
//         this.flagId = flagId;
//     }
// 
//     public LanguageResources(final String englishName, int nameId) {
//         this(englishName, nameId, 0);
//     }
// }


// Path: src/com/hughes/android/dictionary/IsoUtils.java
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.hughes.android.dictionary.DictionaryInfo.IndexInfo;
import com.hughes.android.dictionary.engine.Language.LanguageResources;

// Copyright 2011 Google Inc. All Rights Reserved.
// Copyright 2017 Reimar Döffinger. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.hughes.android.dictionary;




public enum IsoUtils {
    INSTANCE;

    // Useful:
    // http://www.loc.gov/standards/iso639-2/php/code_list.php
    private final Map<String, LanguageResources> isoCodeToResources = new HashMap<>();