1234567891011121314151617181920212223242526272829303132333435363738394041 |
- namespace assetBundleUtility
- {
- using System;
- using System.Collections;
- using System.Collections.Generic;
-
- using UnityEngine;
-
- public static class SortExtension
- {
- /// <summary>
- /// str0µÄASCIIÊÇ·ñ±Èstr1µÄASCIIС
- /// </summary>
- /// <param name="str0"></param>
- /// <param name="str1"></param>
- /// <returns></returns>
- public static bool CompareASCII(string str0, string str1)
- {
- for (int i = 0; i < str0.Length; i++)
- {
- if (i >= str1.Length)
- {
- return true;
- }
- else if (str0[i] < str1[i])
- {
- return true;
- }
- else if (str0[i] > str1[i])
- {
- return false;
- }
- }
- throw new Exception();
- }
- }
- }
|