Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 3 | 4 | 0.964 | class_member_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 670 | plugins/content/geshi/geshi.php |
2 | 18 | 701 | plugins/content/geshi/geshi.php |
3 | 18 | 920 | plugins/content/geshi/geshi.php |
| ||||
/** * Sets the style for a keyword group. If $preserve_defaults is * true, then styles are merged with the default styles, with the * user defined styles having priority * * @param int The key of the keyword group to change the styles of * @param string The style to make the keywords * @param boolean Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 */ function set_keyword_group_style($key, $style, $preserve_defaults= FALSE) { if (!$preserve_defaults) { $this->language_data['STYLES']['KEYWORDS'][$key]= $style; } else { $this->language_data['STYLES']['KEYWORDS'][$key].= $style; } } /** * Turns highlighting on/off for a keyword group * * @param int The key of the keyword group to turn on or off * @param boolean Whether to turn highlighting for that group on or off * @since 1.0.0 */ function set_keyword_group_highlighting($key, $flag= TRUE) { $this->lexic_permissions['KEYWORDS'][$key]= ($flag) ? TRUE : FALSE; } |
| ||||
/** * Sets the styles for comment groups. If $preserve_defaults is * true, then styles are merged with the default styles, with the * user defined styles having priority * * @param int The key of the comment group to change the styles of * @param string The style to make the comments * @param boolean Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 */ function set_comments_style($key, $style, $preserve_defaults= FALSE) { if (!$preserve_defaults) { $this->language_data['STYLES']['COMMENTS'][$key]= $style; } else { $this->language_data['STYLES']['COMMENTS'][$key].= $style; } } /** * Turns highlighting on/off for comment groups * * @param int The key of the comment group to turn on or off * @param boolean Whether to turn highlighting for that group on or off * @since 1.0.0 */ function set_comments_highlighting($key, $flag= TRUE) { $this->lexic_permissions['COMMENTS'][$key]= ($flag) ? TRUE : FALSE; } |
| ||||
/** * Sets the styles for regexps. If $preserve_defaults is * true, then styles are merged with the default styles, with the * user defined styles having priority * * @param string The style to make the regular expression matches * @param boolean Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 */ function set_regexps_style($key, $style, $preserve_defaults= FALSE) { if (!$preserve_defaults) { $this->language_data['STYLES']['REGEXPS'][$key]= $style; } else { $this->language_data['STYLES']['REGEXPS'][$key].= $style; } } /** * Turns highlighting on/off for regexps * * @param int The key of the regular expression group to turn on or off * @param boolean Whether to turn highlighting for the regular expression group on or off * @since 1.0.0 */ function set_regexps_highlighting($key, $flag) { $this->lexic_permissions['REGEXPS'][$key]= ($flag) ? TRUE : FALSE; } |
| |||
/** * Sets the style for a keyword group. If $preserve_defaults is * true, then styles are merged with the default styles, with the * user defined styles having priority * * @param int The key of the keyword group to change the styles of * @param string The style to make the keywords * @param boolean Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 */ /** * Sets the styles for comment groups. If $preserve_defaults is * true, then styles are merged with the default styles, with the * user defined styles having priority * * @param int The key of the comment group to change the styles of * @param string The style to make the comments * @param boolean Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 */ /** * Sets the styles for regexps. If $preserve_defaults is * true, then styles are merged with the default styles, with the * user defined styles having priority * * @param string The style to make the regular expression matches * @param boolean Whether to merge the new styles with the old or just * to overwrite them * @since 1.0.0 */ function [[#variable4c6fe160]]($key,$style,$preserve_defaults=FALSE) { if (!$preserve_defaults) { $this->language_data['STYLES'][ [[#variable4c6fe140]]][$key]=$style; } else { $this->language_data['STYLES'][ [[#variable4c6fe140]]][$key].=$style; } } /** * Turns highlighting on/off for a keyword group * * @param int The key of the keyword group to turn on or off * @param boolean Whether to turn highlighting for that group on or off * @since 1.0.0 */ /** * Turns highlighting on/off for comment groups * * @param int The key of the comment group to turn on or off * @param boolean Whether to turn highlighting for that group on or off * @since 1.0.0 */ /** * Turns highlighting on/off for regexps * * @param int The key of the regular expression group to turn on or off * @param boolean Whether to turn highlighting for the regular expression group on or off * @since 1.0.0 */ function [[#variable5226b000]]($key, [[#variable4c6fe000]]) { $this->lexic_permissions[ [[#variable4c6fe140]]][$key]=($flag) ? TRUE : FALSE; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4c6fe160]] | set_keyword_group_style |
1 | 2 | [[#4c6fe160]] | set_comments_style |
1 | 3 | [[#4c6fe160]] | set_regexps_style |
2 | 1 | [[#4c6fe140]] | 'KEYWORDS' |
2 | 2 | [[#4c6fe140]] | 'COMMENTS' |
2 | 3 | [[#4c6fe140]] | 'REGEXPS' |
3 | 1 | [[#5226b000]] | set_keyword_group_highlighting |
3 | 2 | [[#5226b000]] | set_comments_highlighting |
3 | 3 | [[#5226b000]] | set_regexps_highlighting |
4 | 1 | [[#4c6fe000]] | $flag=TRUE |
4 | 2 | [[#4c6fe000]] | $flag=TRUE |
4 | 3 | [[#4c6fe000]] | $flag |