Hello,
I'm looking to convert some imported C functions' names to lower-case.
For example, glLoadMatrix -> gl-load-matrix.
I haven't been able to find a way to do this with the 'substitute'
syntax, because (AFAIK) it only allows back-references, so I can't switch
the case short of doing something like
__declare(substitute, "([a-z])A;\1a")
__declare(substitute, "([a-z])B;\1b")
__declare(substitute, "([a-z])C;\1c")
....
I tracked this back to the implementation of string-substitute (in
pcre.scm), and I didn't see any simple way to do this.
Thoughts? Should I implement a more general method?