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


Groups > comp.os.linux.advocacy > #591777

US-ASCII is a subset of the set of Unicode code points.

From Jeff-Relf.Me @.
Message-ID <Jeff-Relf.Me@Aug.6--8.15am.Seattle.2021> (permalink)
References <sejhjm022lo@news2.newsguy.com>
Newsgroups comp.os.linux.advocacy, alt.os.linux, comp.os.linux.misc
Subject US-ASCII is a subset of the set of Unicode code points.
Organization blocknews - www.blocknews.net
Date 2021-08-06 08:15 -0700

Cross-posted to 3 groups.

Show all headers | View raw


Fabian Russell:
> As far as I know, the first 32 [ code points ] (except CR and LF)
> are just dead space.  Is this correct ?

No, US-ASCII is a subset of the set of Unicode code points.

Unicode code points are 20 bits long, not 32.

typedef  wchar_t  wchar ;   typedef  char32_t  Uchar ;

//  UTF-16 requires a "Surrogate Pair" ( 2 wchars )
//  to encode one 20 bit UTF-32 (Uchar) code point.

Uchar _i32, i32 = U'⛏';   wchar  pCh[2];

#define  i32>pCh( Ch, pCh )  hall( pCh[1] = 0, Ch >= 0x10000 ? *pCh = 0xd800 | Ch - 0x10000 >> 10, pCh[1] = 0xdc00 + ( Ch & 0x03FF ) : *pCh = Ch )

i32>pCh( i32, pCh );

SurrogatePair = ( *pCh & 0xF800 ) == 0xD800 ;

_i32 = !SurrogatePair ? *pCh : 0x10000 + ( *pCh - 0xD800 << 10 ) + pCh[1] - 0xDC00 ;

Back to comp.os.linux.advocacy | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Any Unicode Experts? FR <fr@random.info> - 2021-08-06 14:39 +0000
  Re: Any Unicode Experts? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2021-08-06 14:51 +0000
    Re: Any Unicode Experts? FR <fr@random.info> - 2021-08-06 15:01 +0000
  Re: Any Unicode Experts? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2021-08-06 14:54 +0000
  US-ASCII is a subset of the set of Unicode code points. Jeff-Relf.Me  @. - 2021-08-06 08:15 -0700
    Re: US-ASCII is a subset of the set of Unicode code points. "R.Wieser" <address@not.available> - 2021-08-06 17:36 +0200
      Re: US-ASCII is a subset of the set of Unicode code points. FR <fr@random.info> - 2021-08-06 15:49 +0000
        Re: US-ASCII is a subset of the set of Unicode code points. Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2021-08-06 16:14 +0000
        Re: US-ASCII is a subset of the set of Unicode code points. "R.Wieser" <address@not.available> - 2021-08-06 18:48 +0200
        Re: US-ASCII is a subset of the set of Unicode code points. Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2021-08-06 17:25 +0000
          Re: US-ASCII is a subset of the set of Unicode code points. FR <fr@random.info> - 2021-08-06 17:52 +0000
          Re: US-ASCII is a subset of the set of Unicode code points. FR <fr@random.info> - 2021-08-06 17:57 +0000
  Re: Any Unicode Experts? Eli the Bearded <*@eli.users.panix.com> - 2021-08-06 20:27 +0000
    Re: Any Unicode Experts? The Natural Philosopher <tnp@invalid.invalid> - 2021-08-07 09:36 +0100
      Re: Any Unicode Experts? Steve Carroll <frelwizzen@gmail.com> - 2021-08-07 04:41 -0700
      Re: Any Unicode Experts? Eli the Bearded <*@eli.users.panix.com> - 2021-08-08 04:32 +0000
        Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-07 22:50 -0600
          Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-08 20:32 +0200
            Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-08 18:00 -0600
              "while(1);" borks Visual Studio. Jeff-Relf.Me  @. - 2021-08-08 18:11 -0700
                Re: "while(1);" borks Visual Studio. rbowman <bowman@montana.com> - 2021-08-08 22:19 -0600
                Re: "while(1);" borks Visual Studio. Soviet_Mario <SovietMario@CCCP.MIR> - 2021-08-16 16:06 +0200
                Re: "while(1);" borks Visual Studio. jak <nospam@please.ty> - 2021-08-10 18:02 +0200
                while(malloc(666)); Jeff-Relf.Me  @. - 2021-08-10 09:28 -0700
                Re: while(malloc(666)); jak <nospam@please.ty> - 2021-08-10 18:39 +0200
                Re: "while(1);" borks Visual Studio. Smit <frelwizzen@gmail.com> - 2021-08-10 20:53 -0700
              Re: Any Unicode Experts? Stephen Carrolll <frelwizzen@gmail.com> - 2021-08-08 18:56 -0700
              Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-09 07:28 +0200
                Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-09 07:56 -0600
                Re: Any Unicode Experts? Dustin the dude with the stuck floppy <frelwizzen@gmail.com> - 2021-08-09 20:49 -0700
                Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-10 10:33 +0200
                Re: Any Unicode Experts? The Natural Philosopher <tnp@invalid.invalid> - 2021-08-10 12:49 +0100
                Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-10 15:26 +0200
                Re: Any Unicode Experts? vallor <vallor@cultnix.org> - 2021-08-10 13:43 +0000
                Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-10 21:12 -0600
                Re: Any Unicode Experts? The Natural Philosopher <tnp@invalid.invalid> - 2021-08-11 12:25 +0100
                Re: Any Unicode Experts? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2021-08-11 16:52 +0000
                Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-11 20:19 +0200
                Re: Any Unicode Experts? Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2021-08-12 16:37 +0000
                Re: Any Unicode Experts? jak <nospam@please.ty> - 2021-08-12 20:32 +0200
                Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-12 20:40 -0600
                Re: Any Unicode Experts? Dustin who does stuff with miceless computers <frelwizzen@gmail.com> - 2021-08-13 06:19 -0700
                Re: Any Unicode Experts? STALKING_TARGET_02 <frelwizzen@gmail.com> - 2021-08-13 03:41 -0700
                Re: Any Unicode Experts? Andreas Kohlbach <ank@spamfence.net> - 2021-08-10 16:11 -0400
                Re: Any Unicode Experts? DFS <nospam@dfs.com> - 2021-08-09 11:32 -0400
  Re: Any Unicode Experts? rbowman <bowman@montana.com> - 2021-08-06 18:19 -0600
  Re: Any Unicode Experts? Delimited <tabz334@rozlnk.net> - 2021-08-08 00:21 -0400
    Re: Any Unicode Experts? Joel <joelcrump@gmail.com> - 2021-08-08 00:29 -0400
    Re: Any Unicode Experts? Stéphane CARPENTIER <sc@fiat-linux.fr> - 2021-08-08 16:20 +0000
    Re: Any Unicode Experts? Stéphane CARPENTIER <sc@fiat-linux.fr> - 2021-08-08 16:28 +0000

csiph-web