Click here to Skip to main content
14,550,848 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: The real problem with space travel Pin
Super Lloyd16-Dec-19 19:40
MemberSuper Lloyd16-Dec-19 19:40 
GeneralRe: The real problem with space travel Pin
Member 916705716-Dec-19 23:21
MemberMember 916705716-Dec-19 23:21 
GeneralThought of the Day Pin
OriginalGriff16-Dec-19 4:49
mveOriginalGriff16-Dec-19 4:49 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer16-Dec-19 5:18
professionalDaniel Pfeffer16-Dec-19 5:18 
GeneralRe: Thought of the Day Pin
W Balboos, GHB16-Dec-19 5:21
mveW Balboos, GHB16-Dec-19 5:21 
GeneralRe: Thought of the Day Pin
DRHuff16-Dec-19 7:27
MemberDRHuff16-Dec-19 7:27 
GeneralRe: Thought of the Day Pin
Kschuler16-Dec-19 7:58
MemberKschuler16-Dec-19 7:58 
RantI really shouldn't have to do this on a platform that "supports" unicode Pin
honey the codewitch16-Dec-19 4:26
mvahoney the codewitch16-Dec-19 4:26 
All of this because microsoft doesn't expose the tables they use behind char.IsLetter() and the like Mad | :mad:

Like, did they think nobody would ever need to use the unicode category codes for things?
Their enumeration isn't even flags.

for(var i = 0;i<char.MaxValue;++i)
{
	char ch = unchecked((char)i);
	var uc = char.GetUnicodeCategory(ch);
	switch(uc)
	{
		case UnicodeCategory.ClosePunctuation:
			_AddTo(working, "Pe", ch);
			_AddTo(working, "P", ch);
			break;
		case UnicodeCategory.ConnectorPunctuation:
			_AddTo(working, "Pc", ch);
			_AddTo(working, "P", ch);
			break;
		case UnicodeCategory.Control:
			_AddTo(working, "Cc", ch);
			_AddTo(working, "C", ch);
			break;
		case UnicodeCategory.CurrencySymbol:
			_AddTo(working, "Sc", ch);
			_AddTo(working, "S", ch);
			break;
		case UnicodeCategory.DashPunctuation:
			_AddTo(working, "Pd", ch);
			_AddTo(working, "P", ch);
			break;
		case UnicodeCategory.DecimalDigitNumber:
			_AddTo(working, "Nd", ch);
			_AddTo(working, "N", ch);
			break;

When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: I really shouldn't have to do this on a platform that "supports" unicode Pin
Jörgen Andersson16-Dec-19 6:27
professionalJörgen Andersson16-Dec-19 6:27 
GeneralRe: I really shouldn't have to do this on a platform that "supports" unicode Pin
honey the codewitch16-Dec-19 6:29
mvahoney the codewitch16-Dec-19 6:29 
GeneralRe: I really shouldn't have to do this on a platform that "supports" unicode Pin
Daniel Pfeffer16-Dec-19 21:23
professionalDaniel Pfeffer16-Dec-19 21:23 
GeneralRe: I really shouldn't have to do this on a platform that "supports" unicode Pin
honey the codewitch16-Dec-19 21:28
mvahoney the codewitch16-Dec-19 21:28 
GeneralRe: I really shouldn't have to do this on a platform that "supports" unicode Pin
Daniel Pfeffer16-Dec-19 21:49
professionalDaniel Pfeffer16-Dec-19 21:49 
GeneralRe: I really shouldn't have to do this on a platform that "supports" unicode Pin
honey the codewitch16-Dec-19 21:50
mvahoney the codewitch16-Dec-19 21:50 
GeneralRe: I really shouldn't have to do this on a platform that "supports" unicode Pin
Daniel Pfeffer16-Dec-19 21:55
professionalDaniel Pfeffer16-Dec-19 21:55 
GeneralRe: I really shouldn't have to do this on a platform that "supports" unicode Pin
honey the codewitch16-Dec-19 21:56
mvahoney the codewitch16-Dec-19 21:56 
GeneralSo that must be painful... Pin
Sander Rossel15-Dec-19 22:45
professionalSander Rossel15-Dec-19 22:45 
GeneralRe: So that must be painful... Pin
OriginalGriff15-Dec-19 22:54
mveOriginalGriff15-Dec-19 22:54 
GeneralRe: So that must be painful... Pin
glennPattonWork15-Dec-19 23:30
professionalglennPattonWork15-Dec-19 23:30 
GeneralRe: So that must be painful... Pin
Duncan Edwards Jones16-Dec-19 1:50
professionalDuncan Edwards Jones16-Dec-19 1:50 
GeneralRe: So that must be painful... Pin
Chris Maunder16-Dec-19 13:16
cofounderChris Maunder16-Dec-19 13:16 
GeneralRe: So that must be painful... Pin
Cp-Coder16-Dec-19 0:23
MemberCp-Coder16-Dec-19 0:23 
GeneralRe: So that must be painful... Pin
Maximilien16-Dec-19 4:11
MemberMaximilien16-Dec-19 4:11 
GeneralRe: So that must be painful... Pin
Dan Neely16-Dec-19 4:49
MemberDan Neely16-Dec-19 4:49 
GeneralRe: So that must be painful... Pin
Bassam Abdul-Baki18-Dec-19 5:48
professionalBassam Abdul-Baki18-Dec-19 5:48 

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.