Capitalize all first letters of text
657
Views
6
Comments
New
Builtin & User functions

New Function on built-in function in the part of the text that converts the first letter of each word of any text to uppercase.

There are already functions ToLower and ToUpper, to complete could exist ToAllFirstLetterCaps.


ToAllFirstLetterCaps("outsystems is very good!") -> return: Outsystems Is Very Good!

Capitalize each word...

Although it is fairly easy to implement (.NET has builtin support). Having available on platform will help many.


string capitalizeAllFirstLetters = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase("outsystems is very good!");
2018-06-08 08-44-27
Sofia Modesto
Changed the category to
Builtin & User functions

The more out of box functions the better!

Yes we know it is easy and doable but if we have such functions in OS that will be great.

2016-04-21 20-09-55
J.
 
MVP

You can also use CSS for that, and I think that would be the preference anyways.

.yourContainer {

text-transform: capitalize;

}

You can also use JS:


function capitalizeFirstLetter(string) {

  return string.charAt(0).toUpperCase() + string.slice(1);

}


console.log(capitalizeFirstLetter('foo')); // For