str.hh (2665:a124942bacb8) str.hh (8229:78bf55f23338)
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 18 unchanged lines hidden (view full) ---

27 *
28 * Authors: Nathan Binkert
29 * Steve Reinhardt
30 */
31
32#ifndef __STR_HH__
33#define __STR_HH__
34
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 18 unchanged lines hidden (view full) ---

27 *
28 * Authors: Nathan Binkert
29 * Steve Reinhardt
30 */
31
32#ifndef __STR_HH__
33#define __STR_HH__
34
35#include <cctype>
35#include <sstream>
36#include <string>
37#include <vector>
38
36#include <sstream>
37#include <string>
38#include <vector>
39
39#include <ctype.h>
40
41template<class> class Hash;
42template<>
43class Hash<std::string> {
44public:
45 unsigned operator()(const std::string &s) {
46 std::string::const_iterator i = s.begin();
47 std::string::const_iterator end = s.end();
48 unsigned hash = 5381;

--- 96 unchanged lines hidden ---
40template<class> class Hash;
41template<>
42class Hash<std::string> {
43public:
44 unsigned operator()(const std::string &s) {
45 std::string::const_iterator i = s.begin();
46 std::string::const_iterator end = s.end();
47 unsigned hash = 5381;

--- 96 unchanged lines hidden ---