摘要:
字典序比较.net类库自带有string.CompareOrdinal,不过不支持char*。有时候为了效率不想重复fixed同一个字符串,而却有时候char*是stackalloc new出来的,更加不适应。还是那句话,自食其力吧。 public static unsafe int cmp(string left, string right) { if (left != null && right != null) { int length = left.Length <= right.Le... 阅读全文
posted @ 2012-05-08 11:57
肖进
阅读(1690)
评论(0)
推荐(0)
浙公网安备 33010602011771号