Click here to Skip to main content
15,891,473 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Either I'm missing something or .NET is Pin
Dr.Walt Fair, PE17-Jan-20 10:58
professionalDr.Walt Fair, PE17-Jan-20 10:58 
GeneralRe: Either I'm missing something or .NET is Pin
OriginalGriff17-Jan-20 1:01
mveOriginalGriff17-Jan-20 1:01 
GeneralRe: Either I'm missing something or .NET is Pin
honey the codewitch17-Jan-20 2:23
mvahoney the codewitch17-Jan-20 2:23 
GeneralRe: Either I'm missing something or .NET is Pin
RugbyLeague17-Jan-20 2:40
RugbyLeague17-Jan-20 2:40 
GeneralRe: Either I'm missing something or .NET is Pin
honey the codewitch17-Jan-20 3:52
mvahoney the codewitch17-Jan-20 3:52 
GeneralRe: Either I'm missing something or .NET is Pin
BillWoodruff17-Jan-20 22:40
professionalBillWoodruff17-Jan-20 22:40 
GeneralRe: Either I'm missing something or .NET is Pin
honey the codewitch17-Jan-20 22:58
mvahoney the codewitch17-Jan-20 22:58 
GeneralRe: Either I'm missing something or .NET is Pin
BillWoodruff18-Jan-20 2:20
professionalBillWoodruff18-Jan-20 2:20 
honey the codewitch wrote:
The 2 char string cannot be queried for its unicode category in .NET AFAIK
It is a mess, but, check this against what you expect, now:
public void PrintUniCodeRange(int sc, int ec)
{
    bool isKey;
    
    string key = "";

    for (int i = sc; i <= ec; i++)
    {
        string ucString = char.ConvertFromUtf32(i);
        
        isKey = i < 256;

        if (isKey) key = ((Keys)Enum.Parse(typeof(Keys), i.ToString())).ToString();

        UnicodeCategory cat = Char.GetUnicodeCategory(ucString, 0);

        if (cat != UnicodeCategory.OtherNotAssigned)
        {
            Console.WriteLine($"#{i} | Unicode Category: {cat} {(isKey ? "! Keys Enum: " + key : "")}");
        }
    }
}
Calling the above with 8192 to 8233 parameters:
#8192 | Unicode Category: SpaceSeparator 
#8193 | Unicode Category: SpaceSeparator 
#8194 | Unicode Category: SpaceSeparator 
#8195 | Unicode Category: SpaceSeparator 
#8196 | Unicode Category: SpaceSeparator 
#8197 | Unicode Category: SpaceSeparator 
#8198 | Unicode Category: SpaceSeparator 
#8199 | Unicode Category: SpaceSeparator 
#8200 | Unicode Category: SpaceSeparator 
#8201 | Unicode Category: SpaceSeparator 
#8202 | Unicode Category: SpaceSeparator 
#8203 | Unicode Category: Format 
#8204 | Unicode Category: Format 
#8205 | Unicode Category: Format 
#8206 | Unicode Category: Format 
#8207 | Unicode Category: Format 
#8208 | Unicode Category: DashPunctuation 
#8209 | Unicode Category: DashPunctuation 
#8210 | Unicode Category: DashPunctuation 
#8211 | Unicode Category: DashPunctuation 
#8212 | Unicode Category: DashPunctuation 
#8213 | Unicode Category: DashPunctuation 
#8214 | Unicode Category: OtherPunctuation 
#8215 | Unicode Category: OtherPunctuation 
#8216 | Unicode Category: InitialQuotePunctuation 
#8217 | Unicode Category: FinalQuotePunctuation 
#8218 | Unicode Category: OpenPunctuation 
#8219 | Unicode Category: InitialQuotePunctuation 
#8220 | Unicode Category: InitialQuotePunctuation 
#8221 | Unicode Category: FinalQuotePunctuation 
#8222 | Unicode Category: OpenPunctuation 
#8223 | Unicode Category: InitialQuotePunctuation 
#8224 | Unicode Category: OtherPunctuation 
#8225 | Unicode Category: OtherPunctuation 
#8226 | Unicode Category: OtherPunctuation 
#8227 | Unicode Category: OtherPunctuation 
#8228 | Unicode Category: OtherPunctuation 
#8229 | Unicode Category: OtherPunctuation 
#8230 | Unicode Category: OtherPunctuation 
#8231 | Unicode Category: OtherPunctuation 
#8232 | Unicode Category: LineSeparator 
#8233 | Unicode Category: ParagraphSeparator

«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

GeneralRe: Either I'm missing something or .NET is Pin
honey the codewitch18-Jan-20 3:11
mvahoney the codewitch18-Jan-20 3:11 
GeneralRe: Either I'm missing something or .NET is Pin
honey the codewitch18-Jan-20 3:34
mvahoney the codewitch18-Jan-20 3:34 
GeneralSo ... Brexit is due in two weeks. But what if other countries decided to leave? Pin
OriginalGriff16-Jan-20 23:49
mveOriginalGriff16-Jan-20 23:49 
GeneralRe: So ... Brexit is due in two weeks. But what if other countries decided to leave? Pin
musefan17-Jan-20 0:05
musefan17-Jan-20 0:05 
JokeRe: So ... Brexit is due in two weeks. But what if other countries decided to leave? Pin
Sharp Ninja20-Jan-20 5:26
Sharp Ninja20-Jan-20 5:26 
GeneralRe: So ... Brexit is due in two weeks. But what if other countries decided to leave? Pin
Greg Utas17-Jan-20 0:50
professionalGreg Utas17-Jan-20 0:50 
GeneralRe: So ... Brexit is due in two weeks. But what if other countries decided to leave? Pin
dan!sh 17-Jan-20 2:51
professional dan!sh 17-Jan-20 2:51 
GeneralSound of the Week Pin
Sander Rossel16-Jan-20 22:42
professionalSander Rossel16-Jan-20 22:42 
GeneralRe: Sound of the Week Pin
Jörgen Andersson16-Jan-20 22:58
professionalJörgen Andersson16-Jan-20 22:58 
GeneralRe: Sound of the Week Pin
Sander Rossel17-Jan-20 1:44
professionalSander Rossel17-Jan-20 1:44 
GeneralRe: Sound of the Week Pin
Jörgen Andersson17-Jan-20 4:39
professionalJörgen Andersson17-Jan-20 4:39 
GeneralRe: Sound of the Week Pin
Sander Rossel17-Jan-20 9:32
professionalSander Rossel17-Jan-20 9:32 
GeneralRe: Sound of the Week Pin
phil.o16-Jan-20 23:01
professionalphil.o16-Jan-20 23:01 
GeneralRe: Sound of the Week Pin
Sander Rossel17-Jan-20 1:56
professionalSander Rossel17-Jan-20 1:56 
GeneralRe: Sound of the Week Pin
David O'Neil19-Jan-20 14:52
professionalDavid O'Neil19-Jan-20 14:52 
GeneralRe: Sound of the Week Pin
Sander Rossel20-Jan-20 0:50
professionalSander Rossel20-Jan-20 0:50 
GeneralThe CAT scan results are in... Pin
Sander Rossel16-Jan-20 21:36
professionalSander Rossel16-Jan-20 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.