We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46aaf18 commit deb3fb8Copy full SHA for deb3fb8
svd-encoder/src/config.rs
@@ -51,12 +51,14 @@ pub fn change_case(s: &str, case: Option<IdentifierFormat>) -> String {
51
Boundary::Acronym,
52
];
53
54
- s.with_boundaries(&boundary).to_case(match case {
55
- IdentifierFormat::Camel => Case::Camel,
56
- IdentifierFormat::Pascal => Case::Pascal,
57
- IdentifierFormat::Snake => Case::Snake,
58
- IdentifierFormat::Constant => Case::UpperSnake,
59
- })
+ s.with_boundaries(&boundary)
+ .to_case(match case {
+ IdentifierFormat::Camel => Case::Camel,
+ IdentifierFormat::Pascal => Case::Pascal,
+ IdentifierFormat::Snake => Case::Snake,
+ IdentifierFormat::Constant => Case::UpperSnake,
60
+ })
61
+ .replace("%S", "%s")
62
}
63
64
0 commit comments