File: EStringTokenizer.h

package info (click to toggle)
miwm 1.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,296 kB
  • ctags: 910
  • sloc: cpp: 8,179; sh: 231; makefile: 148
file content (37 lines) | stat: -rw-r--r-- 947 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//   This file was part of the KDE libraries
//    Copyright (C) 1997 Martin Jones (mjones@kde.org)
//              (C) 1997 Torben Weis (weis@kde.org)
//              (C) 1998 Waldo Bastian (bastian@kde.org)
//
//    This copy was then part of the QUB project.
//    Copyright (C) 2000-2003 stephan@wanderinghorse.net
//
//   Since then i have received permission from Martin, Torben and Waldo
//   to release this code into the Public Domain, and that is the license
//   for this code.
//
// ***************************************************************************

#ifndef STRINGTOKENIZER_H
#define STRINGTOKENIZER_H


class EStringTokenizer
{
public:
    EStringTokenizer();
    ~EStringTokenizer();

    void tokenize( const char *, const char * );
    const char* nextToken();
    bool hasMoreTokens() { return ( pos != 0 ); }

protected:
    char *pos;
    char *end;
    char *buffer;
    int  bufLen;
};

#endif // STRINGTOKENIZER_H