private void getResolvedScriptSetWithout ( CharSequence input , int script , ScriptSet result ) { result . setAll ( ) ; ScriptSet temp = new ScriptSet ( ) ; for ( int utf16Offset = 0 ; utf16Offset < input . length ( ) ; ) { int codePoint = Character . codePointAt ( input , utf16Offset ) ; utf16Offset += Character . charCount ( codePoint ) ; // Compute the augmented script set for the character getAugmentedScriptSet ( codePoint , temp ) ; // Intersect the augmented script set with the resolved script set, but only if the character doesn't // have the script specified in the function call if ( script == UScript . CODE_LIMIT || ! temp . get ( script ) ) { result . and ( temp ) ; } } }
Computes the resolved script set for a string omitting characters having the specified script . If UScript . CODE_LIMIT is passed as the second argument all characters are included .