|
Blender V5.0
|
Go to the source code of this file.
Macros | |
| #define | PRINTF_ATTRIBUTE |
Functions | |
| string | string_printf (const char *format,...) PRINTF_ATTRIBUTE |
| bool | string_iequals (const string &a, const string &b) |
| void | string_split (vector< string > &tokens, const string &str, const string &separators="\t ", bool skip_empty_tokens=true) |
| void | string_replace (string &haystack, const string &needle, const string &other) |
| void | string_replace_same_length (string &haystack, const string &needle, const string &other) |
| bool | string_startswith (string_view s, string_view start) |
| bool | string_endswith (string_view s, string_view end) |
| string | string_strip (const string &s) |
| string | string_remove_trademark (const string &s) |
| string | string_from_bool (const bool var) |
| string | string_hex (const uint8_t *data, const size_t size) |
| string | to_string (const char *str) |
| string | to_string (const float4 &v) |
| string | string_to_lower (const string &s) |
| string | string_human_readable_size (const size_t size) |
| string | string_human_readable_number (const size_t num) |
| bool string_endswith | ( | string_view | s, |
| string_view | end ) |
Definition at line 120 of file string.cpp.
Referenced by AttributeNode::attributes(), EnvironmentTextureNode::attributes(), ImageTextureNode::attributes(), node_find_input_by_name(), node_find_output_by_name(), parse_channels(), path_read_compressed_binary(), scene_init(), set_device_override_func(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| string string_from_bool | ( | const bool | var | ) |
Definition at line 183 of file string.cpp.
Referenced by RenderScheduler::full_report(), log_kernel_features(), and operator<<().
| string string_hex | ( | const uint8_t * | data, |
| const size_t | size ) |
Definition at line 191 of file string.cpp.
References data, i, result, size(), and string_printf().
| string string_human_readable_number | ( | const size_t | num | ) |
Definition at line 276 of file string.cpp.
Referenced by Scene::device_update(), TileManager::finish_write_tiles(), NamedSizeStats::full_report(), GPUDevice::generic_alloc(), CPUDevice::global_alloc(), GPUDevice::init_host_memory(), CPUDevice::mem_alloc(), BVHBuild::run(), and CPUDevice::tex_alloc().
| string string_human_readable_size | ( | const size_t | size | ) |
Definition at line 257 of file string.cpp.
References size(), and string_printf().
Referenced by PathTraceWorkGPU::alloc_integrator_soa(), Scene::device_update(), NamedSizeStats::full_report(), GPUDevice::generic_alloc(), CPUDevice::global_alloc(), GPUDevice::init_host_memory(), CPUDevice::mem_alloc(), and CPUDevice::tex_alloc().
| bool string_iequals | ( | const string & | a, |
| const string & | b ) |
Definition at line 55 of file string.cpp.
Referenced by TEST(), TEST(), TEST(), TEST(), xml_equal_string(), xml_read_scene(), and xml_read_shader_graph().
| string string_printf | ( | const char * | format, |
| ... ) |
Definition at line 23 of file string.cpp.
References assert, result, and str.
Referenced by add_cryptomatte_layer(), ImageManager::add_image(), BlenderSession::bake(), buffer_params_from_image_spec_atttributes(), buffer_params_to_image_spec_atttributes(), Octree::build(), Geometry::compute_bvh(), GeometryManager::create_volume_mesh(), device_cuda_info(), device_hip_info(), GeometryManager::displace(), exr_channel_names_for_passes(), NamedNestedSampleStats::full_report(), NamedSampleCountStats::full_report(), NamedSizeStats::full_report(), NamedTimeStats::full_report(), RenderScheduler::full_report(), SVMCompiler::Summary::full_report(), TaskPool::Summary::full_report(), ObjectManager::get_cryptomatte_assets(), ShaderManager::get_cryptomatte_materials(), ObjectManager::get_cryptomatte_objects(), get_emitter_id(), get_knode_id(), get_node_id(), DenoiseImage::parse_channels(), parse_channels(), print_emitters(), BVHBuild::progress_update(), recursive_print_knode(), recursive_print_node(), DenoiseImage::save_output(), session_print_status(), string_hex(), string_human_readable_size(), BlenderSync::sync_render_passes(), TEST(), TEST(), TEST(), TEST(), time_human_readable_from_seconds(), to_string(), Hair::update_shadow_transparency(), BlenderSession::update_status_progress(), Session::update_status_time(), and OIIOOutputDriver::write_render_tile().
| string string_remove_trademark | ( | const string & | s | ) |
Definition at line 168 of file string.cpp.
References result, string_replace(), and string_strip().
Referenced by system_cpu_brand_string(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| void string_replace | ( | string & | haystack, |
| const string & | needle, | ||
| const string & | other ) |
Definition at line 145 of file string.cpp.
References i.
Referenced by ImageManager::add_image(), node_find_input_by_name(), node_find_output_by_name(), path_escape(), string_remove_trademark(), TEST(), TEST(), TEST(), TEST(), and TEST().
| void string_replace_same_length | ( | string & | haystack, |
| const string & | needle, | ||
| const string & | other ) |
Definition at line 155 of file string.cpp.
| void string_split | ( | vector< string > & | tokens, |
| const string & | str, | ||
| const string & | separators = "\t ", | ||
| bool | skip_empty_tokens = true ) |
Definition at line 70 of file string.cpp.
Referenced by _log_message(), CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_connection(), TEST(), TEST(), TEST(), TEST(), TEST(), time_human_readable_to_seconds(), xml_read_float_array(), xml_read_int_array(), and xml_read_shader_graph().
| bool string_startswith | ( | string_view | s, |
| string_view | start ) |
Definition at line 104 of file string.cpp.
Referenced by get_known_pass_type(), line_directive(), node_find_input_by_name(), parse_channel_operation(), parse_channels(), and TEST().
| string string_strip | ( | const string & | s | ) |
Definition at line 137 of file string.cpp.
References result.
Referenced by path_source_handle_preprocessor(), string_remove_trademark(), TEST(), TEST(), TEST(), and TEST().
| string string_to_lower | ( | const string & | s | ) |
Definition at line 210 of file string.cpp.
Referenced by BlenderViewportParameters::BlenderViewportParameters(), log_string_to_level(), and scene_init().
| string to_string | ( | const char * | str | ) |
Definition at line 200 of file string.cpp.
References str.
| string to_string | ( | const float4 & | v | ) |
Definition at line 205 of file string.cpp.
References string_printf(), and v.