Commit a76e5a2c authored by Jürg Billeter's avatar Jürg Billeter

GIR writer: Do not use string.replace

GRegex requires GLib 2.14.
parent 4ad71140
......@@ -824,7 +824,8 @@ public class Vala.GIRWriter : CodeVisitor {
}
private string camel_case_to_canonical (string name) {
return Symbol.camel_case_to_lower_case (name).replace ("_", "-");
string[] parts = Symbol.camel_case_to_lower_case (name).split ("_");
return string.joinv ("-", parts);
}
private bool check_accessibility (Symbol sym) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment