14e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
54e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#ifndef NET_TOOLS_BALSA_SPLIT_H_
64e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#define NET_TOOLS_BALSA_SPLIT_H_
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include <vector>
9c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#include "base/strings/string_piece.h"
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace net {
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Yea, this could be done with less code duplication using
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// template magic, I know.
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void SplitStringPieceToVector(const base::StringPiece& full,
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)                              const char* delim,
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)                              std::vector<base::StringPiece>* vec,
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)                              bool omit_empty_strings);
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace net
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
224e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#endif  // NET_TOOLS_BALSA_SPLIT_H_
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
24