After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 436760 - transforming CamelCase with consecutive capitals to lowercase_with_underscores
transforming CamelCase with consecutive capitals to lowercase_with_underscores
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator
0.0.x
Other All
: Normal minor
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-08 02:37 UTC by Michael Lawrence
Modified: 2008-10-18 20:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Lawrence 2007-05-08 02:37:56 UTC
Please describe the problem:
Classes with names containing multiple consecutive capitals are not correctly transformed to their lowercase_with_underscores representation. For example, InputStreamFTP becomes input_stream_ft_p rather than input_stream_ftp. The "P" should probably become "_p" only when there are subsequent lowercase characters in the name.

Steps to reproduce:
1. Compile class named InputStreamFTP
2. 
3. 


Actual results:
Methods have names prefixed by input_stream_ft_p

Expected results:
Prefix should be input_stream_ftp

Does this happen every time?
Yes

Other information:
Comment 1 Jürg Billeter 2007-05-09 11:26:26 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 2 Marc-Andre Lureau 2008-10-18 20:35:49 UTC
test case added to vala-tests