7#include "../geometry/node_geometry_util.hh"
20 .structure_type(StructureType::List)
22 "The parts of the input string. This contains at least one element which may be empty");
28 return {original_str};
33 const int separator_pos = remaining.
find(separator);
39 remaining = remaining.
substr(separator_pos + separator.
size());
46 const std::string separator = params.
extract_input<std::string>(
"Separator"_ustr);
58 ntype.
ui_description =
"Split a string into a list using a separator";
#define NODE_CLASS_CONVERTER
#define NOD_REGISTER_NODE(REGISTER_FUNC)
static constexpr int64_t not_found
constexpr bool is_empty() const
constexpr int64_t size() const
constexpr int64_t find(char c, int64_t pos=0) const
constexpr StringRef substr(int64_t start, int64_t size) const
T extract_input(const UString identifier)
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static Vector< std::string > split_string(const StringRef original_str, const StringRef separator)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
static void node_geo_exec(GeoNodeExecParams params)
void fn_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare