예제 #1
0
        /// <summary>
        /// Convenience method. Calls <see cref="RegisterEntry(string, string, string, string, object, bool)"/>.
        /// </summary>
        private void RegisterEntry(string ID,
                                   object entry,
                                   bool visible)
        {
            string[] stv = TransliteratorIDParser.IDtoSTV(ID);
            // Only need to do this if ID.indexOf('-') < 0
            string id = TransliteratorIDParser.STVtoID(stv[0], stv[1], stv[2]);

            RegisterEntry(id, stv[0], stv[1], stv[2], entry, visible);
        }
예제 #2
0
        /// <summary>
        /// Unregister an <paramref name="id"/>.  This removes an entry from the dynamic store
        /// if there is one.  The static locale resource store is
        /// unaffected.
        /// </summary>
        public virtual void Remove(string id)
        {
            string[] stv = TransliteratorIDParser.IDtoSTV(id);
            // Only need to do this if ID.indexOf('-') < 0
            string id2 = TransliteratorIDParser.STVtoID(stv[0], stv[1], stv[2]);

            registry.Remove(new CaseInsensitiveString(id2));
            RemoveSTV(stv[0], stv[1], stv[2]);
            availableIDs.Remove(new CaseInsensitiveString(id2));
        }
예제 #3
0
 /// <summary>
 /// Convenience method. Calls <see cref="Find(string, string, string)"/>.
 /// </summary>
 /// <param name="ID"></param>
 /// <returns></returns>
 private object[] Find(string ID)
 {
     string[] stv = TransliteratorIDParser.IDtoSTV(ID);
     return(Find(stv[0], stv[1], stv[2]));
 }