// Bernstein's hash function
unsigned int hash = 5381;
for (unsigned int i = 0; i < full_author_string.length(); ++i)
// Bernstein's hash function
unsigned int hash = 5381;
for (unsigned int i = 0; i < full_author_string.length(); ++i)
-bool author_smaller(Author const & lhs, Author const & rhs) {
- return lhs.buffer_id() < rhs.buffer_id();
+bool author_smaller(Author const & lhs, Author const & rhs)
+{
+ return lhs.bufferId() < rhs.bufferId();
// If we record an author which equals the current
// author, we copy the buffer_id, so that it will
// keep the same id in the file.
// If we record an author which equals the current
// author, we copy the buffer_id, so that it will
// keep the same id in the file.