add automated language string extraction to utility

This commit is contained in:
Matthias Mailänder
2014-04-19 20:14:42 +02:00
parent c9a49538d6
commit 69d86cfcf2
5 changed files with 83 additions and 4 deletions

View File

@@ -20,6 +20,11 @@ namespace OpenRA
{
public static class Exts
{
public static bool IsUppercase(this string str)
{
return string.Compare(str.ToUpperInvariant(), str, false) == 0;
}
public static string F(this string fmt, params object[] args)
{
return string.Format(fmt, args);