19 static auto str_len_fn = mf::build::SI1_SO<std::string, int>(
20 "String Length", [](
const std::string &a) {
return BLI_strlen_utf8(a.c_str()); });
29 ntype.
ui_name =
"String Length";
30 ntype.
ui_description =
"Output the number of characters in the given string";
#define NODE_CLASS_CONVERTER
#define FN_NODE_STRING_LENGTH
size_t BLI_strlen_utf8(const char *strc) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void set_matching_fn(const mf::MultiFunction *fn)
void node_register_type(bNodeType &ntype)
static void node_build_multi_function(NodeMultiFunctionBuilder &builder)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
void fn_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeMultiFunctionBuildFunction build_multi_function
const char * enum_name_legacy
NodeDeclareFunction declare