* Namer for Kotlin

* delete unread cur_name_space_ and apply Namer to filename

Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
Casper
2022-04-26 21:54:49 -04:00
committed by GitHub
parent 750dde7669
commit 385dddc66a
3 changed files with 136 additions and 111 deletions

View File

@@ -114,11 +114,15 @@ class Namer {
return Method(s.name);
}
virtual std::string Method(const std::string &pre,
const std::string &mid,
const std::string &suf) const {
return Format(pre + "_" + mid + "_" + suf, config_.methods);
}
virtual std::string Method(const std::string &pre,
const std::string &suf) const {
return Format(pre + "_" + suf, config_.methods);
}
virtual std::string Method(const std::string &s) const {
return Format(s, config_.methods);
}