package org.jboard.jboard.utilities;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * 
 * @author Asher Stern
 * Date: Aug 4, 2014
 *
 */
public class StringUtils
{
	public static boolean anyStartsWith(Iterable<String> iterable, String str)
	{
		return anyStartsWith(iterable,str,null);
	}

	public static boolean anyStartsWith(Iterable<String> iterable, String str, Container<String> outputString)
	{
		for (String inIterable : iterable)
		{
			if (str.startsWith(inIterable))
			{
				if (outputString!=null) {outputString.set(inIterable);}
				return true;
			}
		}
		return false;
	}
	
	public static String localized(String str)
	{
		return ResourceBundle.getBundle("jboard", Locale.getDefault(), UTF8RsourceBundleControl.INSTANCE).getString(str);
	}

}

@@ -465,12 +465,8 @@
 if (
-str.
 star
@@ -471,17 +471,31 @@
 artsWith
-(
+IgnoreCase(str,
 inIterab
@@ -590,16 +590,16 @@
 %09%09%7D%0A%09%09%7D%0A
-
 %09%09return
@@ -611,16 +611,158 @@
 e;%0A%09%7D%0A%09%0A
+%09public static boolean startsWithIgnoreCase(String main, String prefix)%0A%09%7B%0A%09%09return main.toLowerCase().startsWith(prefix.toLowerCase());%0A%09%7D%0A%09%0A
 %09public 

Fix minor issue