|
Blender V5.0
|
Classes | |
| struct | FormatPatternInfo |
| class | FormatInputsLookup |
| struct | ProcessedPythonCompatibleFormat |
| class | FormatStringMultiFunction |
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static void | node_init (bNodeTree *, bNode *node) |
| static void | node_copy_storage (bNodeTree *, bNode *dst_node, const bNode *src_node) |
| static void | node_free_storage (bNode *node) |
| static bool | node_insert_link (bke::NodeInsertLinkParams ¶ms) |
| static void | node_operators () |
| static void | node_layout_ex (uiLayout *layout, bContext *C, PointerRNA *ptr) |
| static void | node_blend_write (const bNodeTree &, const bNode &node, BlendWriter &writer) |
| static void | node_blend_read (bNodeTree &, bNode &node, BlendDataReader &reader) |
| static std::optional< StringRef > | find_format_specifier (const StringRef format) |
| static int64_t | find_next_format_start_or_end (const StringRef format, const int64_t start, std::string &r_out) |
| static FormatPatternInfo | get_pattern_by_type_impl (const CPPType &type) |
| static const FormatPatternInfo * | get_pattern_by_type (const CPPType &type) |
| static std::string | create_invalid_python_compatible_format_error (const StringRef format, const StringRef format_outer, const FormatPatternInfo &pattern) |
| static std::optional< ProcessedPythonCompatibleFormat > | preprocess_python_compatible_syntax (const StringRef format, const StringRef format_outer, const CPPType &type, FormatInputsLookup &inputs_lookup, std::optional< std::string > &r_error) |
| static void | format_with_fmt (const fmt::runtime_format_string<> format, const GVArray &input, const GVArray *widths, const GVArray *precisions, const IndexMask &mask, MutableSpan< std::string > r_formatted_strings) |
| static void | format_with_python_compatible_syntax (const StringRef format_pattern, const StringRef format_outer, const GVArray &input, const IndexMask &mask, FormatInputsLookup &inputs_lookup, MutableSpan< std::string > r_formatted_strings, std::optional< std::string > &r_error) |
| static void | format_with_hash_syntax (const StringRef format_pattern, const GVArray &input, const IndexMask &mask, MutableSpan< std::string > r_formatted_strings, std::optional< std::string > &r_error) |
| static void | format_without_format_specifier (const GVArray &input, const IndexMask &mask, MutableSpan< std::string > r_formatted_strings, std::optional< std::string > &r_error) |
| static bool | format_strings (const StringRef format, const Span< GVArray > inputs, const VectorSet< std::string > &input_names, const IndexMask &mask, MutableSpan< std::string > r_formatted_strings, std::optional< std::string > &r_error) |
| static void | node_build_multi_function (NodeMultiFunctionBuilder &builder) |
| static void | node_register () |
|
static |
Definition at line 348 of file node_fn_format_string.cc.
References blender::nodes::node_fn_format_string_cc::FormatPatternInfo::pattern_str, and TIP_.
Referenced by preprocess_python_compatible_syntax().
|
static |
Definition at line 118 of file node_fn_format_string.cc.
References BLI_assert, and length().
Referenced by format_strings().
|
static |
Definition at line 137 of file node_fn_format_string.cc.
References i.
Referenced by format_strings().
|
static |
Definition at line 615 of file node_fn_format_string.cc.
References blender::MutableSpan< T >::data(), blender::StringRefBase::find(), find_format_specifier(), find_next_format_start_or_end(), blender::nodes::node_fn_format_string_cc::FormatInputsLookup::find_next_input(), format_with_hash_syntax(), format_with_python_compatible_syntax(), format_without_format_specifier(), blender::CPPType::get(), i, input, inputs, blender::StringRefBase::is_empty(), mask(), blender::StringRefBase::not_found, output, blender::GVArrayCommon::size(), blender::StringRefBase::substr(), TIP_, and blender::CPPType::value_initialize_indices().
Referenced by blender::nodes::node_fn_format_string_cc::FormatStringMultiFunction::call().
|
static |
Definition at line 450 of file node_fn_format_string.cc.
References BLI_assert_unreachable, blender::GVArrayCommon::get(), i, input, blender::CPPType::is(), mask(), and output.
Referenced by format_with_python_compatible_syntax().
|
static |
Definition at line 530 of file node_fn_format_string.cc.
References BKE_path_template_format_float(), BKE_path_template_format_int(), i, input, blender::CPPType::is(), mask(), blender::CPPType::name(), output, and TIP_.
Referenced by format_strings().
|
static |
Definition at line 505 of file node_fn_format_string.cc.
References BLI_assert, format_with_fmt(), input, mask(), and preprocess_python_compatible_syntax().
Referenced by format_strings().
|
static |
Definition at line 578 of file node_fn_format_string.cc.
References i, input, blender::CPPType::is(), mask(), blender::CPPType::name(), blender::StringRefBase::not_found, output, and TIP_.
Referenced by format_strings().
|
static |
Definition at line 225 of file node_fn_format_string.cc.
References blender::CPPType::get(), get_pattern_by_type_impl(), and blender::CPPType::is().
Referenced by preprocess_python_compatible_syntax().
|
static |
Also see https://fmt.dev/latest/syntax/.
Definition at line 175 of file node_fn_format_string.cc.
References blender::CPPType::is().
Referenced by get_pattern_by_type().
|
static |
Definition at line 113 of file node_fn_format_string.cc.
References blender::nodes::socket_items::blend_read_data().
Referenced by node_register().
|
static |
Definition at line 108 of file node_fn_format_string.cc.
References blender::nodes::socket_items::blend_write().
Referenced by node_register().
|
static |
Definition at line 764 of file node_fn_format_string.cc.
References blender::nodes::NodeMultiFunctionBuilder::construct_and_set_matching_fn(), and blender::nodes::NodeMultiFunctionBuilder::node().
Referenced by node_register().
|
static |
Definition at line 66 of file node_fn_format_string.cc.
References blender::nodes::socket_items::copy_array(), MEM_dupallocN(), and bNode::storage.
Referenced by node_register().
|
static |
Definition at line 30 of file node_fn_format_string.cc.
References b, i, bNodeTree::id, blender::nodes::FormatStringItemsAccessor::item_srna, NodeFunctionFormatString::items, NodeFunctionFormatString::items_num, name, NodeFunctionFormatStringItem::name, node_declare(), blender::nodes::SocketDeclaration::optional_label, blender::nodes::FormatStringItemsAccessor::socket_identifier_for_item(), and NodeFunctionFormatStringItem::socket_type.
Referenced by node_declare(), and node_register().
|
static |
Definition at line 75 of file node_fn_format_string.cc.
References blender::nodes::socket_items::destruct_array(), MEM_freeN(), and bNode::storage.
Referenced by node_register().
Definition at line 60 of file node_fn_format_string.cc.
References data, MEM_callocN(), and bNode::storage.
Referenced by node_register().
|
static |
Definition at line 81 of file node_fn_format_string.cc.
References params, and blender::nodes::socket_items::try_add_item_via_any_extend_socket().
Referenced by node_register().
|
static |
Definition at line 92 of file node_fn_format_string.cc.
References C, blender::nodes::socket_items::ui::draw_active_item_props(), blender::nodes::socket_items::ui::draw_items_list_with_operators(), IFACE_, uiLayout::panel(), ptr, tree, and UI_ITEM_NONE.
Referenced by node_register().
|
static |
Definition at line 87 of file node_fn_format_string.cc.
References blender::nodes::socket_items::ops::make_common_operators().
Referenced by node_register().
|
static |
Definition at line 769 of file node_fn_format_string.cc.
References blender::bke::bNodeType::blend_data_read_storage_content, blender::bke::bNodeType::blend_write_storage_content, blender::bke::bNodeType::build_multi_function, blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons_ex, fn_node_type_base(), blender::bke::bNodeType::initfunc, blender::bke::bNodeType::insert_link, blender::bke::bNodeType::nclass, node_blend_read(), node_blend_write(), node_build_multi_function(), NODE_CLASS_CONVERTER, node_copy_storage(), node_declare(), node_free_storage(), node_init(), node_insert_link(), node_layout_ex(), node_operators(), blender::bke::node_register_type(), blender::bke::node_type_storage(), blender::bke::bNodeType::register_operators, blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
|
static |
Definition at line 363 of file node_fn_format_string.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), create_invalid_python_compatible_format_error(), blender::StringRef::drop_prefix(), blender::StringRef::drop_suffix(), blender::nodes::node_fn_format_string_cc::FormatInputsLookup::find_next_input(), get_pattern_by_type(), blender::CPPType::name(), blender::nodes::node_fn_format_string_cc::FormatPatternInfo::pattern, blender::nodes::node_fn_format_string_cc::FormatPatternInfo::precision_group, result, TIP_, and blender::nodes::node_fn_format_string_cc::FormatPatternInfo::width_group.
Referenced by format_with_python_compatible_syntax().