Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » InitCaps() proposal
InitCaps() proposal [message #31899] Tue, 05 April 2011 09:44 Go to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello Mirek

Now InitCaps() function converts the first letter after a space to upper, and converts the rest to lower.

However there are problems if there are punctuation marks.

For example InitCaps("Lennon ,John") = "Lennon ,john"

This could be solved changing

	spc = IsSpace(c);

with

	spc = !IsLetter(c);


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Value: why not float support?
Next Topic: why not "T & Add(const T & x)" in all containers
Goto Forum:
  


Current Time: Tue May 14 14:43:36 CEST 2024

Total time taken to generate the page: 0.02511 seconds