Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #123074

Re: A nice "strlen()" for UTF-8 ...

From Michael S <already5chosen@yahoo.com>
Newsgroups comp.lang.c++
Subject Re: A nice "strlen()" for UTF-8 ...
Date 2025-11-24 19:51 +0200
Organization A noiseless patient Spider
Message-ID <20251124195147.00002660@yahoo.com> (permalink)
References (7 earlier) <10g1ldd$2e5qr$1@dont-email.me> <10g1mlo$2eokm$1@raubtier-asyl.eternal-september.org> <10g1r2m$2g6c9$1@dont-email.me> <20251124191604.0000674a@yahoo.com> <10g24qt$2kr22$1@dont-email.me>

Show all headers | View raw


On Mon, 24 Nov 2025 18:32:13 +0100
David Brown <david.brown@hesbynett.no> wrote:

> On 24/11/2025 18:16, Michael S wrote:
> > On Mon, 24 Nov 2025 15:45:42 +0100
> > David Brown <david.brown@hesbynett.no> wrote:
> >   
> >> On 24/11/2025 14:31, Bonita Montero wrote:  
> >>> I don't understand your problem. You seem extremely obsessive. A
> >>> character can be anything,
> >>> a Unicode code point or an ASCII character. The latter aren't
> >>> really characters in the literal
> >>> sense either, but that's what they're called.  
> >>
> >> That's /your/ definition.
> >>
> >> Use your own private definition if you want, but don't deride other
> >> people for using correct definitions appropriate to the context.
> >> You made a function for counting Unicode code points from a UTF8
> >> string. That's great - it's a useful thing to do.  Just call it
> >> that instead of picking an inaccurate name for it.  What is your
> >> difficulty in using the simple, clear and correct term "code
> >> point" instead of a vague and poorly defined alternative?
> >>  
> > 
> > Do you happen to know what is represented by values of type 'char'
> > in Rust? :-)
> >   
> 
> No, sorry.
> 

I thought that you can guess that it represents Unicode code point.
Of course, "The Book" pays lip servers: "However, a “character” isn’t
really a concept in Unicode, so your human intuition for what a
“character” is may not match up with what a char is in Rust."
But who pays attention to lip service?
You can be reasonably sure that 99.99% of Rust programmers use the word
'character' in the meaning 'Unicode code point'.




Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

A nice "strlen()" for UTF-8 ... Bonita Montero <Bonita.Montero@gmail.com> - 2025-11-19 14:00 +0100
  Re: A nice "strlen()" for UTF-8 ... Lynn McGuire <lynnmcguire5@gmail.com> - 2025-11-19 12:59 -0600
    Re: A nice "strlen()" for UTF-8 ... Bonita Montero <Bonita.Montero@gmail.com> - 2025-11-20 15:25 +0100
  Re: A nice "strlen()" for UTF-8 ... Lynn McGuire <lynnmcguire5@gmail.com> - 2025-11-21 00:15 -0600
    Re: A nice "strlen()" for UTF-8 ... Bonita Montero <Bonita.Montero@gmail.com> - 2025-11-21 10:42 +0100
      Re: A nice "strlen()" for UTF-8 ... Alfred Peters <miteinere-mail-adresseindereinleitungszeilewirddieseoftzulang@geekmail.de> - 2025-11-23 13:22 +0100
        Re: A nice "strlen()" for UTF-8 ... Bonita Montero <Bonita.Montero@gmail.com> - 2025-11-23 17:35 +0100
          Re: A nice "strlen()" for UTF-8 ... David Brown <david.brown@hesbynett.no> - 2025-11-23 18:18 +0100
            Re: A nice "strlen()" for UTF-8 ... Bonita Montero <Bonita.Montero@gmail.com> - 2025-11-24 13:08 +0100
              Re: A nice "strlen()" for UTF-8 ... David Brown <david.brown@hesbynett.no> - 2025-11-24 14:09 +0100
                Re: A nice "strlen()" for UTF-8 ... Bonita Montero <Bonita.Montero@gmail.com> - 2025-11-24 14:31 +0100
                Re: A nice "strlen()" for UTF-8 ... David Brown <david.brown@hesbynett.no> - 2025-11-24 15:45 +0100
                Re: A nice "strlen()" for UTF-8 ... Bonita Montero <Bonita.Montero@gmail.com> - 2025-11-24 16:32 +0100
                Re: A nice "strlen()" for UTF-8 ... Michael S <already5chosen@yahoo.com> - 2025-11-24 19:16 +0200
                Re: A nice "strlen()" for UTF-8 ... David Brown <david.brown@hesbynett.no> - 2025-11-24 18:32 +0100
                Re: A nice "strlen()" for UTF-8 ... Michael S <already5chosen@yahoo.com> - 2025-11-24 19:51 +0200
                Re: A nice "strlen()" for UTF-8 ... Michael S <already5chosen@yahoo.com> - 2025-11-24 19:54 +0200
                Re: A nice "strlen()" for UTF-8 ... David Brown <david.brown@hesbynett.no> - 2025-11-24 21:14 +0100
            Re: A nice "strlen()" for UTF-8 ... Chris Vine <chris@cvine--nospam--.freeserve.co.uk> - 2025-11-24 12:53 +0000

csiph-web