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 » Explanations of some functions
Re: Explanations of some functions [message #10735 is a reply to message #10734] Thu, 26 July 2007 00:20 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
inline bool LessPath(String fa, String fb) { return ComparePath(fa, fb) < 0; }


int ComparePath(String fa, String fb) {
	int la = fa.GetLength(), lb = fb.GetLength();
	int r = ComparePath(fa, fb, min(la, lb));
	return r ? r : cmp(la, lb);
}


if first path (fa) is shorter (count letters or symbols) than second (fb)

(not tested Smile)

[Updated on: Thu, 26 July 2007 00:21]

Report message to a moderator

 
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: Compatibility change
Next Topic: Core split
Goto Forum:
  


Current Time: Fri Jul 18 03:35:39 CEST 2025

Total time taken to generate the page: 0.04317 seconds