mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
ea11704857
Change-Id: I5baaa24dbf0506ceedf4a9be4ed17c84974d71a1
22 lines
653 B
C++
22 lines
653 B
C++
// Copyright 2011 Google Inc. All Rights Reserved.
|
|
// Author: keir@google.com (Keir Mierle)
|
|
|
|
#ifndef CERES_INTERNAL_SPLIT_H_
|
|
#define VISION_OPTIMIZATION_LEAST_SQUARES_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_
|