diff options
author | Jürg Billeter <j@bitron.ch> | 2010-08-20 20:04:59 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-08-20 20:06:49 +0200 |
commit | 4eaa435417536b9ae380dec9894ad0af513ae6d4 (patch) | |
tree | 7c934e1bef9a8859e539dbcf58b2aa34b7fcfdc7 /vala/valasymbol.vala | |
parent | 9d947dfff41159302f357cd1710f0c0bd4aca6a7 (diff) | |
download | vala-4eaa435417536b9ae380dec9894ad0af513ae6d4.tar.gz |
glib-2.0: Deprecate string.len () in favor of string.length
Diffstat (limited to 'vala/valasymbol.vala')
-rw-r--r-- | vala/valasymbol.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vala/valasymbol.vala b/vala/valasymbol.vala index 57a0e9e1c..a935bcb76 100644 --- a/vala/valasymbol.vala +++ b/vala/valasymbol.vala @@ -282,7 +282,7 @@ public abstract class Vala.Symbol : CodeNode { weak string i = camel_case; bool first = true; - while (i.len () > 0) { + while (i.length > 0) { unichar c = i.get_char (); if (c.isupper () && !first) { /* current character is upper case and @@ -291,10 +291,10 @@ public abstract class Vala.Symbol : CodeNode { bool prev_upper = t.get_char ().isupper (); t = i.next_char (); bool next_upper = t.get_char ().isupper (); - if (!prev_upper || (i.len () >= 2 && !next_upper)) { + if (!prev_upper || (i.length >= 2 && !next_upper)) { /* previous character wasn't upper case or * next character isn't upper case*/ - long len = result_builder.str.len (); + long len = result_builder.str.length; if (len != 1 && result_builder.str.offset (len - 2).get_char () != '_') { /* we're not creating 1 character words */ result_builder.append_c ('_'); @@ -323,7 +323,7 @@ public abstract class Vala.Symbol : CodeNode { weak string i = lower_case; bool last_underscore = true; - while (i.len () > 0) { + while (i.length > 0) { unichar c = i.get_char (); if (c == '_') { last_underscore = true; |