|
Blender V5.3
|
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 (ui::Layout &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, std::optional< std::string > &r_error) |
| 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 375 of file node_fn_format_string.cc.
References create_invalid_python_compatible_format_error(), blender::nodes::node_fn_format_string_cc::FormatPatternInfo::pattern_str, and TIP_.
Referenced by create_invalid_python_compatible_format_error(), and preprocess_python_compatible_syntax().
|
static |
Definition at line 126 of file node_fn_format_string.cc.
References blender::BLI_assert(), find_format_specifier(), and length().
Referenced by find_format_specifier(), and format_strings().
|
static |
Returns the index of the next unescaped '{', the string size, or -1 on error.
Definition at line 146 of file node_fn_format_string.cc.
References find_next_format_start_or_end(), and TIP_.
Referenced by find_next_format_start_or_end(), and format_strings().
|
static |
Definition at line 642 of file node_fn_format_string.cc.
References blender::BLI_assert(), blender::MutableSpan< T >::data(), blender::blender::StringRefBase::find(), find_format_specifier(), find_next_format_start_or_end(), blender::nodes::node_fn_format_string_cc::FormatInputsLookup::find_next_input(), format_strings(), format_with_hash_syntax(), format_with_python_compatible_syntax(), format_without_format_specifier(), blender::CPPType::get(), blender::blender::StringRefBase::is_empty(), blender::blender::StringRefBase::not_found, output, blender::GVArrayCommon::size(), blender::blender::StringRefBase::substr(), and TIP_.
Referenced by blender::nodes::node_fn_format_string_cc::FormatStringMultiFunction::call(), and format_strings().
|
static |
Definition at line 477 of file node_fn_format_string.cc.
References BLI_assert_unreachable, format_with_fmt(), blender::GVArrayCommon::get(), blender::CPPType::is(), output, blender::GVArrayCommon::type(), and blender::GVArray::typed().
Referenced by format_with_fmt(), and format_with_python_compatible_syntax().
|
static |
Definition at line 557 of file node_fn_format_string.cc.
References blender::BKE_path_template_format_float(), blender::BKE_path_template_format_int(), format_with_hash_syntax(), blender::GVArrayCommon::get(), blender::CPPType::is(), blender::CPPType::name(), output, TIP_, and blender::GVArrayCommon::type().
Referenced by format_strings(), and format_with_hash_syntax().
|
static |
Definition at line 532 of file node_fn_format_string.cc.
References blender::BLI_assert(), format_with_fmt(), format_with_python_compatible_syntax(), preprocess_python_compatible_syntax(), and blender::GVArrayCommon::type().
Referenced by format_strings(), and format_with_python_compatible_syntax().
|
static |
Definition at line 605 of file node_fn_format_string.cc.
References format_without_format_specifier(), blender::GVArrayCommon::get(), blender::CPPType::is(), blender::CPPType::name(), blender::blender::StringRefBase::not_found, output, blender::StringRef::StringRef(), TIP_, and blender::GVArrayCommon::type().
Referenced by format_strings(), and format_without_format_specifier().
|
static |
Definition at line 252 of file node_fn_format_string.cc.
References blender::CPPType::get(), get_pattern_by_type(), get_pattern_by_type_impl(), and blender::CPPType::is().
Referenced by get_pattern_by_type(), and preprocess_python_compatible_syntax().
|
static |
Also see https://fmt.dev/latest/syntax/.
Definition at line 201 of file node_fn_format_string.cc.
References get_pattern_by_type_impl(), and blender::CPPType::is().
Referenced by get_pattern_by_type(), and get_pattern_by_type_impl().
|
static |
Definition at line 121 of file node_fn_format_string.cc.
References blender::nodes::socket_items::blend_read_data(), node, and node_blend_read().
Referenced by node_blend_read(), and node_register().
|
static |
Definition at line 116 of file node_fn_format_string.cc.
References blender::nodes::socket_items::blend_write(), node, and node_blend_write().
Referenced by node_blend_write(), and node_register().
|
static |
Definition at line 804 of file node_fn_format_string.cc.
References blender::nodes::NodeMultiFunctionBuilder::construct_and_set_matching_fn(), blender::nodes::NodeMultiFunctionBuilder::node(), node_build_multi_function(), and blender::nodes::NodeMultiFunctionBuilder::shared_tree().
Referenced by node_build_multi_function(), and node_register().
|
static |
Definition at line 74 of file node_fn_format_string.cc.
References blender::nodes::socket_items::copy_array(), node_copy_storage(), blender::dna::shallow_copy(), and blender::bNode::storage.
Referenced by node_copy_storage(), and node_register().
|
static |
Definition at line 34 of file node_fn_format_string.cc.
References b, blender::bNodeTree::id, blender::IndexRange::IndexRange(), blender::nodes::FormatStringItemsAccessor::item_srna, blender::NodeFunctionFormatStringItem::name, node, node_declare(), blender::nodes::SocketDeclaration::optional_label, blender::nodes::FormatStringItemsAccessor::socket_identifier_for_item(), blender::NodeFunctionFormatStringItem::socket_type, storage, and blender::UString::UString().
Referenced by node_declare(), and node_register().
|
static |
Definition at line 83 of file node_fn_format_string.cc.
References blender::nodes::socket_items::destruct_array(), node, and node_free_storage().
Referenced by node_free_storage(), and node_register().
Definition at line 68 of file node_fn_format_string.cc.
References blender::data, node, and node_init().
Referenced by node_init(), and node_register().
|
static |
Definition at line 89 of file node_fn_format_string.cc.
References blender::bke::NodeInsertLinkParams::link, blender::bke::NodeInsertLinkParams::node, node_insert_link(), blender::bke::NodeInsertLinkParams::ntree, and blender::nodes::socket_items::try_add_item_via_any_extend_socket().
Referenced by node_insert_link(), and node_register().
|
static |
Definition at line 100 of file node_fn_format_string.cc.
References C, blender::PointerRNA::data_as(), IFACE_, node, node_layout_ex(), blender::PointerRNA::owner_id, blender::ui::Layout::panel(), and UI_ITEM_NONE.
Referenced by node_layout_ex(), and node_register().
|
static |
Definition at line 95 of file node_fn_format_string.cc.
References blender::nodes::socket_items::ops::make_common_operators(), and node_operators().
Referenced by node_operators(), and node_register().
|
static |
Definition at line 810 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::common_node_type_base(), blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons_ex, 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(), node_register(), 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.
Referenced by node_register().
|
static |
Definition at line 390 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, preprocess_python_compatible_syntax(), blender::result, blender::StringRef::StringRef(), TIP_, and blender::nodes::node_fn_format_string_cc::FormatPatternInfo::width_group.
Referenced by format_with_python_compatible_syntax(), and preprocess_python_compatible_syntax().