Mercurial > mplayer.hg
annotate gui/util/string.h @ 34175:a345e7162d0a
Move TranslateFilename() to util/string.c.
Now that the Win32 GUI uses symbolic constants for its messages,
the code of TranslateFilename() both GUIs use is almost identical.
So, share the code.
author | ib |
---|---|
date | Wed, 26 Oct 2011 15:14:06 +0000 |
parents | 0d3d8db05a59 |
children | d52b0ad317d5 |
rev | line source |
---|---|
33048 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
4 * MPlayer is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * MPlayer is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License along | |
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 */ | |
18 | |
19 #ifndef MPLAYER_GUI_STRING_H | |
20 #define MPLAYER_GUI_STRING_H | |
21 | |
33073 | 22 char *decomment(char *in); |
33786 | 23 int gstrcasecmp(const char *a, const char *b); |
33737 | 24 char *gstrchr(const char *str, int c); |
25 int gstrcmp(const char *a, const char *b); | |
26 char *gstrdup(const char *str); | |
27 int gstrncmp(const char *a, const char *b, int n); | |
33740
2c02269701bd
Remove macros guiSetFilename() and guiSetDF() from interface.h.
ib
parents:
33737
diff
changeset
|
28 void setddup(char **old, const char *dir, const char *name); |
2c02269701bd
Remove macros guiSetFilename() and guiSetDF() from interface.h.
ib
parents:
33737
diff
changeset
|
29 void setdup(char **old, const char *str); |
33052 | 30 char *strlower(char *in); |
33048 | 31 char *strswap(char *in, char from, char to); |
34175 | 32 char *TranslateFilename(int c, char *tmp, size_t tmplen); |
33048 | 33 char *trim(char *in); |
34 | |
35 #endif /* MPLAYER_GUI_STRING_H */ |