14 b.add_input<
decl::String>(
"Find").description(
"The string to find in the input string");
15 b.add_input<
decl::String>(
"Replace").description(
"The string to replace each match with");
23 if (from.is_empty()) {
27 std::string new_str{new_str_ptr};
34 static auto substring_fn = mf::build::SI3_SO<std::string, std::string, std::string, std::string>(
35 "Replace", [](
const std::string &
str,
const std::string &find,
const std::string &replace) {
#define NODE_CLASS_CONVERTER
char * BLI_string_replaceN(const char *__restrict str, const char *__restrict substr_old, const char *__restrict substr_new) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void set_matching_fn(const mf::MultiFunction *fn)
local_group_size(16, 16) .push_constant(Type b
void MEM_freeN(void *vmemh)
void node_register_type(bNodeType *ntype)
static void node_declare(NodeDeclarationBuilder &b)
static std::string replace_all(const StringRefNull str, const StringRefNull from, const StringRefNull to)
static void node_build_multi_function(NodeMultiFunctionBuilder &builder)
static void node_register()
void fn_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
NodeMultiFunctionBuildFunction build_multi_function
NodeDeclareFunction declare