summary refs log tree commit diff stats
path: root/tools/util/naming.cpp
blob: 0ae99f6fa1dacad22e909a9e951781dd6f52c3d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "naming.h"

#include <sstream>

std::string GetLetterName(std::string key, bool level2) {
  std::ostringstream lettername_s;
  lettername_s << key;
  lettername_s << (level2 ? "2" : "1");

  return lettername_s.str();
}