view src/gtk/tools.h @ 8:08a8e09ca414

add files required by automake
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:54:39 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 // -*- C++ -*-
2 // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
3 // Copyright (C) 1999-2003 Forgotten
4 // Copyright (C) 2004 Forgotten and the VBA development team
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2, or(at your option)
9 // any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __VBA_TOOLS_H__
21 #define __VBA_TOOLS_H__
23 #include <string>
24 #include <glibmm/ustring.h>
26 namespace VBA
27 {
29 std::string sCutSuffix(const std::string & _rsString,
30 const std::string & _rsSep = ".");
32 Glib::ustring sCutSuffix(const Glib::ustring & _rsString,
33 const Glib::ustring & _rsSep = ".");
35 bool bHasSuffix(const Glib::ustring & _rsString,
36 const Glib::ustring & _rsSuffix,
37 bool _bCaseSensitive = true);
39 }
42 #endif // __VBA_TOOLS_H__