I
Iñaki Baz Castillo
Hi, I receive strings like:
content-language
accept-resource-priority
and I want to "capitalize" them in this way:
Content-Language
Accept-Resource-Priority
But String#capitalize method just capitalized first letter:
Content-language
Accept-resource-priority
Is there any "fast" method for what I want?
Yes, I could implement it extending String class or my own class < String, =
but=20
performance is very important and I'd prefer using a method written in C=20
(as "String#capitalized"). Does is exist?
Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo
content-language
accept-resource-priority
and I want to "capitalize" them in this way:
Content-Language
Accept-Resource-Priority
But String#capitalize method just capitalized first letter:
Content-language
Accept-resource-priority
Is there any "fast" method for what I want?
Yes, I could implement it extending String class or my own class < String, =
but=20
performance is very important and I'd prefer using a method written in C=20
(as "String#capitalized"). Does is exist?
Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo