예제 #1
0
 internal UiListItemComparer(CompareInfo collator, bool useSelf) // ICU4N specific overload, since CompareInfo doesn't implement IComparer<string>
     : this(collator.AsComparer(), useSelf)
 {
 }
예제 #2
0
 /// <summary>
 /// Return a snapshot of the mapping from display names to visible
 /// IDs for this service.  This set will not change as factories
 /// are added or removed, but the supported ids will, so there is
 /// no guarantee that all and only the ids in the returned map will
 /// be visible and supported by the service in subsequent calls,
 /// nor is there any guarantee that the current display names match
 /// those in the set.  The display names are sorted based on the
 /// comparer provided.
 /// </summary>
 public virtual IDictionary <string, string> GetDisplayNames(UCultureInfo locale, CompareInfo com, string matchID)
 {
     return(GetDisplayNames(locale, com.AsComparer(), matchID));
 }
예제 #3
0
 /// <summary>
 /// Convenience override of <see cref="GetDisplayNames(ULocale, IComparer{string}, string)"/> that
 /// uses null for the matchID, thus returning all display names.
 /// </summary>
 public virtual IDictionary <string, string> GetDisplayNames(ULocale locale, CompareInfo com)
 {
     return(GetDisplayNames(locale, com.AsComparer(), null));
 }