bigloo.foreign.string_cile C# (CSharp) Method

string_cile() public static method

public static string_cile ( byte s1, byte s2 ) : bool
s1 byte
s2 byte
return bool
        public static bool string_cile( 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= toupper( s1[i] & 0xFF );
               int c2= toupper( s2[i] & 0xFF );

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

            return (n1 <= n2);
        }
foreign