diff options
Diffstat (limited to 'net/tools/balsa/split.h')
-rw-r--r-- | net/tools/balsa/split.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/tools/balsa/split.h b/net/tools/balsa/split.h new file mode 100644 index 0000000..6901c2d --- /dev/null +++ b/net/tools/balsa/split.h @@ -0,0 +1,23 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef NET_TOOLS_BALSA_SPLIT_H_ +#define NET_TOOLS_BALSA_SPLIT_H_ + +#include <vector> +#include "base/strings/string_piece.h" + +namespace net { + +// Yea, this could be done with less code duplication using +// template magic, I know. +void SplitStringPieceToVector(const base::StringPiece& full, + const char* delim, + std::vector<base::StringPiece>* vec, + bool omit_empty_strings); + +} // namespace net + +#endif // NET_TOOLS_BALSA_SPLIT_H_ + |