Previous attempt to remove some compiler warnings was
[AROS-Contrib.git] / FryingPan / ISOBuilder / Xlate.cpp
bloba173c16d10da21a40c31763801abfe06bfcdae12
1 /*
2 * FryingPan - Amiga CD/DVD Recording Software (User Interface and supporting Libraries only)
3 * Copyright (C) 2001-2011 Tomasz Wiszkowski Tomasz.Wiszkowski at gmail.com
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 2.1
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #include "Xlate.h"
21 #include "Xlators/Translator.h"
22 #include "Xlators/TransAChars.h"
23 #include "Xlators/TransDChars.h"
24 #include "Xlators/TransRChars.h"
25 #include "Xlators/TransQChars.h"
28 String Xlate::aChars(String &source)
30 Translator *pTrans = new TransAChars();
31 String sNew = pTrans->translate(source);
32 delete pTrans;
33 return sNew;
36 String Xlate::dChars(String &source)
38 Translator *pTrans = new TransDChars();
39 String sNew = pTrans->translate(source);
40 delete pTrans;
41 return sNew;
44 String Xlate::qChars(String &source)
46 Translator *pTrans = new TransQChars();
47 String sNew = pTrans->translate(source);
48 delete pTrans;
49 return sNew;
52 String Xlate::rChars(String &source)
54 Translator *pTrans = new TransRChars();
55 String sNew = pTrans->translate(source);
56 delete pTrans;
57 return sNew;