blob: 2e9d5b13536b7123bdd9a793d80bc14443aab5da [file] [log] [blame]
// Copyright 2008 Google Inc. All Rights Reserved.
#include "kudu/gutil/strings/charset.h"
#include <string.h>
namespace strings {
CharSet::CharSet() {
memset(this, 0, sizeof(*this));
}
CharSet::CharSet(const char* characters) {
memset(this, 0, sizeof(*this));
for (; *characters != '\0'; ++characters) {
Add(*characters);
}
}
CharSet::CharSet(const CharSet& other) {
memcpy(this, &other, sizeof(*this));
}
} // namespace strings