diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-12-20 15:51:11 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-12-20 15:51:11 -0500 |
commit | a0b8bb731c73b2d2ed3e16c0fa79aea93b3be813 (patch) | |
tree | 8d2599a154eee96998deec377ff662cf4d5ba066 /utils | |
parent | 1521c9908d10eaa601fdf182bad74ed4122722bc (diff) |
new scorer interface is implemented, but not used
Diffstat (limited to 'utils')
-rw-r--r-- | utils/stringlib.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/stringlib.h b/utils/stringlib.h index cafbdac3..f457e1e4 100644 --- a/utils/stringlib.h +++ b/utils/stringlib.h @@ -125,6 +125,13 @@ inline std::string LowercaseString(const std::string& in) { return res; } +inline std::string UppercaseString(const std::string& in) { + std::string res(in.size(),' '); + for (int i = 0; i < in.size(); ++i) + res[i] = toupper(in[i]); + return res; +} + inline int CountSubstrings(const std::string& str, const std::string& sub) { size_t p = 0; int res = 0; |