private function _getConvertingDictionary ( ) {
        $definedColors = DecorationsObject::getDefinedColors();
        foreach ( $definedColors as $colorName => $escapeSequences ) {
            list($textColorEscapeSequence, $backgroundColorEscapeSequence) = $escapeSequences;
            $patterns[] = "|<tc:$colorName>|";
            $replacements[] = $textColorEscapeSequence;
            $patterns[] = "|<bc:$colorName>|";
            $replacements[] = $backgroundColorEscapeSequence;
        }

        $resetEscapeSequences = $definedColors['reset'];
        $patterns[] = '|</tc>|';
        $replacements[] = $resetEscapeSequences[0];
        $patterns[] = '|</bc>|';
        $replacements[] = $resetEscapeSequences[1];

        $definedStyles = DecorationsObject::getDefinedStyles();
        $resetEscapeSequence = $definedStyles['reset'];
        foreach ( $definedStyles as $styleName => $escapeSequence ) {
            $patterns[] = "|<$styleName>|";
            $replacements[] = $escapeSequence;
            $patterns[] = "|</$styleName>|";
            $replacements[] = $escapeSequence;
        }

        $dictionary = array($patterns, $replacements);
        return $dictionary;
    }
private function _getConvertingDictionary ( ) {
        $definedColors = DecorationsObject::getDefinedColors();
        foreach ( $definedColors as $colorName => $escapeSequences ) {
            list($textColorEscapeSequence, $backgroundColorEscapeSequence) = $escapeSequences;
            $patterns[] = "|<tc:$colorName>|";
            $replacements[] = $textColorEscapeSequence;
            $patterns[] = "|<bc:$colorName>|";
            $replacements[] = $backgroundColorEscapeSequence;
        }

        $resetEscapeSequences = $definedColors['reset'];
        $patterns[] = '|</tc>|';
        $replacements[] = $resetEscapeSequences[0];
        $patterns[] = '|</bc>|';
        $replacements[] = $resetEscapeSequences[1];

        $definedStyles = DecorationsObject::getDefinedStyles();
        $resetEscapeSequence = $definedStyles['reset'];
        foreach ( $definedStyles as $styleName => $escapeSequence ) {
            $patterns[] = "|<$styleName>|";
            $replacements[] = $escapeSequence;
            $patterns[] = "|</$styleName>|";
            $replacements[] = $escapeSequence;
        }

        $dictionary = array($patterns, $replacements);
        return $dictionary;
    }
private function _getConvertingDictionary ( ) { $ definedColors = DecorationsObject :: getDefinedColors ( ) ; foreach ( $ definedColors as $ colorName => $ escapeSequences ) { list ( $ textColorEscapeSequence , $ backgroundColorEscapeSequence ) = $ escapeSequences ; $ patterns [ ] = "|<tc:$colorName>|" ; $ replacements [ ] = $ textColorEscapeSequence ; $ patterns [ ] = "|<bc:$colorName>|" ; $ replacements [ ] = $ backgroundColorEscapeSequence ; } $ resetEscapeSequences = $ definedColors [ 'reset' ] ; $ patterns [ ] = '|</tc>|' ; $ replacements [ ] = $ resetEscapeSequences [ 0 ] ; $ patterns [ ] = '|</bc>|' ; $ replacements [ ] = $ resetEscapeSequences [ 1 ] ; $ definedStyles = DecorationsObject :: getDefinedStyles ( ) ; $ resetEscapeSequence = $ definedStyles [ 'reset' ] ; foreach ( $ definedStyles as $ styleName => $ escapeSequence ) { $ patterns [ ] = "|<$styleName>|" ; $ replacements [ ] = $ escapeSequence ; $ patterns [ ] = "|</$styleName>|" ; $ replacements [ ] = $ escapeSequence ; } $ dictionary = array ( $ patterns , $ replacements ) ; return $ dictionary ; }
Get converting dictionary

@return array Converting dictionary
Get converting dictionary