Skip to content
Snippets Groups Projects
Commit bcf9f602 authored by Johan Schön's avatar Johan Schön
Browse files

Added String.sillycaps().

Rev: lib/modules/String.pmod:1.4
parent 7c13e515
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,11 @@ string capitalize(string s) ...@@ -20,6 +20,11 @@ string capitalize(string s)
return upper_case(s[0..0])+s[1..sizeof(s)]; return upper_case(s[0..0])+s[1..sizeof(s)];
} }
string sillycaps(string s)
{
return Array.map(s/" ",capitalize)*" ";
}
string strmult(string str, int num) string strmult(string str, int num)
{ {
#if 1 #if 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment