Exemple #1
0
        public bool EndsWith(String255 str)
        {
            if (str.Length > this.Length)
                return(false);

            fixed(char *buffer = this.Buffer)
            return(LibC.WMemCmp(&buffer[this.Length - str.Length], str.Buffer, str.Length) == 0);
        }
        public int CompareTo(String255 str)
        {
            fixed(char *buffer = this.Buffer)
            {
                int result = LibC.WMemCmp(buffer, str.Buffer, this.Length < str.Length ? this.Length : str.Length);

                if (result == 0)
                {
                    return(this.Length - str.Length);
                }
                return(result);
            }
        }