Package com.ilib

Class ScriptInfo


  • public class ScriptInfo
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ScriptInfo()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getScriptByLocale​(IlibLocale target)
      Seeks for full locale name in locales map and returns script of target locale, otherwise - default script Latn
      protected static void initLocales()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScriptInfo

        public ScriptInfo()
    • Method Detail

      • initLocales

        protected static void initLocales()
      • getScriptByLocale

        public static java.lang.String getScriptByLocale​(IlibLocale target)
        Seeks for full locale name in locales map and returns script of target locale, otherwise - default script Latn
        Parameters:
        target - locale in BCP 47 format
        Returns:
        native script for given locale and default script Latn if locale is not detected