作者qrtt1 (null)
看板C_Sharp
标题Re: [问题] 请问在C#中符号字元的定义
时间Sun Jun 15 13:10:42 2008
※ 引述《ming0214 (Ming)》之铭言:
: 课堂中老师示范一个例子
: 输入一个字元
: 然後程式会去做分析
: 像是不是大写或小写啦之类的
: 其中有一个就是判断是否为符号
: output += "is symbol: " + Char.IsSymbol( inputCharacter )
: 问题就来了"符号字元定义"到底是什麽 ~"~
: 像 @ # $ % 都不是
: 而 ~ | = 却是
: 麻烦懂的人指点一下(教授说要把这题当考题....)
: 感激不尽><
http://msdn.microsoft.com/en-us/library/00k2wda1(VS.85).aspx
<%
Indicates whether the specified
Unicode character
is
categorized as a symbol character.
%>
<%
Valid symbols are members of the following categories
in UnicodeCategory:
MathSymbol, CurrencySymbol, ModifierSymbol, and OtherSymbol.
%>
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.133.80.216
1F:推 ming0214:THX不过有办法查出是哪些specified unicode character 06/15 17:04
2F:推 tomex:列举出来你也找不着,倒不如想测那种个字,用该method判定 06/15 23:00