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 » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » DirectoryUp doesn't seem to work.
Re: DirectoryUp doesn't seem to work. [message #18568 is a reply to message #18554] Thu, 09 October 2008 02:09 Go to previous messageGo to previous message
blueapples is currently offline  blueapples
Messages: 10
Registered: October 2008
Promising Member
Any luck?

Personally I would expect semantics like this:

1. Remove any trailing /.
2. Extract the part of the path up to but not including the last /.

So, from my example, both these would be the same:

ASSERT(DirectoryUp("/home/Isaac/") == "/home");
ASSERT(DirectoryUp("/home/Isaac") == "/home");
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drawing raw data to an Image / Draw object?
Next Topic: More small gems
Goto Forum:
  


Current Time: Sun Jun 08 17:14:30 CEST 2025

Total time taken to generate the page: 0.04545 seconds