Order of punctuation marks vs letters

后端 未结 3 1621
孤街浪徒
孤街浪徒 2021-01-07 03:51

In C#, it is well known that \".\".CompareTo(\"A\") == -1 .

My question is: is there a punctuation mark x such that x.CompareTo(\"A\") == 1

3条回答
  •  借酒劲吻你
    2021-01-07 04:32

    The sort order of characters is just based on their ASCII values.

    Example ASCII table

    So yes, there are a lot of characters that are "higher" than A.

提交回复
热议问题