home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 32,693 of 33,346   
   Zhihao Yuan to Frank Birbacher   
   Re: Are there any ideas out there for ch   
   27 Nov 12 20:49:10   
   
   From: lichray@googlemail.com   
      
   On Monday, November 26, 2012 4:20:06 PM UTC-6, Frank Birbacher wrote:   
   > While we are at it: doesn't the standard assume for std::basic_string   
   > that one element (value_type, charT) represents exactly one character   
   > and size() gives the length? Are multibyte/multiword encodings   
   > actually permitted formally?   
      
   Multibyte encoding is allowed but not ``supported''.   
      
   2.14.5/15:   
    ... Note: The size of a char16_t string literal is the total number   
    of code units, not the number of characters ...   
      
   The problem with wchar_t is that its range is limited by the locale.   
   So if we need a portable and fully Unicode-supported string, char32_t   
   should be used instead.   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca