sipxportlib  Version 3.3
UtlTokenizer.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2012 SIPez LLC. All rights reserved.
3 //
4 // Copyright (C) 2004-2006 SIPfoundry Inc.
5 // Licensed by SIPfoundry under the LGPL license.
6 //
7 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
8 // Licensed to SIPfoundry under a Contributor Agreement.
9 //
10 // $$
12 
13 
14 #ifndef _UtlTokenizer_h_
15 #define _UtlTokenizer_h_
16 
17 // SYSTEM INCLUDES
18 #include <ctype.h>
19 
20 // APPLICATION INCLUDES
21 #include <utl/UtlDefs.h>
22 #include <os/OsDefs.h>
23 #include <utl/UtlString.h>
24 
25 // DEFINES
26 // MACROS
27 // EXTERNAL FUNCTIONS
28 // EXTERNAL VARIABLES
29 // CONSTANTS
30 // STRUCTS
31 // TYPEDEFS
32 // FORWARD DECLARATIONS
33 
38 {
39 /* //////////////////////////// PUBLIC //////////////////////////////////// */
40  public:
41 
42 /* ============================ CREATORS ================================== */
43 
47  UtlTokenizer(const UtlString &tokens);
48 
52  virtual ~UtlTokenizer();
53 
54 /* ============================ MANIPULATORS ============================== */
55 
56  static int nextDelim(const char *tokens, const int start, const int len, const char *delim);
57 
58  static UtlBoolean isDelim(const char c, const char *delim);
59 
60 /* ============================ ACCESSORS ================================= */
61 
62 /* ============================ INQUIRY =================================== */
63  UtlBoolean next(UtlString &token, const char *delim);
64 
65 /* //////////////////////////// PROTECTED ///////////////////////////////// */
66  protected:
67 
68 /* //////////////////////////// PRIVATE /////////////////////////////////// */
69  private:
70 
71  char *m_tokens;
72 
73  int m_tokenPosition;
74 
78  UtlTokenizer(const UtlTokenizer& rUtlTokenizer);
79 
85  UtlTokenizer& operator=(const UtlTokenizer& rhs);
86 };
87 
88 /* ============================ INLINE METHODS ============================ */
89 
90 #endif // _UtlTokenizer_h_
static UtlBoolean isDelim(const char c, const char *delim)
Definition: UtlTokenizer.cpp:97
virtual ~UtlTokenizer()
Definition: UtlTokenizer.cpp:40
UtlTokenizer(const UtlString &tokens)
Definition: UtlTokenizer.cpp:33
Definition: UtlString.h:48
UtlBoolean next(UtlString &token, const char *delim)
Definition: UtlTokenizer.cpp:68
static int nextDelim(const char *tokens, const int start, const int len, const char *delim)
Definition: UtlTokenizer.cpp:89
int UtlBoolean
Definition: UtlDefs.h:41
Definition: UtlTokenizer.h:37