Declaring the `blender::opensubdiv` namespace on one line is just shorter. `static` is preferred over anonymous namespaces since it's locally visible.
21 lines
486 B
C++
21 lines
486 B
C++
/* SPDX-FileCopyrightText: 2013 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#ifndef OPENSUBDIV_BASE_UTIL_H_
|
|
#define OPENSUBDIV_BASE_UTIL_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace blender::opensubdiv {
|
|
|
|
void stringSplit(std::vector<std::string> *tokens,
|
|
const std::string &str,
|
|
const std::string &separators,
|
|
bool skip_empty);
|
|
|
|
} // namespace blender::opensubdiv
|
|
|
|
#endif // OPENSUBDIV_BASE_UTIL_H_
|