This will check for \L, \U, \l and \u escape code in replacement string and do
necessary case transformation.
Currently, \u does not work because it is interpreted as a Unicode escape
sequence before the replacement function.
I suggest using the `\u{XXX}` syntax for Unicode codepoints instead of `\uXXX`,
but this is a breaking change.
It is also assumed that a character is hold in one byte, whereas it may be
false.
This may need a little bit of cleanup. I am not a C programmer and my knowledge
of this language is very limited, so I may have made big mistakes.
I am currently battle-testing these modifications, but non-trivial substitution
seems to work fine.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/4646
-- Commit Summary --
* add basic regex replacement transformation
-- File Changes --
M src/search.c (130)
M src/utils.c (18)
M src/utils.h (2)
-- Patch Links --
https://github.com/geany/geany/pull/4646.patch
https://github.com/geany/geany/pull/4646.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/4646
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/[email protected]>