private static void getAugmentedScriptSet(int codePoint, ScriptSet result) {
        result.clear();
        UScript.getScriptExtensions(codePoint, result);

        // Section 5.1 step 1
        if (result.get(UScript.HAN)) {
            result.set(UScript.HAN_WITH_BOPOMOFO);
            result.set(UScript.JAPANESE);
            result.set(UScript.KOREAN);
        }
        if (result.get(UScript.HIRAGANA)) {
            result.set(UScript.JAPANESE);
        }
        if (result.get(UScript.KATAKANA)) {
            result.set(UScript.JAPANESE);
        }
        if (result.get(UScript.HANGUL)) {
            result.set(UScript.KOREAN);
        }
        if (result.get(UScript.BOPOMOFO)) {
            result.set(UScript.HAN_WITH_BOPOMOFO);
        }

        // Section 5.1 step 2
        if (result.get(UScript.COMMON) || result.get(UScript.INHERITED)) {
            result.setAll();
        }
    }
private static void getAugmentedScriptSet ( int codePoint , ScriptSet result ) { result . clear ( ) ; UScript . getScriptExtensions ( codePoint , result ) ; if ( result . get ( UScript . HAN ) ) { result . set ( UScript . HAN_WITH_BOPOMOFO ) ; result . set ( UScript . JAPANESE ) ; result . set ( UScript . KOREAN ) ; } if ( result . get ( UScript . HIRAGANA ) ) { result . set ( UScript . JAPANESE ) ; } if ( result . get ( UScript . KATAKANA ) ) { result . set ( UScript . JAPANESE ) ; } if ( result . get ( UScript . HANGUL ) ) { result . set ( UScript . KOREAN ) ; } if ( result . get ( UScript . BOPOMOFO ) ) { result . set ( UScript . HAN_WITH_BOPOMOFO ) ; } if ( result . get ( UScript . COMMON ) || result . get ( UScript . INHERITED ) ) { result . setAll ( ) ; } }
Computes the augmented script set for a code point, according to UTS 39 section 5.1.