in reply to Re^4: Memory Leak with XS but not pure C
in thread Memory Leak with XS but not pure C

Thanks very much Ikegami. I hadn't heard of that feature

How is it possible to get the same behaviour within an XS function

  • Comment on Re^5: Memory Leak with XS but not pure C

Replies are listed 'Best First'.
Re^6: Memory Leak with XS but not pure C
by syphilis (Archbishop) on Mar 31, 2025 at 12:29 UTC
Re^6: Memory Leak with XS but not pure C
by ikegami (Patriarch) on Mar 31, 2025 at 13:20 UTC

    If you're asking how to convert to uppercase from XS, you'd start with an upgraded string, then call toUPPER_uvchr or toUPPER_utf8 repeatedly. (Or call a Perl function that uses uc.)

Re^6: Memory Leak with XS but not pure C
by ikegami (Patriarch) on Mar 31, 2025 at 13:18 UTC

    There is nothing that can affect the behaviour of Perl's uc operator in XS code. But you can't use Perl operators in C/XS code anyway.