MVV
I know %T%N is already quoted when there are spaces.
I think Christian meant to quote %P%N if they contain special characters whether or not there are spaces.
I was just asking for the same for %T%N
Command parameters truncated when containing '&' charact
Moderators: Hacker, petermad, Stefan2, white
First of all it's just a quick example, you're free to optimize it.MVV wrote:why do you use logarithmic scanning of your lut_chars when linear one would do the same thing faster (and much faster in case of long strings)
And: this is the setup, we'd only call it once!
That's the whole point of LUT.
The check() function is the main point I'm talking about: no need for four bit operations for every char,
plus no need for memset.
A few hundred bytes for a static struct is a fair tradeof for a faster lookup operation, and far more readable and adaptable IMO.
(just replace a bool with a wchar and you get replacement function, etc.)
TC plugins: PCREsearch and RegXtract
- ghisler(Author)
- Site Admin
- Posts: 50549
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
In Total Commander 8.52a RC1, I'm now also adding double quotes when the path or name contains the & character. Can you test it please?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com