Example #1
0
        // Determine if a particular culture exists.
        public bool HasCulture(int culture)
        {
            // Create the hex version of the culture identifier.
            StringBuilder builder = new StringBuilder();

            builder.Append("CID");
            builder.Append(hex[(culture >> 12) & 0x0F]);
            builder.Append(hex[(culture >> 8) & 0x0F]);
            builder.Append(hex[(culture >> 4) & 0x0F]);
            builder.Append(hex[culture & 0x0F]);
            String name = builder.ToString();

            // Determine if a handler exists for this culture.
            return(handlers.IndexOf(name) != -1);
        }