Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <3936BA69-92D7-4FAA-80DE-2FDE6861A536@aevum.de>
Date: Sun, 29 Jun 2025 17:39:14 +0200
From: Nick Wellnhofer <wellnhofer@...um.de>
To: musl@...ts.openwall.com
Subject: Re: Paintcans for reverse iterating strings

On Jun 29, 2025, at 02:08, Rich Felker <dalias@...c.org> wrote:
> One thing we're going to need for LC_COLLATE in locales where
> second-level weights are applied in reverse order (diacritic marks
> later in the string weigh more than earlier ones) is the ability to
> traverse (& live transform to NFD) the input string in reverse.

Assuming the context is strcoll and we're comparing two strings, wouldn't it be possible to compare the strings in normal, forward direction but instead of stopping at the first difference, comparing all collation elements and returning the last difference (if any)?

Nick

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.