[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-libunistring] [EXT] Re: BUG: u8_ct_totitle seems to ignore pref
From: |
Aki Tuomi |
Subject: |
Re: [bug-libunistring] [EXT] Re: BUG: u8_ct_totitle seems to ignore prefix context |
Date: |
Wed, 28 Dec 2022 09:36:33 +0200 (EET) |
> On 28/12/2022 09:30 EET Bruno Haible <bruno@clisp.org> wrote:
>
>
> 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
Ok, I am not 100% sure I still understand what it is intended for, but I did
already grasp the point that it's not what I want from previous email. Thank
you for your assistance.
Aki