summaryrefslogtreecommitdiff
path: root/Aktywator/Tournament.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator/Tournament.cs')
-rw-r--r--Aktywator/Tournament.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs
index 85a2666..cbe9bf9 100644
--- a/Aktywator/Tournament.cs
+++ b/Aktywator/Tournament.cs
@@ -38,5 +38,21 @@ namespace Aktywator
return new Dictionary<int, List<string>>();
}
+ virtual internal string shortenNameToBWS(string name)
+ {
+ if ("pauza".Equals(name.Trim()))
+ {
+ return " ";
+ }
+ else
+ {
+ string[] nameParts = name.Trim().Split(' ');
+ if (nameParts.Length > 0)
+ {
+ nameParts[0] = (nameParts[0].Length > 0) ? nameParts[0][0].ToString() : " ";
+ }
+ return String.Join(" ", nameParts);
+ }
+ }
}
}