diff options
author | dos-reis <gdr@axiomatics.org> | 2011-03-21 22:58:01 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2011-03-21 22:58:01 +0000 |
commit | 7dc19cbfb3fef1f70794d2baaebd183d21b7d6b0 (patch) | |
tree | 4951f977a0579e88906ff2b19ee98ccdd557c428 /src/utils/string-pool.H | |
parent | dfadd6b270f0238ef2f5e54fac780b6a6951ee4b (diff) | |
download | open-axiom-7dc19cbfb3fef1f70794d2baaebd183d21b7d6b0.tar.gz |
Fix some type detection issues
Diffstat (limited to 'src/utils/string-pool.H')
-rw-r--r-- | src/utils/string-pool.H | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/utils/string-pool.H b/src/utils/string-pool.H index ae90409b..311db1bf 100644 --- a/src/utils/string-pool.H +++ b/src/utils/string-pool.H @@ -1,4 +1,4 @@ -// Copyright (C) 2010, Gabriel Dos Reis. +// Copyright (C) 2010-2011, Gabriel Dos Reis. // All rights reserved. // // Redistribution and use in source and binary forms, with or without @@ -32,7 +32,6 @@ #ifndef OPENAXIOM_STRING_POOL_INCLUDED #define OPENAXIOM_STRING_POOL_INCLUDED -#include <string.h> #include <open-axiom/hash-table> // --% Author: Gabriel Dos Reis. @@ -62,17 +61,15 @@ namespace OpenAxiom { // ---------------- // -- StringPool -- // ---------------- - // A stringpool object is a repository of long-living string objects. - // It contains no duplicates, therefore allowing fast string - // object comparison for equality. + // A string-pool object is a repository of long-living string objects. + // It contains no duplicates, therefore allows fast equality + // comparison of string objects. struct StringPool : private BasicHashTable<StringItem> { using BasicHashTable<StringItem>::EntryType; StringPool(); // Intern a NUL-terminated sequence of characters. - EntryType* intern(const char* s) { - return intern(s, strlen(s)); - } + EntryType* intern(const char*); // Intern a sequence of characters given by its start and length. EntryType* intern(const char*, size_t); |