|
Blender V5.3
|
#include <cstdarg>#include <cstdio>#include <algorithm>#include <cctype>#include "util/string.h"#include "util/types_float4.h"#include <locale.h>Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN string | string_printf (const char *format,...) |
| bool | string_iequals (const string &a, const string &b) |
| void | string_split (vector< string > &tokens, const string &str, const string &separators, bool skip_empty_tokens) |
| bool | string_startswith (const string_view s, const string_view start) |
| bool | string_endswith (const string_view s, const string_view end) |
| string | string_strip (const string &s) |
| void | string_replace (string &haystack, const string &needle, const string &other) |
| void | string_replace_same_length (string &haystack, const string &needle, const string &other) |
| string | string_remove_trademark (const string &s) |
| string | string_from_bool (bool var) |
| string | string_hex (const uint8_t *data, const size_t size) |
| string | to_string (const char *str) |
| string | to_string (const float2 &v) |
| string | to_string (const float4 &v) |
| string | string_to_lower (const string &s) |
| string | string_remove_gpu_from_cpu_name (const string &s) |
| static locale_t | utf8_locale_new () |
| wstring | string_to_wstring (const string &str) |
| string | string_from_wstring (const wstring &str) |
| string | string_human_readable_size (size_t size) |
| string | string_human_readable_number (size_t num) |
| bool string_endswith | ( | const string_view | s, |
| const string_view | end ) |
Definition at line 122 of file string.cpp.
References len(), and string_endswith().
Referenced by AttributeRequestSet::add_name_or_standard(), 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(), string_endswith(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| string string_from_bool | ( | bool | var | ) |
Definition at line 185 of file string.cpp.
References string_from_bool().
Referenced by RenderScheduler::full_report(), log_kernel_features(), operator<<(), and string_from_bool().
| string string_from_wstring | ( | const wstring & | str | ) |
Definition at line 286 of file string.cpp.
References state, str, string_from_wstring(), and utf8_locale_new().
Referenced by string_from_wstring().
| string string_hex | ( | const uint8_t * | data, |
| const size_t | size ) |
Definition at line 193 of file string.cpp.
References size(), string_hex(), and string_printf().
Referenced by string_hex().
| string string_human_readable_number | ( | size_t | num | ) |
Definition at line 352 of file string.cpp.
References string_human_readable_number().
Referenced by Scene::device_update(), TileManager::finish_write_tiles(), ImageStats::full_report(), NamedSizeStats::full_report(), GPUDevice::generic_alloc(), CPUDevice::global_alloc(), CPUDevice::image_alloc(), GPUDevice::init_host_memory(), CPUDevice::mem_alloc(), BVHBuild::run(), and string_human_readable_number().
| string string_human_readable_size | ( | size_t | size | ) |
Definition at line 333 of file string.cpp.
References size(), string_human_readable_size(), and string_printf().
Referenced by PathTraceWorkGPU::alloc_integrator_soa(), Scene::device_update(), ImageStats::full_report(), NamedSizeStats::full_report(), GPUDevice::generic_alloc(), CPUDevice::global_alloc(), CPUDevice::image_alloc(), GPUDevice::init_host_memory(), CPUDevice::mem_alloc(), DeviceQueue::num_concurrent_states(), and string_human_readable_size().
| bool string_iequals | ( | const string & | a, |
| const string & | b ) |
Definition at line 57 of file string.cpp.
References b, and string_iequals().
Referenced by ColorSpaceManager::colorspace_interop_id(), string_iequals(), TEST(), TEST(), TEST(), TEST(), xml_equal_string(), xml_read_scene(), and xml_read_shader_graph().
| CCL_NAMESPACE_BEGIN string string_printf | ( | const char * | format, |
| ... ) |
Definition at line 25 of file string.cpp.
References assert, str, and string_printf().
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(), datestring(), device_cuda_info(), device_hip_info(), GeometryManager::displace(), exr_channel_names_for_passes(), ImageStats::full_report(), 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(), ColorSpaceManager::get_xyz_to_scene_linear_rgb_string(), device_image::log_name(), make_tx(), 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(), string_printf(), BlenderSync::sync_render_passes(), TEST(), TEST(), TEST(), TEST(), time_human_readable_from_seconds(), to_string(), to_string(), unique_filename_tx(), Hair::update_shadow_transparency(), BlenderSession::update_status_progress(), Session::update_status_time(), OIIOOutputDriver::write_render_tile(), and write_stats_tx().
| string string_remove_gpu_from_cpu_name | ( | const string & | s | ) |
Definition at line 224 of file string.cpp.
References string_remove_gpu_from_cpu_name(), and string_strip().
Referenced by string_remove_gpu_from_cpu_name(), system_cpu_brand_string(), and TEST().
| string string_remove_trademark | ( | const string & | s | ) |
Definition at line 170 of file string.cpp.
References string_remove_trademark(), string_replace(), and string_strip().
Referenced by string_remove_trademark(), 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 147 of file string.cpp.
References index, and string_replace().
Referenced by ImageManager::add_image(), node_find_input_by_name(), node_find_output_by_name(), path_escape(), path_normalize(), string_remove_trademark(), string_replace(), TEST(), TEST(), TEST(), TEST(), and TEST().
| void string_replace_same_length | ( | string & | haystack, |
| const string & | needle, | ||
| const string & | other ) |
Definition at line 157 of file string.cpp.
References assert, and string_replace_same_length().
Referenced by string_replace_same_length().
| void string_split | ( | vector< string > & | tokens, |
| const string & | str, | ||
| const string & | separators, | ||
| bool | skip_empty_tokens ) |
Definition at line 72 of file string.cpp.
References str, and string_split().
Referenced by _log_message(), CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_connection(), string_split(), 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 | ( | const string_view | s, |
| const string_view | start ) |
Definition at line 106 of file string.cpp.
References len(), and string_startswith().
Referenced by get_known_pass_type(), line_directive(), node_find_input_by_name(), parse_channel_operation(), parse_channels(), string_startswith(), and TEST().
| string string_strip | ( | const string & | s | ) |
Definition at line 139 of file string.cpp.
References string_strip().
Referenced by path_source_handle_preprocessor(), string_remove_gpu_from_cpu_name(), string_remove_trademark(), string_strip(), TEST(), TEST(), TEST(), and TEST().
| string string_to_lower | ( | const string & | s | ) |
Definition at line 217 of file string.cpp.
References string_to_lower().
Referenced by BlenderViewportParameters::BlenderViewportParameters(), log_string_to_level(), scene_init(), and string_to_lower().
| wstring string_to_wstring | ( | const string & | str | ) |
Definition at line 261 of file string.cpp.
References state, str, string_to_wstring(), and utf8_locale_new().
Referenced by create_directories_recursively(), path_exists(), path_fopen(), and string_to_wstring().
| string to_string | ( | const char * | str | ) |
Definition at line 202 of file string.cpp.
References str, and to_string().
Referenced by bsl::SymbolScope::child_scope(), full_device_info_description(), RenderScheduler::full_report(), bsl::SymbolTable::mangle_identifier(), merge_channels_metadata(), TileManager::open_tile_output(), bsl::SourceLocation::operator string(), bsl::SymbolParser::parse_var_decl(), bsl::resource_type_from_attributes(), BlenderSession::stamp_view_layer_metadata(), bsl::SymbolClass::SymbolClass(), TileManager::TileManager(), to_string(), to_string(), to_string(), and OctreeNode::visualize().
| string to_string | ( | const float2 & | v | ) |
Definition at line 207 of file string.cpp.
References string_printf(), and to_string().
| string to_string | ( | const float4 & | v | ) |
Definition at line 212 of file string.cpp.
References string_printf(), and to_string().
|
static |
Definition at line 245 of file string.cpp.
References utf8_locale_new().
Referenced by string_from_wstring(), string_to_wstring(), and utf8_locale_new().