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 » Some 'missing' string functions
Some 'missing' string functions [message #13740] Fri, 25 January 2008 12:37 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Porting a small app that uses std::string to Upp::String I noticed that many build-in string functions are not implemented in Upp::String.

In particular, some character-locating functions (find_first_not_of(), find_first_of(), find_last_not_of().....) functions are quite useful sometimes.
Also Compare() function is missing some way to compare parts of the string. It's easy to implement with Mid() + Compare, but it involves a string copy, so it's slow. Some sort of
String::Compare(aString, start, len)

could be useful and much faster than taking the substring and comparing it.

Last but not least, the ReverseFind() function can find only a char, not a string inside a given string, as rfind() function in std.

Ciao

Max
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Commandline-Args with Core-Console-App
Next Topic: Path including non-English character, buglog and usrlog file cannot be deleted
Goto Forum:
  


Current Time: Wed May 08 20:20:14 CEST 2024

Total time taken to generate the page: 0.02709 seconds