summaryrefslogtreecommitdiffstats
path: root/net/tools/flip_server/split.h
blob: 247fef8442cbbe0cd1464975225bd3e75a718452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2009 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_FLIP_SERVER_SPLIT_H_
#define NET_TOOLS_FLIP_SERVER_SPLIT_H_

#include <vector>
#include "base/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_FLIP_SERVER_SPLIT_H_