cc: is_c_function -> convert_c_function
@@ -140,8 +140,8 @@ fn consume_tokens(tokens: &[RefToken]) -> (usize, String) {
if *word == "true" || *word == "false" {
return (1, format!("`{word}`"));
}
- if let Some(new_name) = is_c_function(word) {
- return (1, format!("`{new_name}`"));
+ if let Some(new_function_name) = convert_c_function(word) {
+ return (1, format!("`{new_function_name}`"));
}
(1, word.to_string())
}
@@ -151,7 +151,7 @@ fn consume_tokens(tokens: &[RefToken]) -> (usize, String) {
}
}
-fn is_c_function(word: &str) -> Option<String> {
+fn convert_c_function(word: &str) -> Option<String> {
if let Some(fn_name) = word.strip_suffix("()") {
if fn_name.to_lower_camel_case() == fn_name {
return Some(fn_name.to_snake_case() + "()");
