1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* 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

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);
}
}