Finding chars in strings
    ag0aep6g via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Tue Sep  5 09:04:16 PDT 2017
    
    
  
On 09/05/2017 05:54 PM, Per Nordlöw wrote:
> Follow up question: If a character literal has type char, can we always 
> assume it's an ASCII character?
Strictly speaking, this is a character literal of type char: '\xC3'. 
It's clearly above 0x7F, and not an ASCII character. So, no.
But if it's an actual character, not an escape sequence, then yes (I 
think). A wrong encoding setting in your text editor could mess with 
that, though.
    
    
More information about the Digitalmars-d-learn
mailing list