public TranslitProcessor(TranslitData translitData) { Debug.Assert(translitData != null); _translitData = translitData; _inGrapheme = new CharArray(_translitData.MaxGraphemeLength); }
/// <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); }