138
1
using System;using System.Collections.Generic;
2
3
public static class Program
4
{
5
//add U+2019 from https://en.wikipedia.org/wiki/Apostrophe
6
//you can add others, if you think so - http://www.fileformat.info/search/google.htm?q=+SINGLE+QUOTATION+MARK
7
public static bool isUnicodeApostrophe(this char c)
8
{
9
if (c == '\'' || c == '\u2019') return true;
10
else return false;
11
12
//switch (c) {
13
// case '\'':
14
// case '\u2019': //’ Right Single Quotation Mark
15
// return true;
16
// break; //ignore error, this is quicker
17
// default:
18
// return false;
19
// break; //ignore error, this is quicker
20
//}
21
22
}
23
24
/// <summary>
Cached Result