Code Duplication    Length = 3-3 lines in 2 locations

ecrire/inc/charsets.php 2 locations

@@ 1152-1154 (lines=3) @@
1149
 */
1150
function spip_ucfirst($c) {
1151
	// Si on n'a pas mb_* ou si ce n'est pas utf-8, utiliser ucfirst
1152
	if (!init_mb_string() or $GLOBALS['meta']['charset'] != 'utf-8') {
1153
		return ucfirst($c);
1154
	}
1155
1156
	$lettre1 = mb_strtoupper(spip_substr($c, 0, 1));
1157
@@ 1173-1175 (lines=3) @@
1170
 */
1171
function spip_strtolower($c) {
1172
	// Si on n'a pas mb_* ou si ce n'est pas utf-8, utiliser strtolower 
1173
	if (!init_mb_string() or $GLOBALS['meta']['charset'] != 'utf-8') {
1174
		return strtolower($c);
1175
	}
1176
1177
	return mb_strtolower($c);
1178
}