Files
test/source/blender/freestyle/intern/system/StringUtils.h
Campbell Barton 381898b6dc Refactor: move BLI_path_util header to C++, rename to BLI_path_utils
Move to a C++ header to allow C++ features to be used there,
use the "utils" suffix as it's preferred for new files.

Ref !128147
2024-09-26 21:13:39 +10:00

40 lines
676 B
C++

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
/** \file
* \ingroup freestyle
* \brief String utilities
*/
#include <cstring>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "BLI_path_utils.hh"
#include "BLI_string.h"
using namespace std;
namespace Freestyle {
namespace StringUtils {
void getPathName(const string &path, const string &base, vector<string> &pathnames);
// STL related
struct ltstr {
bool operator()(const char *s1, const char *s2) const
{
return strcmp(s1, s2) < 0;
}
};
} // end of namespace StringUtils
} /* namespace Freestyle */