FXString FX::FXPath::join ( const FXString &  a,
const FXString &  b 
) [inline]

Joins two parts of a path separated by the system-specific path separator.

Definition at line 34 of file FXPath.h.

References FX::FXString::append(), FX::FXString::length(), and PATHSEP.

Referenced by FX::FXDC::getLineJoin(), and join().

00035     {
00036         FXString ret(a);
00037         if(PATHSEP!=a[a.length()-1] && PATHSEP!=b[0])
00038             return ret.append(PATHSEP).append(b);
00039         else
00040             return ret.append(b);
00041     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:55 2009 for TnFOX by doxygen v1.4.7