コード例 #1
0
ファイル: CldrTree.cs プロジェクト: pgolebiowski/onism-cldr
        public void Add(CldrLocale locale, string path, int valueId)
        {
            var treePath = CldrTreePath.Parse(path);
            var localeId = this.Locales.GetId(locale ?? CldrLocale.None);

            this.Root.Add(localeId, treePath, valueId);
        }
コード例 #2
0
ファイル: CldrTree.cs プロジェクト: pgolebiowski/onism-cldr
        public void Add(CldrLocale locale, string path, int valueId)
        {
            var treePath = CldrTreePath.Parse(path);
            var localeId = this.Locales.GetId(locale ?? CldrLocale.None);

            this.Root.Add(localeId, treePath, valueId);
        }
コード例 #3
0
        public string GetValue(CldrLocale locale)
        {
            var localeId = this.Tree.Locales.GetId(locale);
            var valueId  = this.LocaleValues[localeId];
            var value    = this.Tree.Values[valueId];

            return(value);
        }
コード例 #4
0
 /// <summary>
 /// Traverses the CLDR tree using a path and gets the value
 /// associated with the specified locale.
 /// </summary>
 public string GetValue(string path, CldrLocale locale)
 {
     return(this.Tree.SelectNode(path).GetValue(locale));
 }
コード例 #5
0
ファイル: CldrData.cs プロジェクト: pgolebiowski/onism-cldr
 /// <summary>
 /// Traverses the CLDR tree using a path and gets the value
 /// associated with the specified locale.
 /// </summary>
 public string GetValue(string path, CldrLocale locale)
 {
     return this.Tree.SelectNode(path).GetValue(locale);
 }
コード例 #6
0
 public string GetValue(CldrLocale locale)
 {
     var localeId = this.Tree.Locales.GetId(locale);
     var valueId = this.LocaleValues[localeId];
     var value = this.Tree.Values[valueId];
     return value;
 }