5 votes
Accepted

Digit after null terminator in C?

\0 actually has no special meaning other than a zero character. By convention, we write null terminators using that form since it makes the syntax resemble other escape sequences like \n. But \ <...
Lundin's user avatar
  • 204k
4 votes

Digit after null terminator in C?

\NNN (where N is an integer between 0 and 7) in a string literal represents a single byte whose octal representation is NNN. There may be 1, 2, or 3 digits after the \. The \0 in the string literal ...
William Pursell's user avatar
1 vote

How to validate Unicode letters in .NET that contain invisible chars

The TextElementEnumerator class, knows about characters that belong together to represent a single "print character". For example: void Main() { string sample = "Crème brûlée";...
Hans Kesting's user avatar
1 vote
Accepted

How to validate Unicode letters in .NET that contain invisible chars

You can skip the NonSpacingMark category returned from char.GetUnicodeCategory(c). No need to hardcode anything.
Tarek Sayed - MSFT's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible