bigloo.foreign.string_ge C# (CSharp) Method

string_ge() public static method

public static string_ge ( byte s1, byte s2 ) : bool
s1 byte
s2 byte
return bool
        public static bool string_ge( byte[] s1, byte[] s2 )
        {
            int n1= s1.Length;
            int n2= s2.Length;
            int min= (n1 < n2) ? n1 : n2;

            for ( int i= 0 ; i < min ; ++i )
            {
               int c1= s1[i] & 0xFF;
               int c2= s2[i] & 0xFF;

               if (c1 != c2)
              return (c1 >= c2);
            }

            return (n1 >= n2);
        }
foreign