Пример #1
0
        public TranslitProcessor(TranslitData translitData)
        {
            Debug.Assert(translitData != null);

            _translitData = translitData;
            _inGrapheme   = new CharArray(_translitData.MaxGraphemeLength);
        }
Пример #2
0
 /// <summary>
 /// Creates an instance of <see cref="Transliterator"/> class.
 /// </summary>
 /// <param name="mapJson">
 /// Graphemes map in JSON format. Example: { "б": ["b"], "ё": ["jo", "yo"] }
 /// </param>
 public Transliterator(string mapJson)
 {
     _translitData = new TranslitData(mapJson);
 }
Пример #3
0
 /// <summary>
 /// Creates an instance of <see cref="Transliterator"/> class.
 /// </summary>
 /// <param name="mapJson">
 /// Graphemes map in JSON format. Example: { "б": ["b"], "ё": ["jo", "yo"] }
 /// </param>
 public Transliterator(string mapJson)
 {
     _translitData = new TranslitData(mapJson);
 }