Files
ceres-solver/internal/ceres/split.h
T
Petter Strandmark eb38e74267 Inclusion guard fix
Change-Id: Idf6245bb76c86817e332aca4393c9db86a1e2059
2012-09-08 13:53:24 -07:00

22 lines
625 B
C++

// Copyright 2011 Google Inc. All Rights Reserved.
// Author: keir@google.com (Keir Mierle)
#ifndef CERES_INTERNAL_SPLIT_H_
#define CERES_INTERNAL_SPLIT_H_
#include <string>
#include <vector>
#include "ceres/internal/port.h"
namespace ceres {
// Split a string using one or more character delimiters, presented as a
// nul-terminated c string. Append the components to 'result'. If there are
// consecutive delimiters, this function skips over all of them.
void SplitStringUsing(const string& full, const char* delim,
vector<string>* res);
} // namespace ceres
#endif // CERES_INTERNAL_SPLIT_H_