KVIrc  4.9.2
DeveloperAPIs
KviCommandFormatter.h
Go to the documentation of this file.
1 #ifndef _KVI_CMDFORMATTER_H_
2 #define _KVI_CMDFORMATTER_H_
3 
4 //=============================================================================
5 //
6 // File : KviCommandFormatter.h
7 // Creation date : Tue Jun 12 2001 03:04:05 CEST by Szymon Stefanek
8 //
9 // This file is part of the KVIrc IRC client distribution
10 // Copyright (C) 2001-2010 Szymon Stefanek (pragma at kvirc dot net)
11 //
12 // This program is FREE software. You can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the HOPE that it will be USEFUL,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 // See the GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program. If not, write to the Free Software Foundation,
24 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 //
26 //=============================================================================
27 
28 #include "KviCString.h"
29 #include "kvi_settings.h"
30 
31 #include <QStringList>
32 
33 namespace KviCommandFormatter
34 {
35  extern KVILIB_API bool hasLeadingChars(KviCString * pszArray, char c);
36  extern KVILIB_API bool hasLeadingChars(QStringList & list, const QChar & c);
37 
38  extern KVILIB_API void trimLeading(KviCString ** pszArray);
39  extern KVILIB_API void trimLeading(QStringList & list);
40 
41  extern KVILIB_API void addLeading(KviCString ** pszArray, char c);
42  extern KVILIB_API void addLeading(QStringList & list, const QChar & c);
43 
45  extern KVILIB_API void trimBlockBraces(QString & szBuffer);
46 
47  extern KVILIB_API void unindent(KviCString & szBuffer);
48  extern KVILIB_API void unindent(QString & szBuffer);
49 
51  extern KVILIB_API void bufferFromBlock(QString & szBuffer);
52 
54  extern KVILIB_API void addBlockBraces(QString & szBuffer);
55 
56  extern KVILIB_API void indent(KviCString & szBuffer);
57  extern KVILIB_API void indent(QString & szBuffer);
58 
60  extern KVILIB_API void blockFromBuffer(QString & szBuffer);
61 }
62 
63 #endif //_KVI_CMDFORMATTER_H_
void indent(KviCString &szBuffer)
Definition: KviCommandFormatter.cpp:184
Definition: KviCString.h:105
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
void trimLeading(KviCString **pszArray)
Definition: KviCommandFormatter.cpp:83
void bufferFromBlock(KviCString &szBuffer)
Definition: KviCommandFormatter.cpp:149
KVILIB_API void addBlockBraces(KviCString &szBuffer)
KVILIB_API void trimBlockBraces(KviCString &szBuffer)
bool hasLeadingChars(KviCString **pszArray, char c)
Definition: KviCommandFormatter.cpp:30
char szBuffer[4096]
Definition: winamp.cpp:77
This file contains compile time settings.
void unindent(KviCString &szBuffer)
Definition: KviCommandFormatter.cpp:119
void addLeading(KviCString **pszArray, char c)
Definition: KviCommandFormatter.cpp:101
#define KVILIB_API
Definition: kvi_settings.h:125
void blockFromBuffer(KviCString &szBuffer)
Definition: KviCommandFormatter.cpp:212