csvorbis.Comment.tagcompare C# (CSharp) Method

tagcompare() static private method

static private tagcompare ( byte s1, byte s2, int n ) : bool
s1 byte
s2 byte
n int
return bool
        static bool tagcompare(byte[] s1, byte[] s2, int n)
        {
            int c=0;
            byte u1, u2;
            while(c < n)
            {
                u1=s1[c]; u2=s2[c];
                if(u1>='A')u1=(byte)(u1-'A'+'a');
                if(u2>='A')u2=(byte)(u2-'A'+'a');
                if(u1!=u2){ return false; }
                c++;
            }
            return true;
        }