Is it possible in C# to use UTF-32 characters not in Plane 0 as a char?
string s = ""; // valid
char c = ''; // generates a compiler error ("Too many characters in character literal")
And in s it is represented by two characters, not one.
Edit: I mean, is there a character AN string type with full unicode support, UTF-32 or UTF-8 per character? For example if I want a for loop on utf-32 (maybe not in plane0) characters in a string.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…