Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CommaDelimitedParser_h | |
| 6 #define CommaDelimitedParser_h | |
| 7 | |
| 8 #include "platform/PlatformExport.h" | |
| 9 #include "wtf/HashMap.h" | |
| 10 #include "wtf/text/StringHash.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class CommaDelimitedParser { | |
|
Mike West
2015/02/27 08:53:41
I'm not sure this is a good name. It does parse a
| |
| 15 public: | |
| 16 PLATFORM_EXPORT CommaDelimitedParser(String); | |
| 17 | |
| 18 PLATFORM_EXPORT bool contains(String); | |
| 19 | |
| 20 private: | |
| 21 HashMap<String, bool, CaseFoldingHash> m_map; | |
|
Mike West
2015/02/27 08:53:41
I'd suggest a HashSet rather than a map containing
| |
| 22 }; | |
| 23 | |
| 24 } // namespace blink | |
| 25 #endif | |
| 26 | |
| OLD | NEW |