-[8.50b2] Search options?

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
fleggy
Junior Member
Junior Member
Posts: 97
Joined: 2011-10-20, 07:00 UTC

-[8.50b2] Search options?

Post by *fleggy »

Hello, why are the search options RegEx (2) and Office XML mutually exclusive? Is there a problem to search any regex in files inside archives? Thanks
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Office xml uses UTF-8 to encode its files. Unfortunately UTF-8 uses multiple bytes per character, so I don't currently see how I could implement character classes to work with UTF-8 (e.g. [a-z]).
Author of Total Commander
https://www.ghisler.com
fleggy
Junior Member
Junior Member
Posts: 97
Joined: 2011-10-20, 07:00 UTC

Post by *fleggy »

Thanks for the explanation.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

But why do you disable UTF-16 when RegEx is used? UTF-16 is constant-length encoding...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm currently using the Unicode version of the regex library for file names. It has some troubles with 0 bytes, so I can't currently use it for files of any type.
Author of Total Commander
https://www.ghisler.com
Post Reply