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   |
 |
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 )
[Updated on: Thu, 26 July 2007 00:21] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Jul 18 03:35:39 CEST 2025
Total time taken to generate the page: 0.04317 seconds
|