Replaced ToDasherCase with ConvertCase (#7131)

This commit is contained in:
Derek Bailey
2022-02-23 20:31:40 -08:00
committed by GitHub
parent 3694b830a2
commit c9571d9897
9 changed files with 494 additions and 47 deletions

View File

@@ -97,8 +97,6 @@ class BaseGenerator {
const Namespace &ns,
const bool dasherize = false);
static std::string ToDasherizedCase(const std::string pascal_case);
std::string GeneratedFileName(const std::string &path,
const std::string &file_name,
const IDLOptions &options) const;

View File

@@ -699,6 +699,8 @@ enum class Case {
kAllUpper = 5,
// thequickbrownfox
kAllLower = 6,
// the-quick-brown-fox
kDasher = 7,
};
// Convert the `input` string of case `input_case` to the specified `output_case`.