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 » How to get path separator depended on platform?
How to get path separator depended on platform? [message #44556] Fri, 27 March 2015 23:29 Go to previous message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

I would like to ask is there any official way to get path separator character on current platform in Upp Core library.

Pseudo code of function that I am looking for:
String DirSeparator() {
#if defined(PLATFORM_POSIX)
	return "/";
#elif defined(PLATFORM_WIN32) || defined(PLATFORM_WIN64)
	return "\\";
#endif
}


Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Fri, 27 March 2015 23:33]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Xmlize problem with Nulls
Next Topic: [solved]How to disable "auto access redirect url " of the HttpRequest?
Goto Forum:
  


Current Time: Mon Apr 29 16:51:46 CEST 2024

Total time taken to generate the page: 0.02458 seconds