|
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
|
|
|
|
|
hmm, I wonder what my test was doing wrong, because GetUnicodeCategory(string, int) was returning only single char values for me i thought. maybe i had a bug
Real programmers use butterflies
|
|
|
|
|
Thank you! Turns out there was a bug in my code where i wasn't passing doublechar strings in. They ended up single char.
Real programmers use butterflies
|
|
|
|
|
What would we call it then? Here are Some suggestions[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Some funny ones there
Yet it annoyed me (a lot more than it should have) that France and Poland didn't adhere to the use of the country's name!
|
|
|
|
|
Why would France do it lie anyone else?
|
|
|
|
|
Telling that there wasn't one for Germany. DoneMark is very close to how it's actually pronounced natively (in Norwegian and Swedish, at any rate; Danish has been referred to as a throat disease rather than a language).
|
|
|
|
|
That website is a gem!
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
Frédéric Chopin - Impromptu no. 4 in C sharp minor, Op. posth. 66 (Fantaisie Impromptu)[^]
If, a few years back, you told me I'd be listening to Chopin I'd tell you you're crazy.
I didn't care much for the many piano notes that don't always seem to have a head or tails.
But I heard this on the radio on my way to piano lessons.
It sounded familiar, but I don't know from where.
The first bars are the same as Beethoven's Moonlight Sonata, but it's the bars after that that sounded familiar.
Well, it's one of Chopin's most famous pieces so I probably just heard it here and there.
Funny thing is that it was published after Chopin's death even though Chopin explicitly stated he didn't want anything published after he passed.
So this is my first SOTW of 2020.
Chopin would be proud
|
|
|
|
|
We all grow up sooner or later.
Soon enough you'll be listening to Eric Satie and Joaquin Rodrigo.
And on that note: Your future [^]
|
|
|
|
|
Jörgen Andersson wrote: Eric Satie I've listened to Satie for most of my life, mostly because my father really likes it
Jörgen Andersson wrote: Joaquin Rodrigo Didn't know him, but that's something I could listen to anyway
Jörgen Andersson wrote: And on that note: Your future [^] Oh hell no!
|
|
|
|
|
|
That's what I was listening to earlier today.
It's very soundtracky and very nice
|
|
|
|
|
|
|
Nice. Here's about the only new music to appear lately. Not much different than some old stuff, but even a little change is good: Nils Andreas - Phoenix.
|
|
|
|
|
Also nice
|
|
|
|
|
In a previous post I said my cat either has an inflammation or a tumor.
Well, it's an inflammation... On a tumor
They're going to see if they can cut the cancer away, but most likely, they can't.
Cancer in cats is usually very aggressive so it has probably spread already.
She's about 11 years old.
F*** this sh*t...
|
|
|
|
|
Sorry to hear that, Sander.
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
Sorry - I missed and posted it in the wrong place ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Bastard. Cancer sucks arse.
Here's hoping they can do something to give her quality of life, if not a good length - as you say, they are usually aggressive and because cats hide symptoms until they really can't cope any longer metastasising has usually taken place long before the tumour itself is diagnosed.
We'll be thinking of you both ...
Cancer really sucks arse big time.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Shouldn't it be less aggressive to a rather old cat?
I wish her best of luck.
|
|
|
|
|
I hope the pain is bearable for your cat.
Best wishes for a speedy recovery.
|
|
|
|
|
|
We'll light a candle for Nika tonight; best wishes and beterschap.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|