blob: 4df48c3a7cd64395a76a6c7a54cc50b82ccc26fe [file] [log] [blame]
Sameer Agarwalea117042012-08-29 18:18:48 -07001// Copyright 2011 Google Inc. All Rights Reserved.
2// Author: keir@google.com (Keir Mierle)
3
4#ifndef CERES_INTERNAL_SPLIT_H_
Petter Strandmarkeb38e742012-09-08 13:53:24 -07005#define CERES_INTERNAL_SPLIT_H_
Sameer Agarwalea117042012-08-29 18:18:48 -07006
7#include <string>
8#include <vector>
9#include "ceres/internal/port.h"
10
11namespace ceres {
12
13// Split a string using one or more character delimiters, presented as a
14// nul-terminated c string. Append the components to 'result'. If there are
15// consecutive delimiters, this function skips over all of them.
16void SplitStringUsing(const string& full, const char* delim,
17 vector<string>* res);
18
19} // namespace ceres
20
21#endif // CERES_INTERNAL_SPLIT_H_