File: filePath.cc

package info (click to toggle)
libosl 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 273,976 kB
  • sloc: cpp: 129,625; ansic: 7,145; ruby: 1,290; makefile: 558; perl: 413; sh: 35
file content (19 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "osl/misc/filePath.h"

#ifndef MINIMAL

std::string osl::misc::
file_string(const boost::filesystem::path& path)
{
#if BOOST_FILESYSTEM_VERSION >=3
  return path.string();
#else
  return path.file_string();
#endif
}

#endif /* MINIMAL */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: