コード例 #1
0
        protected LanguageId _fromLang = LanguageId.en; // English is default source language.

        public static ulong GetHashCode(string s)
        {
            // create a hash code for the source string.
            // Try to make this as fast as possible on longer strings.
            // use 64 bits for lower hash collisions.
            return(HashUtil.GetKnuthHash(s));
        }