code: private static boolean sameScript(int scriptOne, int scriptTwo)
      {
          return scriptOne <= UScript.INHERITED || scriptTwo <= UScript.INHERITED || scriptOne == scriptTwo;
      }
docs: Compare two script codes to see if they are in the same script. If one script is
  a strong script, and the other is INHERITED or COMMON, it will compare equal.
  
  @param scriptOne one of the script codes.
  @param scriptTwo the other script code.
  @return <code>true</code> if the two scripts are the same.
  @see android.icu.lang.UScript