2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2012-12-28 20:21:05 +00:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup freestyle
|
|
|
|
|
* \brief String utilities
|
2012-12-28 20:21:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <cstring>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <sstream>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2024-09-26 21:13:39 +10:00
|
|
|
#include "BLI_path_utils.hh"
|
2020-04-21 12:39:12 +02:00
|
|
|
#include "BLI_string.h"
|
2008-05-11 20:28:47 +00:00
|
|
|
|
2008-04-30 15:41:54 +00:00
|
|
|
using namespace std;
|
|
|
|
|
|
2013-04-09 00:46:49 +00:00
|
|
|
namespace Freestyle {
|
|
|
|
|
|
2008-04-30 15:41:54 +00:00
|
|
|
namespace StringUtils {
|
|
|
|
|
|
2012-12-28 20:21:05 +00:00
|
|
|
void getPathName(const string &path, const string &base, vector<string> &pathnames);
|
2008-04-30 15:41:54 +00:00
|
|
|
|
2012-12-28 20:21:05 +00:00
|
|
|
// STL related
|
|
|
|
|
struct ltstr {
|
|
|
|
|
bool operator()(const char *s1, const char *s2) const
|
|
|
|
|
{
|
|
|
|
|
return strcmp(s1, s2) < 0;
|
|
|
|
|
}
|
2008-04-30 15:41:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // end of namespace StringUtils
|
|
|
|
|
|
2013-04-09 00:46:49 +00:00
|
|
|
} /* namespace Freestyle */
|