[TYPO3-core] RFC: #7393: Wrapperfunctions for strtoupper and strtolower

Steffen Kamper steffen at sk-typo3.de
Tue Feb 5 18:36:38 CET 2008


"Martin Kutschker" <martin.kutschker-n0spam at no5pam-blackbox.net> schrieb im 
Newsbeitrag 
news:mailman.1.1202232053.5978.typo3-team-core at lists.netfielders.de...
> Steffen Kamper schrieb:
>> This is a SVN patch request.
>>
>> Branches: Trunk only
>>
>> BT reference: http://bugs.typo3.org/view.php?id=7393
>>
>> Type: Feature
>>
>> Problem:
>> To avoid locale problems with Turkish we discussed wrapper functions in
>> t3lib_div.
>> Here are the functions
>>   t3lib_div::strtoupper
>>   t3lib_div::strtolower
>
>
> +1 but please change the description:
>
> "Converts string to uppercase
> The function converts all Latin characters (A-Z, but no accents, etc) to
> uppercase. It is safe for all supported character sets (incl. utf-8).
> Unlike strtoupper() it does not honour the locale."
>
> And the same for strtolower.
>
> BTW, if strtupper wouldn't honour the locale then it couldn't transform
> ä to Ä for German, etc.
>
> Masi

thx for the description, Masi.
new patch is attached.

vg  Steffen 


begin 666 strtoupper_strtolower2.diff
M26YD97 at Z('0S;&EB+V-L87-S+G0S;&EB7V1I=BYP:' -"CT]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T-"BTM+2!T,VQI8B]C;&%S<RYT,VQI8E]D:78N<&AP"2AR
M979I<VEO;B S,#<T*0T**RLK('0S;&EB+V-L87-S+G0S;&EB7V1I=BYP:' )
M*'=O<FMI;F<@8V]P>2D-"D! ("TQ,S at S+#8@*S$S.#,L,S$@0$ -"B )"7)E
M='5R;B!C:'(H,3 I+FAT;6QS<&5C:6%L8VAA<G,H)&-O;G1E;G0I.PH@"7T*
M( HK"2\J*@HK"2 J($-O;G9E<G1S('-T<FEN9R!T;R!U<'!E<F-A<V4**PD@
M*B!4:&4 at 9G5N8W1I;VX at 8V]N=F5R=', at 86QL($QA=&EN(&-H87)A8W1E<G,@
M*&$M>BP at 8G5T(&YO(&%C8V5N=',L(&5T8RD@=&\@"BL)("H@=7!P97)C87-E
M+B!)="!I<R!S869E(&9O<B!A;&P@<W5P<&]R=&5D(&-H87)A8W1E<B!S971S
M("AI;F-L+B!U=&8M."DN( HK"2 J(%5N;&EK92!S=')T;W5P<&5R*"D@:70@
M9&]E<R!N;W0@:&]N;W5R('1H92!L;V-A;&4N( HK"2 J"BL)("H at 0'!A<F%M
M(" @<W1R:6YG(" @(" @26YP=70@<W1R:6YG( HK"2 J($!R971U<FX@('-T
M<FEN9R @(" @(%5P<&5R8V%S92!3=')I;F<**PD@*B\**PEP=6)L:6,@<W1A
M=&EC(&9U;F-T:6]N('-T<G1O=7!P97(H)'-T<BD@>PHK"0ER971U<FX@<W1R
M='(H*'-T<FEN9RD@)'-T<BPG86)C9&5F9VAI:FML;6YO<'%R<W1U=G=X>7HG
M+"=!0D-$149'2$E*2TQ-3D]045)35%565UA96B<I.PHK"7T**PD**PDO*BH*
M*PD@*B!#;VYV97)T<R!S=')I;F<@=&\@;&]W97)C87-E"BL)("H at 5&AE(&9U
M;F-T:6]N(&-O;G9E<G1S(&%L;"!,871I;B!C:&%R86-T97)S("A!+5HL(&)U
M="!N;R!A8V-E;G1S+"!E=&,I('1O( HK"2 J(&QO=V5R8V%S92X at 270@:7,@
M<V%F92!F;W(@86QL('-U<'!O<G1E9"!C:&%R86-T97(@<V5T<R H:6YC;"X@
M=71F+3 at I+B **PD@*B!5;FQI:V4@<W1R=&]L;W=E<B at I(&ET(&1O97,@;F]T
M(&AO;F]U<B!T:&4@;&]C86QE+B **PD@*@HK"2 J($!P87)A;0ES=')I;F<)
M"4EN<'5T('-T<FEN9R **PD@*B! <F5T=7)N"7-T<FEN9PD)3&]W97)C87-E
M(%-T<FEN9PHK"2 J+PHK"7!U8FQI8R!S=&%T:6, at 9G5N8W1I;VX@<W1R=&]L
M;W=E<B at D<W1R*0E["BL)"7)E='5R;B!S=')T<B at H<W1R:6YG*2 D<W1R+" G
M04)#1$5&1TA)2DM,34Y/4%%24U155E=865HG+"=A8F-D969G:&EJ:VQM;F]P
M<7)S='5V=WAY>B<I.PHK"7T*( H@"B *0$ @+3$S.3,L-R K,30Q."PV($! 
M#0H@"B *( HM"B )+RHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BH*( D@*@H@
4"2 J($%24D%9($953D-424].4PH`
`
end



More information about the TYPO3-team-core mailing list