libsidplayfp  1.0.3
SidTuneTools.h
00001 /*
00002  * This file is part of libsidplayfp, a SID player engine.
00003  *
00004  * Copyright (C) Michael Schwendt <mschwendt@yahoo.com>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019  */
00020 
00021 #ifndef SIDTUNETOOLS_H
00022 #define SIDTUNETOOLS_H
00023 
00024 #include <string.h>
00025 
00026 #include "SidTuneCfg.h"
00027 
00028 #ifdef HAVE_CONFIG_H
00029 #  include "config.h"
00030 #endif
00031 
00032 #ifdef HAVE_STRCASECMP
00033 #   define MYSTRICMP strcasecmp
00034 #else
00035 #   define MYSTRICMP stricmp
00036 #endif
00037 
00038 #ifdef HAVE_STRNCASECMP
00039 #   define MYSTRNICMP strncasecmp
00040 #else
00041 #   define MYSTRNICMP strnicmp
00042 #endif
00043 
00044 class SidTuneTools
00045 {
00046  public:
00048     static size_t fileNameWithoutPath(const char* s);
00049 
00054     static size_t slashedFileNameWithoutPath(const char* s);
00055 
00060     static const char* fileExtOfPath(const char* s);
00061 };
00062 
00063 #endif  /* SIDTUNETOOLS_H */