[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-libunistring] BUG: u8_ct_totitle seems to ignore prefix context
From: |
Bruno Haible |
Subject: |
Re: [bug-libunistring] BUG: u8_ct_totitle seems to ignore prefix context |
Date: |
Wed, 28 Dec 2022 08:30:18 +0100 |
Aki Tuomi wrote:
> pass in 'roits' with prefix context 'D', you will end up with 'Roits'.
> I would've expected this to actually return 'roits'.
Yes, that's because it titlecases the substring "roits". Titlecasing
uppercases the first word, and the first word of the substring is "roits".
I tried to explain it in the previous mail. u8_ct_totitle *is not made*
for what you want to use it, and *it cannot be made* to work for what you
want to use it because of problems with the suffix_context.
That's why I'm suggesting a getline()/getdelim() like approach.
Bruno