+void wxFileName::Assign(const wxString& fullpath,
+ wxPathFormat format)
+{
+ wxString path, name, ext;
+ SplitPath(fullpath, &path, &name, &ext, format);
+
+ Assign(path, name, ext, format);
+}
+
+void wxFileName::Assign(const wxString& path,
+ const wxString& fullname,
+ wxPathFormat format)
+{
+ wxString name, ext;
+ SplitPath(fullname, NULL /* no path */, &name, &ext, format);
+
+ Assign(path, name, ext, format);
+}
+
+void wxFileName::Clear()
+{
+ m_dirs.Clear();
+ m_name =
+ m_ext = wxEmptyString;
+}
+
+/* static */
+wxFileName wxFileName::FileName(const wxString& file)
+{
+ return wxFileName(file);
+}
+
+/* static */
+wxFileName wxFileName::DirName(const wxString& dir)
+{
+ wxFileName fn;
+ fn.AssignDir(dir);
+ return fn;
+}
+
+// ----------------------------------------------------------------------------
+// existence tests
+// ----------------------------------------------------------------------------
+