1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
namespace Lsc.Utils { public string nicer_pkg_name (string pkg_name) { return capitalize_str(pkg_name.replace("-", " ")); } public string capitalize_str (string str) { StringBuilder build = new StringBuilder(); build.append_unichar(str[0].toupper()); for (int x = 1; x < str.length; x++) { build.append_unichar(str[x]); } return build.str; } } |