diff options
Diffstat (limited to 'tools/util/naming.cpp')
-rw-r--r-- | tools/util/naming.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/util/naming.cpp b/tools/util/naming.cpp new file mode 100644 index 0000000..12594c5 --- /dev/null +++ b/tools/util/naming.cpp | |||
@@ -0,0 +1,11 @@ | |||
1 | #include "naming.h" | ||
2 | |||
3 | #include <sstream> | ||
4 | |||
5 | std::string GetLetterName(std::string key, bool double_) { | ||
6 | std::ostringstream lettername_s; | ||
7 | lettername_s << key; | ||
8 | lettername_s << (double_ ? "2" : "1"); | ||
9 | |||
10 | return lettername_s.str(); | ||
11 | } | ||