[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Converting string to follow java convention
From: |
Stephen Leake |
Subject: |
Re: [h-e-w] Converting string to follow java convention |
Date: |
01 Jun 2002 15:54:07 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
"Daniel Hegyi" <address@hidden> writes:
> Hi,
>
> Does anybody have a function that takes a string and converts it to
> follow the java naming conventions? E.g.,
> "DB_SERVER_NAME" or "db_seRver_name" would become "dbServerName" I
> have the camelCase package (written by C.R.Manning address@hidden
> at http://www.ai.mit.edu/people/caroma/tools/) but it doesn't support
> this feature.
Ada-mode (http://libre.act-europe.fr/adamode/) has code to capitalize
words with underscores:
a_nice_example becomes A_Nice_Example
It also supports exceptions to the standard rule:
my_text_io becomes My_Text_IO
You could start with that and adapt it to remove the underscores.
Be sure to appease the Ada gods first :).
--
-- Stephe
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [h-e-w] Converting string to follow java convention,
Stephen Leake <=