26 "True when the first input starts with the second"},
31 "True when the first input ends with the second"},
36 "True when the first input contains the second as a substring"},
37 {0,
nullptr, 0,
nullptr,
nullptr},
44 "The string to find in the input string");
64 static auto fn = mf::build::SI2_SO<std::string, std::string, bool>(
65 "Starts With", [](
const std::string &a,
const std::string &
b) {
73 static auto fn = mf::build::SI2_SO<std::string, std::string, bool>(
74 "Ends With", [](
const std::string &a,
const std::string &
b) {
82 static auto fn = mf::build::SI2_SO<std::string, std::string, bool>(
83 "Contains", [](
const std::string &a,
const std::string &
b) {
108 item->identifier !=
nullptr;
111 if (item->name !=
nullptr && item->identifier[0] !=
'\0') {
114 bNode &node = params.add_node(
"FunctionNodeMatchString");
115 node.custom1 = int8_t(operation);
116 params.update_and_connect_available_socket(node,
"String");
125 bNode &node =
params.add_node(
"FunctionNodeMatchString");
126 params.update_and_connect_available_socket(node,
"Result");
160 ntype.
ui_name =
"Match String";
#define NODE_CLASS_CONVERTER
#define BLI_assert_unreachable()
char * BLI_strncpy_utf8(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define NOD_inline_enum_accessors(member)
static constexpr int64_t not_found
constexpr int64_t find(char c, int64_t pos=0) const
constexpr bool startswith(StringRef prefix) const
constexpr bool endswith(StringRef suffix) const
void set_matching_fn(const mf::MultiFunction *fn)
void node_register_type(bNodeType &ntype)
static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
static void node_init(bNodeTree *, bNode *node)
static void node_rna(StructRNA *srna)
static void node_declare(NodeDeclarationBuilder &b)
static const mf::MultiFunction * get_multi_function(const bNode &bnode)
static void node_build_multi_function(NodeMultiFunctionBuilder &builder)
static void node_register()
static void node_label(const bNodeTree *, const bNode *node, char *label, int label_maxncpy)
const EnumPropertyItem rna_enum_node_match_string_items[]
static void node_layout(uiLayout *layout, bContext *, PointerRNA *ptr)
PropertyRNA * RNA_def_node_enum(StructRNA *srna, const char *identifier, const char *ui_name, const char *ui_description, const EnumPropertyItem *static_items, const EnumRNAAccessors accessors, std::optional< int > default_value, const EnumPropertyItemFunc item_func, const bool allow_animation)
void fn_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
bool RNA_enum_name(const EnumPropertyItem *item, const int value, const char **r_name)
void(* initfunc)(bNodeTree *ntree, bNode *node)
void(* labelfunc)(const bNodeTree *ntree, const bNode *node, char *label, int label_maxncpy)
NodeMultiFunctionBuildFunction build_multi_function
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)