~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/tools/leaky/strset.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// The contents of this file are subject to the Mozilla Public License
 
2
// Version 1.1 (the "License"); you may not use this file except in
 
3
// compliance with the License. You may obtain a copy of the License
 
4
// at http://www.mozilla.org/MPL/
 
5
//
 
6
// Software distributed under the License is distributed on an "AS IS"
 
7
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
8
// the License for the specific language governing rights and
 
9
// limitations under the License.
 
10
//
 
11
// The Initial Developer of the Original Code is Kipp E.B. Hickman.
 
12
 
 
13
#ifndef __strset_h_
 
14
#define __strset_h_
 
15
 
 
16
struct StrSet {
 
17
  StrSet();
 
18
 
 
19
  void add(const char* string);
 
20
  int contains(const char* string);
 
21
  bool IsEmpty() const { return 0 == numstrings; }
 
22
 
 
23
  char** strings;
 
24
  int numstrings;
 
25
};
 
26
 
 
27
#endif /* __strset_h_ */