This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ======================================================================== | |
-- Function: initcap2(text) | |
-- Return Type: text | |
-- Description: Alternative function to builtin initcap(text). This function | |
-- convert the first letter of each word to upper case and | |
-- the rest to lower case EVEN IF the sentence has accented words. | |
-- Example: initcap2('welcome to CHAMPS-ÉLYSÉES') | |
-- Result: 'Welcome To Champs-Élysées' | |
-- | |
-- License: MIT |