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
Re: Some 'missing' string functions [message #13781 is a reply to message #13779] Sat, 26 January 2008 14:49 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
luzr wrote on Sat, 26 January 2008 14:24

mdelfede wrote on Sat, 26 January 2008 08:06


BTW, another stuf I think is missing is a constant that is returned when no match is found. std:: uses string::npos, which should have a value of -1 but makes code reading easer.

Ciao

Max



Well, I do not know. <0 is a common way for U++ to say "not found", used everywhere.



yes, you're right... that's because Upp uses 'int' as string index, where std:: uses size_t which is unsigned... because of that I've got some problem translating the code to Upp.
I'll change all indexes to 'int' in code, and put error checking as '< 0' instead '== -1'.

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: Thu May 30 14:24:31 CEST 2024

Total time taken to generate the page: 0.02313 seconds