* add String-2-Locale helper function

This commit is contained in:
Reinhard Pointner 2015-03-31 03:58:33 +00:00
parent 178151abd8
commit ae6cae50d8
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import java.nio.file.attribute.BasicFileAttributeView;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import net.filebot.util.FileUtilities;
@ -330,4 +331,8 @@ public class ExpressionFormatMethods {
return new File(parent, self);
}
public static Locale toLocale(String self) {
return Locale.forLanguageTag(self);
}
}