private static boolean sameScript ( int scriptOne , int scriptTwo ) { return scriptOne <= UScript . INHERITED || scriptTwo <= UScript . INHERITED || scriptOne == scriptTwo ; }
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 .