kqcstringsplitter.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifndef KQCSTRINGSPLITTER_H
00018
#define KQCSTRINGSPLITTER_H
00019
00020
#include <qcstring.h>
00021
00022
00023
class KQCStringSplitter {
00024
00025
public:
00026 KQCStringSplitter();
00027 ~KQCStringSplitter();
00028
00029
void reset() { start=0; end=0; sep=
""; incSep=
false;}
00030
00031
void init(
const QCString &str,
const char *s);
00032
void init(
const char *str,
const char *s);
00033
void setIncludeSep(
bool inc) { incSep=inc; }
00034
00035
bool first();
00036
bool last();
00037
00038
bool next();
00039
bool prev();
00040
00041
QCString& string() {
return dst; }
00042
const QCString& source() {
return src; }
00043
00044
private:
00045
QCString src, dst, sep;
00046
int start,end;
00047
bool incSep;
00048
00049 };
00050
00051
#endif
This file is part of the documentation for libkdenetwork Library Version 3.3.0.