File: path.h

package info (click to toggle)
premake 3.7-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,148 kB
  • sloc: ansic: 20,490; cs: 15,185; makefile: 332
file content (31 lines) | stat: -rw-r--r-- 1,617 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**********************************************************************
 * Premake - path.h
 * Path handling routines.
 *
 * Copyright (c) 2002-2005 Jason Perkins and the Premake project
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License in the file LICENSE.txt for details.
 **********************************************************************/

const char* path_absolute(const char* path);
const char* path_build(const char* from, const char* to);
const char* path_combine(const char* path0, const char* path1);
int         path_compare(const char* path0, const char* path1);
const char* path_getbasename(const char* path);
const char* path_getextension(const char* path);
const char* path_getdir(const char* path);
const char* path_getname(const char* path);
char        path_getseparator(const char* type);
const char* path_join(const char* dir, const char* name, const char* ext);
const char* path_normalize(const char* path);
const char* path_swapextension(const char* path, const char* from, const char* to);
const char* path_translate(const char* path, const char* type);
void        path_translateInPlace(char* buffer, const char* type);