|
Blender V5.3
|
#include <bmesh_polygon.hh>
Inherited by blender::StringRef, blender::StringRefNull, blender::blender::StringRef, and blender::blender::StringRefNull.
Public Types | |
| using | value_type = char |
Public Member Functions | |
| void | copy_utf8_truncated (char *dst, int64_t dst_size) const |
| void | copy_bytes_truncated (char *dst, int64_t dst_size) const |
Static Public Attributes | |
| static constexpr int64_t | not_found = -1 |
Protected Attributes | |
| const char * | data_ |
| int64_t | size_ |
#StringRefBase Inline Methods | |
| constexpr | StringRefBase (const char *data, int64_t size) |
| constexpr int64_t | size () const |
| constexpr bool | is_empty () const |
| constexpr const char * | data () const |
| constexpr | operator Span< char > () const |
| operator std::string () const | |
| constexpr | operator std::string_view () const |
| constexpr const char * | begin () const |
| constexpr const char * | end () const |
| constexpr IndexRange | index_range () const |
| template<size_t N> | |
| void | copy_utf8_truncated (char(&dst)[N]) const |
| template<size_t N> | |
| void | copy_bytes_truncated (char(&dst)[N]) const |
| void | copy_unsafe (char *dst) const |
| constexpr bool | startswith (StringRef prefix) const |
| constexpr bool | endswith (StringRef suffix) const |
| constexpr StringRef | substr (int64_t start, int64_t size) const |
| constexpr const char & | front () const |
| constexpr const char & | back () const |
| constexpr int64_t | find (char c, int64_t pos=0) const |
| constexpr int64_t | find (StringRef str, int64_t pos=0) const |
| constexpr int64_t | rfind (char c, int64_t pos=INT64_MAX) const |
| constexpr int64_t | rfind (StringRef str, int64_t pos=INT64_MAX) const |
| constexpr int64_t | find_first_of (StringRef chars, int64_t pos=0) const |
| constexpr int64_t | find_first_of (char c, int64_t pos=0) const |
| constexpr int64_t | find_last_of (StringRef chars, int64_t pos=INT64_MAX) const |
| constexpr int64_t | find_last_of (char c, int64_t pos=INT64_MAX) const |
| constexpr int64_t | find_first_not_of (StringRef chars, int64_t pos=0) const |
| constexpr int64_t | find_first_not_of (char c, int64_t pos=0) const |
| constexpr int64_t | find_last_not_of (StringRef chars, int64_t pos=INT64_MAX) const |
| constexpr int64_t | find_last_not_of (char c, int64_t pos=INT64_MAX) const |
| constexpr StringRef | trim () const |
| constexpr StringRef | trim (StringRef characters_to_remove) const |
| constexpr StringRef | trim (char character_to_remove) const |
| constexpr StringRef | trim_left () const |
| constexpr StringRef | trim_left (StringRef characters_to_remove) const |
| constexpr StringRef | trim_right () const |
| constexpr StringRef | trim_right (StringRef characters_to_remove) const |
A common base class for StringRef and StringRefNull. This should never be used in other files. It only exists to avoid some code duplication.
Definition at line 49 of file bmesh_polygon.hh.
| using blender::blender::StringRefBase::value_type = char |
Makes this type "string-like" for some libraries (e.g. fmt).
Definition at line 59 of file bmesh_polygon.hh.
|
constexprprotected |
Definition at line 188 of file BLI_string_ref.hh.
References data(), data_, size(), and size_.
Referenced by blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRefNull::StringRefNull(), blender::blender::StringRefNull::StringRefNull(), and blender::blender::StringRefNull::StringRefNull().
|
constexpr |
Get the last char in the string. This invokes undefined behavior when the string is empty.
Definition at line 324 of file BLI_string_ref.hh.
References blender::BLI_assert(), data_, and size_.
Referenced by blender::asset_system::is_online_essentials_url().
|
constexpr |
Definition at line 233 of file BLI_string_ref.hh.
References data_.
Referenced by blender::ed::asset::index::blender_version_from_string(), blender::BLI_string_split_name_number(), blender::io::drop_whitespace(), blender::nodes::node_fn_format_string_cc::FormatInputsLookup::find_next_input_index(), blender::bke::FileHandlerType::get_default_filename(), blender::string_search::get_fuzzy_match_errors(), blender::io::obj::MTLParser::parse_and_store(), blender::io::parse_float(), blender::io::parse_int(), blender::gpu::GPUSource::print_error(), blender::io::read_next_line(), blender::gpu::GPULogParser::source_line_get(), blender::blender::StringRef::StringRef(), blender::StringRef::StringRef(), blender::ui::text_clip_middle_ex(), blender::ui::textbox_jump_line(), blender::ui::textbox_textedit_set_cursor_pos(), blender::ui::textedit_move(), blender::dna::tokenize_dna_header(), blender::ui::widget_draw_multiline_text(), and blender::ui::widget_draw_textbox().
| void blender::StringRefBase::copy_bytes_truncated | ( | char * | dst, |
| int64_t | dst_size ) const |
Copy the string into a char array. The copied string will be null-terminated. If it does not fit, it will be truncated.
Definition at line 47 of file string_ref.cc.
References blender::BLI_assert(), copy_unsafe(), data_, and size_.
Referenced by blender::BKE_preferences_remote_asset_library_url_set(), copy_bytes_truncated(), blender::bke::bake::resolve_bake_directory(), and blender::tests::TEST().
|
inline |
Definition at line 261 of file BLI_string_ref.hh.
References copy_bytes_truncated(), and N.
|
inline |
Copy the string into a buffer. The buffer has to be one byte larger than the size of the string, because the copied string will be null-terminated. Only use this when you are absolutely sure that the buffer is large enough.
Definition at line 248 of file BLI_string_ref.hh.
Referenced by blender::bke::path_templates::VariableMap::add_path_up_to_file(), blender::BKE_uv_map_pin_name_get(), blender::copy_attr_name(), copy_bytes_truncated(), copy_utf8_truncated(), blender::bke::ProjectVariable::description_set(), and blender::bke::node_interface::item_types::pixel_subtype_forward_compat().
| void blender::StringRefBase::copy_utf8_truncated | ( | char * | dst, |
| int64_t | dst_size ) const |
Copy the string into a char array. The copied string will be null-terminated. If it does not fit, it will be truncated while keeping it valid UTF8 (assuming the StringRef itself is valid UTF8).
Definition at line 28 of file string_ref.cc.
References blender::BLI_assert(), blender::BLI_str_utf8_invalid_byte(), blender::BLI_strncpy_utf8_rlen_unterminated(), copy_unsafe(), data_, and size_.
Referenced by blender::gpu::GPUSource::add_function(), blender::bke::greasepencil::assign_to_vertex_group(), blender::bke::greasepencil::assign_to_vertex_group_from_mask(), blender::ui::autocomplete_update_name(), blender::BKE_asset_metadata_catalog_id_set(), blender::BKE_attribute_calc_unique_name(), blender::BKE_attribute_rename(), blender::BKE_blender_project_path_resolve(), blender::BKE_object_defgroup_new(), blender::BKE_uv_map_pin_name_get(), blender::ui::but_copy(), copy_utf8_truncated(), blender::geometry::copy_vertex_group_name(), blender::customData_add_layer__internal(), blender::CustomData_set_layer_name(), blender::bke::greasepencil::ensure_vertex_group(), blender::bke::bake::file_name_to_frame(), blender::IDP_New(), blender::IDP_NewIDPArray(), blender::IDP_NewStringMaxSize(), blender::image_foreach_path(), blender::image_foreach_texture_cache_path(), blender::ed::asset::index::init_indexer_entry_from_value(), blender::bke::greasepencil::convert::legacy_object_modifier_influence(), blender::ed::asset::index::listing_entry_from_asset_dictionary(), blender::ed::greasepencil::lookup_or_add_deform_group_index(), blender::bke::make_socket(), blender::bke::node_add_node(), blender::bke::node_modify_socket_type(), blender::bke::node_tree_add_tree_do(), blender::ntree_update_reroute_nodes(), blender::bke::rename_attributes(), blender::bke::compositor::rename_effect(), blender::ui::search_item_add(), blender::tests::TEST(), and blender::volume_foreach_path().
|
inline |
Definition at line 256 of file BLI_string_ref.hh.
References copy_utf8_truncated(), and N.
|
constexpr |
Return a pointer to the start of the string.
Definition at line 209 of file BLI_string_ref.hh.
References data_.
Referenced by blender::add_render_result_meta_data(), blender::ui::MarkdownLayouter::append_pending_list_marker(), blender::apply_renames(), blender::bke::asset_blendfile_path_for_save(), blender::asset_system::asset_definition_default_file_path_from_dir(), blender::compositor::bind_texture(), blender::BKE_animdata_driver_path_remove(), blender::BKE_panel_layout_panel_state_ensure(), blender::BKE_preferences_remote_asset_library_auth_token_set(), blender::gpu::VKShaderModule::build_sources_hash(), blender::ui::button_placeholder_set(), blender::animrig::Channelbag::channel_group_create(), blender::check_rna_path_is_valid(), blender::nodes::node_composite_image_cc::ImageOperation::compute_output(), blender::ui::create_link_buttons_for_label(), blender::cryptomatte_determine_identifier(), blender::string_search::damerau_levenshtein_distance(), blender::ed::object::dash_modifier_segment_add_exec(), blender::DNA_member_id_rename(), blender::do_versions_after_linking_404(), blender::draw_performance_stats(), blender::ui::draw_preview_item_stateless(), blender::drw_text_cache_draw_ex(), blender::ED_region_activate_rna_prop(), blender::ED_region_overlay_info_text_draw(), blender::nodes::node_composite_file_output_cc::FileOutputOperation::execute_multi_layer(), blender::nodes::node_composite_file_output_cc::FileOutputOperation::execute_single_layer_multi_view_exr(), blender::string_search::extract_normalized_words(), blender::animrig::Channelbag::fcurve_clone(), blender::ed::spreadsheet::GeometryDataSource::foreach_default_column_ids(), blender::nodes::StringPattern::from_str(), blender::bke::compositor::get_effect(), blender::string_search::get_fuzzy_match_errors(), blender::bke::id_hash::get_id_shallow_hash(), blender::GPU_vertformat_safe_attr_name(), blender::IDP_NewString(), blender::infix_to_name(), blender::ed::asset::index::init_indexer_entry_from_value(), blender::ui::item_name_add_colon(), blender::ui::item_name_add_colon(), blender::bke::greasepencil::LayerMask::LayerMask(), blender::legacy_socket_move_to_interface(), blender::ui::Layout::link(), blender::bke::node_interface::make_panel(), blender::bke::node_interface::make_socket(), blender::string_search::match_word_initials(), blender::bke::mesh_ensure_default_color_attribute_on_add(), blender::io::obj::MTLParser::MTLParser(), blender::ed::object::object_curves_empty_hair_add_exec(), blender::ed::object::bake_simulation::PathStringEquality::operator()(), blender::ed::object::bake_simulation::PathStringHash::operator()(), blender::gpu::PruningStream::operator<<(), blender::operator<<(), blender::ui::MarkdownLayouter::output_wrapped_text(), blender::ui::panel_drawname_set(), blender::io::obj::parse_keyword(), blender::io::ply::parse_keyword(), blender::deg::RootPChanMap::print_debug(), blender::ed::sculpt_paint::greasepencil::process_stroke_weights(), blender::pyrna_struct_getattro(), blender::io::alembic::read_mesh_sample(), blender::asset_system::remote_library_cache_directory_path_from_url(), blender::asset_system::utils::resolve_directory_path(), blender::bke::greasepencil::Layer::set_parent_bone_name(), blender::io::usd::set_string_prop(), blender::bke::greasepencil::Layer::set_view_layer_name(), blender::ui::AbstractViewItem::should_be_filtered_visible(), blender::side_region_search_for_context(), blender::gpu::spirv_inject_op_string(), blender::ed::spreadsheet::spreadsheet_bundle_path_init_from(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw_header(), blender::store_property_snapshot(), blender::nodes::node_fn_find_in_string_cc::string_find(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), StringRefBase(), blender::ed::curves::surface_set::surface_set_exec(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::bke::greasepencil::tests::TEST_F(), blender::ui::text_shorten_next_template_var(), blender::ui::textbox_ensure_state(), blender::ui::textbox_jump_line(), blender::ui::textbox_textedit_set_cursor_pos(), blender::ui::textedit_move(), blender::ed::object::time_modifier_segment_add_exec(), blender::ui::tooltip_with_period(), blender::ui::MarkdownLayouter::track_code_text_bounds(), blender::transfer_active_color_string(), blender::transfer_default_color_string(), blender::bke::greasepencil::TreeNode::TreeNode(), blender::nodes::FileOutputItemsAccessor::validate_name(), blender::versioning_fix_socket_subtype_idnames(), blender::WM_msg_publish_remote_io(), blender::WM_msg_subscribe_remote_io(), blender::io::obj::OBJWriter::write_mtllib_name(), blender::write_rna_defaults(), and blender::write_sdna_verify().
|
constexpr |
Definition at line 238 of file BLI_string_ref.hh.
Referenced by blender::bke::path_templates::VariableMap::add_path_up_to_file(), blender::ed::asset::index::blender_version_from_string(), blender::BLI_string_split_name_number(), blender::io::drop_whitespace(), blender::nodes::node_fn_format_string_cc::FormatInputsLookup::find_next_input_index(), blender::bke::FileHandlerType::get_default_filename(), blender::string_search::get_fuzzy_match_errors(), blender::io::obj::MTLParser::parse_and_store(), blender::io::parse_float(), blender::io::parse_int(), blender::gpu::GPUSource::print_error(), blender::io::read_next_line(), blender::gpu::GPULogParser::source_line_get(), blender::ui::textbox_wrap_lines(), blender::ui::textedit_move(), and blender::dna::tokenize_dna_header().
|
constexpr |
Return true when the string ends with the given suffix.
Definition at line 285 of file BLI_string_ref.hh.
Referenced by blender::eevee::Cryptomatte::begin_sync(), blender::blo_do_versions_404(), blender::blo_do_versions_503(), blender::create_mirrored_name(), blender::deg::data_path_maybe_shared(), blender::blender::StringRef::drop_known_suffix(), blender::gpu::Shader::dump_source_to_disk(), blender::exr_channels_in_multi_part_file(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_manifest(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_names(), blender::bke::bake::find_sorted_meta_files(), blender::animrig::get_rotation_mode_from_path(), blender::IMB_colormanagement_space_to_icc_profile(), blender::asset_system::is_online_essentials_dirpath(), blender::is_texture_cache_filename(), blender::ocio::LibOCIODisplay::LibOCIODisplay(), blender::asset_system::AssetRepresentation::library_relative_identifier(), blender::gpu::match_renderer(), blender::ocio::LibOCIOView::max_nits(), blender::nodes::node_fn_match_string_cc::node_build_multi_function(), blender::gpu::Shader::print_log(), blender::asset_system::remote_library_url_ends_with_top_meta_file_name(), blender::tests::TEST(), blender::ui::textbox_wrap_lines(), and blender::version_mesh_crease_generic().
The behavior of those functions matches the standard library implementation of std::string_view.
Definition at line 339 of file BLI_string_ref.hh.
References blender::BLI_assert(), and blender::blender::index_or_npos_to_int64().
Referenced by blender::gpu::GPUSource::add_function(), blender::gpu::GPULogParser::at_any(), blender::ui::button_tip_len_only_first_line(), blender::colormanage_find_matching_view_name(), blender::animrig::default_channel_group_for_path(), blender::driver_target_path_fix(), blender::gpu::Shader::dump_source_to_disk(), blender::gpu::GPULogParser::filename_get(), blender::nodes::node_fn_format_string_cc::format_strings(), blender::gpu::VKShader::fragment_interface_declare(), blender::nodes::StringPattern::from_str(), blender::io::obj::geom_update_group(), blender::string_search::get_fuzzy_match_errors(), blender::gpu::tests::gpu_shader_lib_test(), blender::gpu::GPU_vulkan_is_supported_driver(), blender::gpu::GPUSource::GPUSource(), blender::ui::icon_source_edit_cb(), blender::ocio::interop_id_drop_namespace(), blender::gpu::match_renderer(), blender::ocio::LibOCIOView::max_nits(), blender::locale::MessageKey::MessageKey(), blender::nodes::node_fn_match_string_cc::node_build_multi_function(), blender::nodes::node_fn_trim_string_cc::node_build_multi_function(), blender::gpu::GPUSource::print_error(), blender::gpu::tests::print_test_line(), blender::gpu::shader::ShaderCreateInfo::push_constant(), blender::rna_path_rename_fix(), blender::gpu::Shader::run_preprocessor(), blender::nodes::node_fn_split_string_cc::split_string(), blender::ocio::split_view_specific_look(), blender::nodes::node_fn_find_in_string_cc::string_count(), blender::nodes::node_fn_find_in_string_cc::string_find(), blender::ui::svg_replace_color_attributes(), blender::nodes::tag_filter_matches(), blender::ui::tooltip_with_period(), blender::version_geometry_nodes_properties(), and blender::view_filter_for_look().
Definition at line 345 of file BLI_string_ref.hh.
References blender::BLI_assert(), blender::blender::index_or_npos_to_int64(), and str.
|
constexpr |
Definition at line 393 of file BLI_string_ref.hh.
References blender::BLI_assert(), and blender::blender::index_or_npos_to_int64().
|
constexpr |
Definition at line 387 of file BLI_string_ref.hh.
References blender::BLI_assert(), and blender::blender::index_or_npos_to_int64().
Referenced by blender::ui::colorspaces_menu_draw(), blender::parse_format_specifier(), blender::bke::cryptomatte::manifest::skip_whitespaces_(), trim(), and trim_left().
Definition at line 369 of file BLI_string_ref.hh.
References blender::BLI_assert(), and blender::blender::index_or_npos_to_int64().
|
constexpr |
Definition at line 363 of file BLI_string_ref.hh.
References blender::BLI_assert(), and blender::blender::index_or_npos_to_int64().
Referenced by blender::gpu::shader::ResourceString::array_offset(), blender::BKE_path_contains_template_syntax(), blender::ui::colorspaces_menu_draw(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_hash(), blender::ed::geometry::find_tree_node(), blender::nodes::BundleKey::is_valid_key(), blender::ui::MarkdownLayouter::md_text_code(), blender::asset_system::AssetLibraryService::normalize_asset_weak_reference_relative_asset_identifier(), blender::asset_system::AssetCatalogDefinitionFile::parse_catalog_line(), blender::parse_format_specifier(), blender::ed::asset::index::FileStatusChecker::remote_file_status(), blender::nodes::Bundle::split_path(), blender::tests::TEST(), blender::tests::TEST(), and blender::ed::geometry::tree_add_type().
|
constexpr |
Definition at line 405 of file BLI_string_ref.hh.
References blender::BLI_assert(), and blender::blender::index_or_npos_to_int64().
|
constexpr |
Definition at line 399 of file BLI_string_ref.hh.
References blender::BLI_assert(), and blender::blender::index_or_npos_to_int64().
Referenced by trim(), and trim_right().
|
constexpr |
Definition at line 381 of file BLI_string_ref.hh.
References blender::BLI_assert(), and blender::blender::index_or_npos_to_int64().
|
constexpr |
Definition at line 375 of file BLI_string_ref.hh.
References blender::BLI_assert(), and blender::blender::index_or_npos_to_int64().
Referenced by blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_hash(), blender::ui::MarkdownLayouter::output_wrapped_text(), and blender::parse_format_specifier().
|
constexpr |
Get the first char in the string. This invokes undefined behavior when the string is empty.
Definition at line 315 of file BLI_string_ref.hh.
References blender::BLI_assert(), data_, and size_.
Referenced by blender::bke::cryptomatte::manifest::from_manifest().
|
constexpr |
Definition at line 243 of file BLI_string_ref.hh.
References blender::IndexRange::IndexRange(), and size_.
|
constexpr |
Definition at line 201 of file BLI_string_ref.hh.
References size_.
Referenced by blender::animrig::legacy::action_fcurves_remove(), blender::bke::MutableAttributeAccessor::add(), blender::ui::BasicTreeViewItem::add_label(), blender::bke::MutableAttributeAccessor::add_override(), blender::bke::path_templates::VariableMap::add_path_up_to_file(), blender::eevee::add_pipeline_create_info(), blender::armature_duplicate_selected(), blender::asset_system::PreferencesRemoteAssetLibrary::auth_token(), blender::BKE_attribute_calc_unique_name(), blender::BKE_attribute_remove(), blender::BKE_attribute_rename(), blender::BKE_blender_project_init(), blender::BKE_defgroup_listbase_name_find(), blender::BKE_defgroup_name_index(), blender::BKE_main_namemap_remove_id(), blender::BKE_object_defgroup_find_name(), blender::BKE_paint_brush_type_default_reference(), blender::ui::block_view_find_matching_in_old_block_impl(), blender::ui::block_view_persistent_state_restore(), blender::BLT_is_default_context(), blender::BM_attribute_stored_in_bmesh_builtin(), blender::BPY_run_string_exec_with_locals_return_idprop(), blender::ed::spreadsheet::GreasePencilLayerViewItem::build_row(), blender::ed::spreadsheet::InstanceReferenceViewItem::build_row(), blender::ui::but_event_property_operator_string(), blender::ui::but_paste_menu(), blender::ui::button_placeholder_set(), blender::ui::button_string_get_tooltip(), blender::calculate_selection_fcurve_bounds(), blender::nodes::node_fn_separate_transform_cc::SeparateTransformFunction::call(), blender::gpu::shader::ShaderCreateInfo::check_error(), blender::ocio::cleanup_description(), blender::colormanage_check_display_settings(), blender::colormanage_check_view_settings(), blender::colormanage_compatible_look(), blender::colormanage_config_candidates_get(), blender::ui::colorramp_disabled_tip_func(), blender::io::usd::colorspace_from_image_texture(), blender::io::usd::colorspace_scene_linear_interop_id(), blender::ui::colorspaces_menu_draw(), blender::gpu::ShaderCompiler::compile(), blender::dna::TokenStream::consume_expression(), blender::io::usd::USDMaterialReader::convert_usd_primvar_reader_float2(), blender::io::usd::USDMaterialReader::convert_usd_transform_2d(), blender::io::usd::USDMaterialReader::convert_usd_uv_texture(), blender::copy_dupli_context(), blender::ed::asset::shelf::create_asset_operator_params(), blender::io::obj::create_geometry(), blender::ocio::create_ocio_display_processor(), blender::nodes::create_outputs_srna(), blender::bke::create_toml_from_blender_project(), blender::customData_add_layer__internal(), blender::customdata_external_filename(), blender::date_string::datetime(), blender::DNA_sdna_patch_struct_member(), blender::nodes::draw_bake_data_block_list_item(), blender::nodes::draw_common_bake_settings(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell_value(), blender::ui::draw_preview_item_stateless(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_top_row_cell(), blender::ED_armature_bone_rename(), blender::ED_mesh_uv_add(), blender::nodes::GeoNodeExecParams::ensure_absolute_path(), blender::draw::CurvesEvalCache::ensure_attributes(), blender::draw::CurvesEvalCache::ensure_attributes(), blender::exr_channels_in_multi_part_file(), blender::draw::extract_edituv_stretch_angle_subdiv(), blender::draw::extract_tan_init_common(), blender::animrig::Channelbag::fcurve_create_many(), blender::animrig::fcurve_matches_collection_path(), blender::filelist_readjob_all_asset_library(), blender::filelist_remote_asset_library_refresh_online_assets_status(), blender::gpu::shader::ShaderCreateInfo::finalize(), blender::nodes::node_fn_format_string_cc::FormatInputsLookup::find_next_input_index(), blender::ed::geometry::find_tree_node(), blender::io::usd::USDMaterialReader::follow_connection(), blender::nodes::node_fn_format_string_cc::format_strings(), blender::gpu::GLShader::fragment_interface_declare(), blender::gpu::VKShader::fragment_interface_declare(), blender::bke::cryptomatte::manifest::from_manifest(), blender::ParsedRNAPath< N >::from_string(), blender::io::ply::generate_vertex_map(), blender::gpu::generate_vertex_out(), blender::animrig::generic_slot_for_autoassign(), blender::gpu::GLShader::geometry_interface_declare(), blender::asset_system::AssetLibraryService::get_asset_library(), blender::bke::FileHandlerType::get_default_filename(), blender::ed::geometry::get_input_socket_struct_rna(), blender::get_item_transform_flags_and_fcurves(), blender::io::usd::NodePlacementContext::get_key(), blender::get_uv_attribute(), blender::io::alembic::get_uv_sample(), blender::gpu::shader::gpu_shader_dependency_get_builtins(), blender::gpu::shader::gpu_shader_dependency_get_shared_variables(), blender::nodes::node_shader_math_cc::gpu_shader_get_name(), blender::GPU_shader_preprocess_source(), blender::ui::Layout::image(), blender::IMB_colormanagement_space_from_cicp(), blender::IMB_colormanagement_space_to_cicp(), blender::IMB_colormanagement_space_to_icc_profile(), blender::IMB_colormanagement_validate_settings(), blender::imb_colormanagement_working_space_set_from_matrix(), blender::IMB_exr_write_pass(), blender::imb_icc_profile_from_filepath(), blender::io::csv::import_csv_as_pointcloud(), blender::gpu::VKShader::init(), blender::gpu::tests::ShaderSpecializationConst::init_shader(), blender::init_structDNA(), blender::is_colorspace_same_as_display(), blender::asset_system::is_online_essentials_dirpath(), blender::asset_system::is_online_essentials_url(), blender::nodes::BundleKey::is_valid_key(), blender::dna::is_valid_member_name(), blender::dna::is_valid_type_name(), blender::gpu::shader::is_vulkan_compatible_interface(), blender::ui::item_array(), blender::ui::item_menu(), blender::ui::item_rna_size(), blender::ui::item_with_label(), blender::ocio::LibOCIODisplay::LibOCIODisplay(), blender::ui::Layout::link(), blender::io::ply::load_plydata(), blender::asset_system::AssetLibraryService::lookup_on_disk_library(), blender::bke::node_interface::make_panel(), blender::io::usd::make_safe_identifier(), blender::bke::node_interface::make_socket(), blender::ui::MarkdownLayouter::md_text_code(), blender::draw::mesh_cd_calc_active_mask_uv_layer(), blender::draw::mesh_cd_calc_active_uv_layer(), blender::draw::mesh_cd_calc_used_gpu_layers(), blender::bke::mesh_ensure_active_uv_map(), blender::bke::mesh_ensure_default_uv_map(), blender::draw::mesh_extract_uv_format_init(), blender::workbench::mesh_has_color_attribute(), blender::mesh_to_bm_copy_info_calc(), blender::ed::space_node::node_find_update_fn(), blender::nodes::node_geo_separate_components_cc::node_geo_exec(), blender::nodes::node_geo_transfer_attributes_cc::node_geo_exec(), blender::ed::object::object_curves_empty_hair_add_exec(), blender::openexr_header_metadata_colorspace(), blender::bke::GeometrySet::operator<<, blender::ed::outliner::outliner_draw_get_warning_tree_element(), blender::ed::outliner::outliner_draw_get_warning_tree_element_subtree(), blender::ed::outliner::outliner_draw_overrides_rna_buts(), blender::ed::outliner::outliner_draw_warning_column(), blender::ui::MarkdownLayouter::output_wrapped_text(), blender::paint_brush_set_default_reference(), blender::io::obj::MTLParser::parse_and_store(), blender::asset_system::AssetCatalogDefinitionFile::parse_catalog_file(), blender::parse_format_specifier(), blender::pchan_duplicate_map(), blender::pgettext(), blender::ui::Layout::popover(), blender::ui::popup_block_template_confirm_op(), blender::ui::popup_menu_create_block(), blender::gpu::print_interface(), blender::print_interface(), blender::bke::project_variables_to_toml(), blender::ui::Layout::prop(), blender::ui::Layout::prop_enum(), blender::pyrna_struct_getattro(), blender::RE_bake_pixels_populate(), blender::RE_generate_texturemargin_adjacentfaces(), blender::io::alembic::read_active_and_default_color_attributes(), blender::nodes::node_fn_replace_string_cc::replace_all(), blender::bke::bake::resolve_bake_directory(), blender::asset_system::utils::resolve_directory_path(), blender::rna_auto_types(), blender::rna_def_function_funcs(), blender::rna_def_property_begin_func(), blender::rna_def_property_boolean_sdna(), blender::RNA_def_property_float_sdna(), blender::rna_def_property_funcs(), blender::rna_def_property_get_func(), blender::RNA_def_property_int_sdna(), blender::rna_def_property_length_func(), blender::rna_def_property_lookup_string_func(), blender::rna_def_property_sdna(), blender::rna_def_property_set_func(), blender::RNA_def_struct_ptr(), blender::RNA_def_struct_sdna_from(), blender::rna_find_sdna_member(), blender::RNA_generate_keys_for_path_rename(), blender::rna_generate_static_parameter_prototypes(), blender::rna_path_from_ptr_to_property_index_ex(), blender::rna_prepend_real_ID_path(), blender::rna_preprocess(), blender::rna_print_data_get(), blender::rna_set_raw_property(), blender::rna_write_struct_forward_declarations(), blender::draw::sculpt_batches_get(), blender::bke::bake::serialize_geometry_set(), blender::bke::BlenderProject::set_name(), blender::bke::greasepencil::Layer::set_parent_bone_name(), blender::bke::BlenderProject::set_root_path(), blender::bke::greasepencil::Layer::set_view_layer_name(), blender::animrig::Action::slot_add_for_id(), blender::nodes::Bundle::split_path(), blender::nodes::node_fn_split_string_cc::split_string(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw_header(), blender::ed::space_node::std_node_socket_draw(), blender::io::obj::OBJMesh::store_uv_coords_and_indices(), blender::nodes::node_fn_find_in_string_cc::string_count(), blender::nodes::node_fn_find_in_string_cc::string_find(), blender::ed::curves::surface_set::surface_set_exec(), blender::nodes::tag_filter_matches(), blender::ui::template_asset_shelf_popover(), blender::ui::template_filepath_split_name_buttons(), blender::io::TEST(), blender::io::TEST(), blender::ui::text_icon_width_ex(), blender::ui::Layout::textbox_with_state(), blender::ui::textbox_wrap_lines(), blender::ui::tooltip_with_period(), blender::ed::geometry::tree_add_type(), blender::ui::uiItem_simple(), blender::ui::uilist_item_tooltip_func(), blender::unique_layer_group_name(), blender::unique_layer_name(), blender::bke::AttributeStorage::unique_name_calc(), blender::nodes::materialx::NodeGraph::unique_node_name(), blender::unique_node_name(), blender::bke::pbvh::pixels::update_pixels(), blender::nodes::CombineBundleItemsAccessor::validate_name(), blender::nodes::socket_items::variable_name_find_short(), blender::nodes::socket_items::variable_name_validate(), blender::fn::multi_function::ProcedureDotExport::variable_to_string(), blender::version_node_socket_id_delim(), blender::gpu::GLShader::vertex_interface_declare(), blender::gpu::VKShader::vertex_interface_declare(), blender::view_filter_for_look(), blender::ed::asset::visit_library_catalogs_catalog_for_search(), blender::wm_drag_draw_tooltip(), blender::WM_gizmogrouptype_find(), blender::WM_gizmotype_find(), blender::WM_menutype_find(), blender::WM_operator_name_call_ptr_with_depends_on_cursor(), blender::WM_paneltype_find(), blender::WM_project_splash_image_load(), blender::WM_uilisttype_find(), and blender::io::obj::OBJWriter::write_vertex_coords().
|
constexpr |
Definition at line 214 of file BLI_string_ref.hh.
|
inline |
Implicitly convert to std::string. This is convenient in most cases, but you have to be a bit careful not to convert to std::string accidentally.
Definition at line 223 of file BLI_string_ref.hh.
|
constexpr |
Definition at line 228 of file BLI_string_ref.hh.
Definition at line 351 of file BLI_string_ref.hh.
References blender::BLI_assert(), and blender::blender::index_or_npos_to_int64().
Referenced by blender::BLI_string_split_name_number(), blender::gpu::GPULogParser::filename_get(), blender::io::usd::USDMaterialReader::follow_connection(), blender::asset_system::AssetCatalogPath::name(), blender::gpu::GPUSource::print_error(), blender::gpu::tests::print_test_line(), blender::asset_system::AssetLibraryService::rfind_blendfile_extension(), blender::gpu::GPULogParser::source_line_get(), and blender::nodes::node_fn_find_in_string_cc::string_find().
|
constexpr |
Definition at line 357 of file BLI_string_ref.hh.
References blender::BLI_assert(), blender::blender::index_or_npos_to_int64(), and str.
|
constexpr |
Return the (byte-)length of the referenced string, without any null-terminator.
Definition at line 196 of file BLI_string_ref.hh.
References size_.
Referenced by blender::gpu::shader::ShaderCreateInfo::acceleration_structure(), blender::UniqueName_Map::add_name(), blender::bke::path_templates::VariableMap::add_path_up_to_file(), blender::animpath_update_basepath(), blender::ui::MarkdownLayouter::append_pending_list_marker(), blender::apply_renames(), blender::bke::asset_blendfile_path_for_save(), blender::ui::autocomplete_update_name(), blender::bke::cryptomatte::BKE_cryptomatte_extract_layer_name(), blender::BKE_main_global_namemap_contain_name(), blender::BKE_main_namemap_contain_name(), blender::BKE_panel_layout_panel_state_ensure(), blender::BKE_path_template_escape(), blender::BKE_preferences_remote_asset_library_auth_token_set(), blender::BKE_uv_map_pin_name_get(), blender::BLI_str_escape(), blender::BLI_string_replace(), blender::BLI_string_split_name_number(), blender::ui::block_add_view_impl(), blender::gpu::VKShaderModule::build_sources_hash(), blender::ui::button_placeholder_set(), blender::ui::button_tip_len_only_first_line(), calc_node_transforms(), blender::calculate_circle_best_fit(), calculatePrincipalAxisTransform(), blender::gpu::shader::ShaderCreateInfo::compilation_constant(), blender::dna::TokenStream::consume_expression(), blender::copy_attr_name(), blender::gpu::ShaderInterface::copy_input_name(), blender::ui::create_link_buttons_for_label(), blender::cryptomatte_determine_identifier(), blender::string_search::damerau_levenshtein_distance(), blender::bke::ProjectVariable::description_set(), blender::dna_member_id_length(), blender::DNA_member_id_match(), blender::DNA_member_id_offset_start(), blender::DNA_member_id_rename(), blender::draw_performance_stats(), blender::ui::draw_preview_item_stateless(), blender::nodes::draw_property_for_socket(), blender::driver_target_path_fix(), blender::blender::StringRef::drop_known_prefix(), blender::blender::StringRef::drop_known_suffix(), blender::drw_text_cache_draw_ex(), blender::gpu::Shader::dump_source_to_disk(), blender::ED_region_overlay_info_text_draw(), blender::elem_streq(), blender::animrig::fcurve_matches_collection_path(), blender::fileentry_uiname(), blender::gpu::GPULogParser::filename_get(), blender::nodes::node_fn_format_string_cc::FormatInputsLookup::find_next_input_index(), blender::nodes::StringPattern::from_str(), blender::string_search::get_best_word_index_that_startswith(), blender::string_search::get_fuzzy_match_errors(), blender::bke::id_hash::get_id_shallow_hash(), blender::GPU_vertformat_safe_attr_name(), blender::ui::icon_source_edit_cb(), blender::id_name_final_build(), blender::animrig::Slot::identifier_prefix(), blender::IDP_NewString(), blender::gpu::shader::ShaderCreateInfo::image(), blender::IMB_exr_write_pass(), blender::infix_to_name(), blender::asset_system::AssetCatalogTree::insert_item(), blender::asset_system::is_online_essentials_url(), blender::is_texture_cache_filename(), blender::ui::item_name_add_colon(), blender::ui::item_name_add_colon(), blender::bke::greasepencil::LayerMask::LayerMask(), blender::bke::node_interface::make_panel(), blender::io::usd::make_safe_identifier(), blender::bke::node_interface::make_socket(), blender::string_search::match_word_initials(), blender::bke::mesh_ensure_default_color_attribute_on_add(), blender::next_token(), blender::ed::object::object_curves_empty_hair_add_exec(), blender::ed::object::bake_simulation::PathStringHash::operator()(), blender::gpu::PruningStream::operator<<(), blender::operator<<(), blender::ui::MarkdownLayouter::output_wrapped_text(), blender::ui::panel_drawname_set(), blender::parse_format_specifier(), blender::io::obj::parse_keyword(), blender::io::ply::parse_keyword(), blender::parse_template(), blender::bke::node_interface::item_types::pixel_subtype_forward_compat(), blender::gpu::shader::ShaderCreateInfo::push_constant(), blender::pyrna_struct_getattro(), blender::bke::cryptomatte::manifest::quoted_string_len_(), blender::asset_system::remote_library_cache_directory_path_from_url(), blender::asset_system::remote_library_url_ends_with_top_meta_file_name(), blender::UniqueName_Map::remove_full_name(), blender::bke::bake::resolve_bake_directory(), blender::asset_system::utils::resolve_directory_path(), blender::asset_system::utils::resolve_path(), blender::gpu::shader::ResourceString::ResourceString(), blender::rna_path_rename_fix(), blender::gpu::shader::ShaderCreateInfo::sampler(), blender::ed::curves::selection_attribute_writer_by_name(), blender::io::usd::set_id_props_from_prim(), blender::bke::greasepencil::Layer::set_parent_bone_name(), blender::io::otio::set_property(), blender::io::usd::set_string_prop(), blender::bke::greasepencil::Layer::set_view_layer_name(), blender::gpu::GPULogParser::source_line_get(), blender::gpu::shader::ShaderCreateInfo::specialization_constant(), blender::gpu::spirv_inject_op_string(), blender::nodes::node_fn_split_string_cc::split_string(), blender::ed::spreadsheet::spreadsheet_bundle_path_init_from(), blender::gpu::shader::ShaderCreateInfo::storage_buf(), blender::nodes::node_fn_find_in_string_cc::string_count(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), blender::blender::StringRef::StringRef(), StringRefBase(), blender::blender::StringRefNull::StringRefNull(), blender::blender::StringRefNull::StringRefNull(), blender::StringRefNull::StringRefNull(), blender::ed::curves::surface_set::surface_set_exec(), blender::ui::svg_replace_color_attributes(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::ui::text_clip_middle_ex(), blender::ui::text_clip_right_ex(), blender::ui::text_shorten_next_template_var(), blender::ui::textbox_ensure_state(), blender::ui::textbox_jump_line(), blender::ui::textbox_textedit_set_cursor_pos(), blender::ui::textedit_move(), blender::ui::tooltip_color_field_add(), blender::ui::tooltip_color_string(), blender::ui::tooltip_data_from_button_or_extra_icon(), blender::ui::tooltip_with_period(), blender::ui::MarkdownLayouter::track_code_text_bounds(), blender::transfer_active_color_string(), blender::transfer_default_color_string(), blender::bke::greasepencil::TreeNode::TreeNode(), blender::gpu::shader::ShaderCreateInfo::uniform_buf(), blender::version_node_socket_id_delim(), blender::gpu::shader::ShaderCreateInfo::vertex_in(), blender::ui::widget_draw_multiline_text(), blender::ui::widget_draw_textbox(), blender::WM_msg_publish_remote_io(), blender::WM_msg_subscribe_remote_io(), blender::write_rna_defaults(), and blender::write_sdna_verify().
|
constexpr |
Return true when the string starts with the given prefix.
Definition at line 269 of file BLI_string_ref.hh.
Referenced by blender::bke::allow_procedural_attribute_access(), blender::animpath_matches_basepath(), blender::bke::attribute_name_is_anonymous(), blender::ui::but_event_property_operator_string(), blender::colormanage_check_display_settings(), blender::colormanage_find_matching_view_name(), blender::colormanage_project_config_path_resolve(), blender::ui::colorspaces_menu_draw(), blender::dna::TokenStream::consume_expression(), blender::CustomData_name_maxncpy_calc(), blender::deg::data_path_maybe_shared(), blender::DNA_member_id_match(), blender::blender::StringRef::drop_known_prefix(), blender::gpu::Shader::dump_source_to_disk(), blender::exr_channels_in_multi_part_file(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_hash(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_manifest(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_names(), blender::io::usd::USDMaterialReader::follow_connection(), blender::io::obj::geom_update_smooth_group(), blender::string_search::get_best_word_index_that_startswith(), blender::animrig::get_rotation_mode_from_path(), blender::bke::compare_geometry::ignored_attribute(), blender::io::ply::is_builtin_gsplat_attribute(), blender::asset_system::AssetCatalogPath::is_contained_in(), blender::is_texture_cache_filename(), blender::dna::is_valid_member_name(), blender::keymap_update_brushes_handle_add_item(), blender::ocio::LibOCIODisplay::LibOCIODisplay(), blender::nodes::node_fn_match_string_cc::node_build_multi_function(), blender::nodes::node_geo_get_attribute_names_cc::node_geo_exec(), blender::nodes::node_geo_rename_attribute_cc::node_geo_exec(), blender::nodes::node_geo_transfer_attributes_cc::node_geo_exec(), blender::ed::space_node::node_get_extra_info(), blender::io::obj::parse_texture_map(), blender::io::obj::parse_texture_option(), blender::asset_system::AssetCatalogDefinitionFile::parse_version_line(), blender::rna_find_sdna_member(), blender::bke::bake::BakeToRuntimeValue::scan(), blender::tests::TEST(), blender::ui::tooltip_data_from_button_or_extra_icon(), blender::bke::cryptomatte::tests::validate_cryptomatte_session_from_stamp_data(), blender::version_node_socket_id_delim(), blender::bke::bake::DiskBlobWriter::write_as_stream(), and blender::bke::bake::MemoryBlobWriter::write_as_stream().
|
constexpr |
Return a new StringRef containing only a sub-string of the original string. This invokes undefined if the start or max_size is negative.
Definition at line 303 of file BLI_string_ref.hh.
References blender::BLI_assert(), data_, INT64_MAX, size_, and blender::StringRef::StringRef().
Referenced by blender::bke::cryptomatte::BKE_cryptomatte_extract_layer_name(), blender::BKE_path_template_error_to_string(), blender::BLI_string_split_name_number(), blender::colormanage_find_matching_view_name(), blender::ui::colorspaces_menu_draw(), blender::copy_attr_name(), blender::ocio::GPUShaderBinder::create_gpu_shader(), blender::DNA_member_id_string_ref(), blender::nodes::node_geo_viewer_cc::draw_string(), blender::gpu::Shader::dump_source_to_disk(), blender::eval_template(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_hash(), blender::string_search::extract_normalized_words(), blender::gpu::GPULogParser::filename_get(), blender::ed::geometry::find_tree_node(), blender::nodes::node_fn_format_string_cc::format_strings(), blender::bke::cryptomatte::manifest::from_manifest(), blender::nodes::StringPattern::from_str(), blender::animrig::generic_slot_for_autoassign(), blender::animrig::Slot::identifier_prefix(), blender::ed::asset::index::init_indexer_entry_from_value(), blender::ui::MarkdownLayouter::md_text_code(), blender::locale::MessageKey::MessageKey(), blender::next_token(), blender::nodes::node_geo_rename_attribute_cc::node_geo_exec(), blender::ui::MarkdownLayouter::output_wrapped_text(), blender::asset_system::AssetCatalogDefinitionFile::parse_catalog_line(), blender::parse_format_specifier(), blender::asset_system::AssetCatalogDefinitionFile::parse_version_line(), blender::gpu::GPUSource::print_error(), blender::gpu::Shader::print_log(), blender::gpu::tests::print_test_line(), blender::asset_system::AssetCatalogPath::rebase(), blender::nodes::refresh_node_sockets_animation_inout(), blender::ed::asset::index::FileStatusChecker::remote_file_status(), blender::asset_system::AssetLibraryService::resolve_asset_weak_reference_to_exploded_path(), blender::asset_system::utils::resolve_path(), blender::rna_path_rename_fix(), blender::io::usd::set_id_props_from_prim(), blender::gpu::GPULogParser::source_line_get(), blender::nodes::Bundle::split_path(), blender::nodes::node_fn_split_string_cc::split_string(), blender::ocio::split_view_specific_look(), blender::gpu::shader::ResourceString::str_only_array(), blender::nodes::tag_filter_matches(), blender::tests::TEST(), blender::asset_system::tests::TEST_F(), blender::ui::textbox_wrap_lines(), blender::ui::tooltip_data_from_button_or_extra_icon(), blender::ed::geometry::tree_add_type(), trim(), trim_left(), trim_right(), blender::unescape(), and blender::view_filter_for_look().
|
constexpr |
Return a new StringRef that does not contain leading and trailing white-space.
Definition at line 414 of file BLI_string_ref.hh.
References trim().
Referenced by blender::BKE_asset_metadata_catalog_id_set(), blender::BKE_preferences_remote_asset_library_auth_token_set(), blender::BKE_preferences_remote_asset_library_url_set(), blender::asset_system::AssetCatalogPath::cleanup_component(), blender::ocio::cleanup_description(), blender::nodes::BundleKey::is_valid_key(), blender::ui::label_multiline_wrap_lines(), blender::io::obj::MTLParser::parse_and_store(), blender::asset_system::AssetCatalogDefinitionFile::parse_catalog_file(), blender::asset_system::AssetCatalogDefinitionFile::parse_catalog_line(), blender::nodes::tag_filter_matches(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), trim(), and trim().
|
constexpr |
Return a new StringRef that does not contain leading and trailing character_to_remove characters.
Definition at line 423 of file BLI_string_ref.hh.
References blender::StringRef::StringRef(), and trim().
Return a new StringRef that removes all the leading and trailing characters that occur in characters_to_remove.
Definition at line 432 of file BLI_string_ref.hh.
References BLI_assert_msg, find_first_not_of(), find_last_not_of(), not_found, blender::StringRef::StringRef(), and substr().
|
constexpr |
Return a new StringRef that does not contain leading white-space.
Definition at line 451 of file BLI_string_ref.hh.
References trim_left().
Referenced by blender::tests::TEST(), blender::tests::TEST(), blender::ui::text_clip_middle_ex(), and trim_left().
|
constexpr |
Return a new StringRef that removes all the leading characters that occur in characters_to_remove.
Definition at line 460 of file BLI_string_ref.hh.
References find_first_not_of(), not_found, blender::StringRef::StringRef(), and substr().
|
constexpr |
Return a new StringRef that does not contain trailing white-space.
Definition at line 472 of file BLI_string_ref.hh.
References trim_right().
Referenced by blender::tests::TEST(), blender::tests::TEST(), blender::ui::text_clip_right_ex(), and trim_right().
|
constexpr |
Return a new StringRef that removes all the trailing characters that occur in characters_to_remove.
Definition at line 481 of file BLI_string_ref.hh.
References find_last_not_of(), not_found, blender::StringRef::StringRef(), and substr().
|
protected |
Definition at line 52 of file bmesh_polygon.hh.
Referenced by back(), begin(), blender::blender::StringRefNull::c_str(), copy_bytes_truncated(), copy_unsafe(), copy_utf8_truncated(), data(), blender::blender::StringRef::drop_prefix(), blender::blender::StringRef::drop_suffix(), end(), endswith(), front(), operator Span< char >(), operator std::string(), operator std::string_view(), blender::blender::StringRef::operator[](), blender::blender::StringRefNull::operator[](), startswith(), StringRefBase(), blender::blender::StringRefNull::StringRefNull(), and substr().
|
staticconstexpr |
Similar to #string_view::npos, but signed.
Definition at line 62 of file bmesh_polygon.hh.
Referenced by blender::string_search::StringSearchBase::add_impl(), blender::gpu::GPULogParser::at_any(), blender::ed::asset::index::blender_version_from_string(), blender::BLI_string_split_name_number(), blender::ui::button_edit_unit_hint_refresh(), blender::ui::button_tip_len_only_first_line(), blender::ui::colorspaces_menu_draw(), blender::io::otio::copy_number(), blender::animrig::default_channel_group_for_path(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_hash(), blender::ed::geometry::find_tree_node(), blender::nodes::node_fn_format_string_cc::format_strings(), blender::nodes::node_fn_format_string_cc::format_without_format_specifier(), blender::bke::bake::get_blend_file_name(), blender::string_search::get_fuzzy_match_errors(), blender::getname_anim_fcurve_for_slot(), blender::gpu::GPU_vulkan_is_supported_driver(), blender::index_or_npos_to_int64(), blender::ocio::interop_id_drop_namespace(), blender::nodes::BundleKey::is_valid_key(), blender::make(), blender::gpu::match_renderer(), blender::ocio::LibOCIOView::max_nits(), blender::ui::MarkdownLayouter::md_text_code(), blender::locale::MessageKey::MessageKey(), blender::new_project_name_update(), blender::nodes::node_fn_match_string_cc::node_build_multi_function(), blender::nodes::node_fn_trim_string_cc::node_build_multi_function(), blender::ed::space_node::node_find_update_fn(), blender::asset_system::AssetLibraryService::normalize_asset_weak_reference_relative_asset_identifier(), blender::ui::MarkdownLayouter::output_wrapped_text(), blender::asset_system::AssetCatalogDefinitionFile::parse_catalog_line(), blender::ui::popup_string_hash(), blender::ed::asset::index::FileStatusChecker::remote_file_status(), blender::asset_system::AssetLibraryService::resolve_asset_weak_reference_to_exploded_path(), blender::asset_system::utils::resolve_path(), blender::asset_system::AssetLibraryService::rfind_blendfile_extension(), blender::rna_split_namespace_struct_name(), blender::bke::cryptomatte::manifest::skip_whitespaces_(), blender::nodes::Bundle::split_path(), blender::nodes::node_fn_split_string_cc::split_string(), blender::nodes::node_fn_find_in_string_cc::string_count(), blender::ui::tooltip_with_period(), blender::ed::geometry::tree_add_type(), trim(), trim_left(), trim_right(), blender::csv_parse::unescape_field(), and blender::version_geometry_nodes_properties().
|
protected |
Definition at line 53 of file bmesh_polygon.hh.
Referenced by back(), copy_bytes_truncated(), copy_unsafe(), copy_utf8_truncated(), blender::blender::StringRef::drop_prefix(), blender::blender::StringRef::drop_suffix(), end(), endswith(), front(), index_range(), is_empty(), operator Span< char >(), operator std::string(), operator std::string_view(), blender::blender::StringRef::operator[](), blender::blender::StringRefNull::operator[](), size(), startswith(), StringRefBase(), blender::blender::StringRefNull::StringRefNull(), and substr().