cbp2make
Makefile generation tool for Code::Blocks IDE
cbhelper.h
Go to the documentation of this file.
1 /*
2  cbp2make : Makefile generation tool for the Code::Blocks IDE
3  Copyright (C) 2010-2013 Mirai Computing (mirai.computing@gmail.com)
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (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 General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 //------------------------------------------------------------------------------
20 #ifndef CBHELPER_H
21 #define CBHELPER_H
22 //------------------------------------------------------------------------------
23 #include "stlstrings.h"
24 //------------------------------------------------------------------------------
25 
26 static const int CASE_KEEP = 0;
27 static const int CASE_LOWER = 1;
28 static const int CASE_UPPER = 2;
29 
30 static const int QUOTE_AUTO = 0;
31 static const int QUOTE_NEVER = 1;
32 static const int QUOTE_ALWAYS = 2;
33 
34 void ShowStringList(const CString& Title, const CString& LinePrefix,
35  const CStringList& StringList);
36 CString MakefileFriendly(const CString& AString);
37 CString XMLFriendly(const CString& AString);
38 CString FlatFileName(const CString& FileName);
39 
40 #endif
41 //------------------------------------------------------------------------------
CString XMLFriendly(const CString &AString)
Makes an XML compatible identifier string from the given string.
Definition: cbhelper.cpp:46
static const int QUOTE_NEVER
Definition: cbhelper.h:31
Definition: stlstrings.h:98
static const int CASE_KEEP
Definition: cbhelper.h:26
Definition: stlstrings.h:32
static const int QUOTE_ALWAYS
Definition: cbhelper.h:32
static const int CASE_UPPER
Definition: cbhelper.h:28
CString FlatFileName(const CString &FileName)
Converts given file path to another file name without path delimiters.
Definition: cbhelper.cpp:51
void ShowStringList(const CString &Title, const CString &LinePrefix, const CStringList &StringList)
Prints titled string list to standard output.
Definition: cbhelper.cpp:25
static const int QUOTE_AUTO
Definition: cbhelper.h:30
static const int CASE_LOWER
Definition: cbhelper.h:27
CString MakefileFriendly(const CString &AString)
Makes a makefile compatible identifier string from the given string.
Definition: cbhelper.cpp:35