#2 idl_validname.pro implementation

closed
nobody
None
5
2011-11-02
2011-08-19
Hong Xu
No

Here is an implementation of idl_validname.

It's implemented according to http://idlastro.gsfc.nasa.gov/idl_html_help/IDL_VALIDNAME.html.
It's modified from this version: https://sourceforge.net/tracker/index.php?func=detail&aid=3096072&group_id=97659&atid=618686

This implementation is more like what idl does than the one in CVS.

Cheers,
Hong Xu

Discussion

  • Hong Xu
    Hong Xu
    2011-08-19

     
    Attachments
  • Alain C.
    Alain C.
    2011-09-07

    Thanks !
    I don't see this message before. I will try to merge that with my recent changes ASAP.

    Alain.

     
  • Hong Xu
    Hong Xu
    2011-09-20

    I've seen your first-time change (seems a code style change) but the attached file has implemented all the features including the features of original version. In fact, you could use this attached file directly, without merging with your change since it has already done all the things that needed to do.

     
  • Hong Xu
    Hong Xu
    2011-09-20

    Besides, the one in CVS currently could not deal with non-ascii characters (./CONVERT_ALL should also convert non-ascii chars to underscores), and reversed words are not considered. So I strongly recommend you to use the attached file directly.

     
  • Alain C.
    Alain C.
    2011-11-02

    • status: open --> closed
     
  • Alain C.
    Alain C.
    2011-11-02

    I just included you code (with very limited changes) in the CVS, sorry for the delay.

    In fact, your code depends on STREGEX and we do have problems around STREGEX now, and I needed time to locate the origine of the problem.

    Please re-open a new bug tracker if bugs are founded in IDL_VALIDNAME not related to STREGEX (TEST_IDL_VALIDNAME is not completed now ...)