// Path: library/src/main/java/co/jasonwyatt/srml/SRMLImageLoader.java
// public interface SRMLImageLoader {
//     /**
//      * Load the image at the given url and return it as a Bitmap.
//      * @param context The current context.
//      * @param url The image's url.
//      * @return A bitmap of the image.
//      */
//     Bitmap loadImage(Context context, String url);
// 
//     /**
//      * Load the image at the given url and return it as a Bitmap in the provided size..
//      * @param context The current context.
//      * @param url The image's url.
//      * @param width Requested width of the image.
//      * @param height Requested height of the image.
//      * @return A bitmap.
//      */
//     Bitmap loadImage(Context context, String url, int width, int height);
// }
// 
// Path: library/src/main/java/co/jasonwyatt/srml/tags/BadParameterException.java
// public class BadParameterException extends RuntimeException {
//     public BadParameterException(String message) {
//         super(message);
//     }
// 
//     public BadParameterException(String message, Throwable cause) {
//         super(message, cause);
//     }
// }


import android.content.Context;
import android.graphics.Bitmap;
import android.os.Build;
import android.util.DisplayMetrics;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import co.jasonwyatt.srml.SRMLImageLoader;
import co.jasonwyatt.srml.tags.BadParameterException;
package co.jasonwyatt.srml.utils;




/**
 * @author jason
 *
 * General utilities.
 */
public class Utils {
    private static final Pattern SIZE_PATTERN = Pattern.compile("([0-9]+(\\.[0-9]+)?)(sp|dp|px)?", Pattern.CASE_INSENSITIVE);
    private static final Pattern COLOR_VALUE_PATTERN = Pattern.compile("^#([0-9a-f]+)$", Pattern.CASE_INSENSITIVE);
    private static final Map<String, Integer> sIdentifierCache = new HashMap<>(100);
// Path: library/src/main/java/co/jasonwyatt/srml/SRMLImageLoader.java
// public interface SRMLImageLoader {
//     /**
//      * Load the image at the given url and return it as a Bitmap.
//      * @param context The current context.
//      * @param url The image's url.
//      * @return A bitmap of the image.
//      */
//     Bitmap loadImage(Context context, String url);
// 
//     /**
//      * Load the image at the given url and return it as a Bitmap in the provided size..
//      * @param context The current context.
//      * @param url The image's url.
//      * @param width Requested width of the image.
//      * @param height Requested height of the image.
//      * @return A bitmap.
//      */
//     Bitmap loadImage(Context context, String url, int width, int height);
// }
// 
// Path: library/src/main/java/co/jasonwyatt/srml/tags/BadParameterException.java
// public class BadParameterException extends RuntimeException {
//     public BadParameterException(String message) {
//         super(message);
//     }
// 
//     public BadParameterException(String message, Throwable cause) {
//         super(message, cause);
//     }
// }


// Path: library/src/main/java/co/jasonwyatt/srml/utils/Utils.java
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Build;
import android.util.DisplayMetrics;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import co.jasonwyatt.srml.SRMLImageLoader;
import co.jasonwyatt.srml.tags.BadParameterException;

package co.jasonwyatt.srml.utils;




/**
 * @author jason
 *
 * General utilities.
 */
public class Utils {
    private static final Pattern SIZE_PATTERN = Pattern.compile("([0-9]+(\\.[0-9]+)?)(sp|dp|px)?", Pattern.CASE_INSENSITIVE);
    private static final Pattern COLOR_VALUE_PATTERN = Pattern.compile("^#([0-9a-f]+)$", Pattern.CASE_INSENSITIVE);
    private static final Map<String, Integer> sIdentifierCache = new HashMap<>(100);
    private static SRMLImageLoader sImageLoader;