blob: 7725b0f41085511bd219beb859132a2ab38ab05f [file] [log] [blame]
// Copyright 2008 Google Inc. All Rights Reserved.
#include "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