104
1
using System;using System.Text;using System.Diagnostics;using System.Collections.Generic;using System.Text.RegularExpressions;
2
3
public static class Program
4
{
5
//https://unicode-table.com/en/blocks/general-punctuation/ add some special cases
6
public static bool isSpecialUnicodeCntrlChr(this Char c)
7
{
8
//remove left-to-rights and right-to-lefts
9
switch (c)
10
{
11
case '\u200E': //Left-To-Right Mark
12
case '\u200F': //Right-To-Left Mark
13
case '\u202A': //Left-To-Right Embedding
14
case '\u202B': //Right-To-Left Embedding
15
case '\u202D': //Left-To-Right Override
16
case '\u202E': //Right-To-Left Override
17
case '\u2066': //Left-To-Right Isolate
18
case '\u2067': //Right-To-Left Isolate
19
20
//https://unicode-table.com/en/blocks/general-punctuation/ add more
21
//case '\u2060': //Word Joiner
22
//etc....
23
return true;
24
default:
Cached Result