Menu

#219 (strip) encoder to remove prefix from C names

closed-accepted
None
5
2008-11-01
2008-09-26
No

The patch against latest SVN adds "strip" encoder that removes leading prefix from C names. Useful for wrapping C libraries that usually have all their functions prefixed. Prefixed function calls look ugly when wrapped into Python module with the same name, and hence this encoder.

Discussion

  • anatoly techtonik

    strip prefix encoder

     
  • William Fulton

    William Fulton - 2008-11-01

    Thanks, committed for swig-1.3.37.
    Note that a general regular expression library would also provide the same functionality, but this patch provides a very common use case that is best met now before/if a reg exp library is added (of which I know of none that is forthcoming).

     
  • William Fulton

    William Fulton - 2008-11-01
    • assigned_to: nobody --> wsfulton
    • status: open --> closed-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB