diff options
author | Jürg Billeter <j@bitron.ch> | 2009-05-05 18:40:03 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-05-05 18:40:42 +0200 |
commit | a76e5a2ca5fb3c96a2d8cadfed77f302f859bb6c (patch) | |
tree | 40e4bc515e3dbe5509aeb6482b8c75d744b7dcc8 /gobject | |
parent | 4ad71140774c5947091ed3b188132b9b1e630092 (diff) | |
download | vala-a76e5a2ca5fb3c96a2d8cadfed77f302f859bb6c.tar.gz |
GIR writer: Do not use string.replace
GRegex requires GLib 2.14.
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/valagirwriter.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gobject/valagirwriter.vala b/gobject/valagirwriter.vala index 2dfc40922..63e9c3135 100644 --- a/gobject/valagirwriter.vala +++ b/gobject/valagirwriter.vala @@ -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) { |