|
Blender
V2.93
|
#include <stdarg.h>#include <stdio.h>#include "util/util_foreach.h"#include "util/util_string.h"#include "util/util_windows.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 &s, const char *start) |
| bool | string_endswith (const string &s, const string &end) |
| string | string_strip (const string &s) |
| void | string_replace (string &haystack, const string &needle, const string &other) |
| string | string_remove_trademark (const string &s) |
| string | string_from_bool (bool var) |
| string | to_string (const char *str) |
| string | string_human_readable_size (size_t size) |
| string | string_human_readable_number (size_t num) |
| bool string_endswith | ( | const string & | s, |
| const string & | end | ||
| ) |
Definition at line 120 of file util_string.cpp.
References len.
Referenced by ImageTextureNode::attributes(), EnvironmentTextureNode::attributes(), path_source_handle_preprocessor(), set_device_override_func(), and TEST().
| string string_from_bool | ( | bool | var | ) |
Definition at line 162 of file util_string.cpp.
Referenced by operator<<().
| string string_human_readable_number | ( | size_t | num | ) |
Definition at line 231 of file util_string.cpp.
Referenced by Scene::device_update(), NamedSizeStats::full_report(), CPUDevice::global_alloc(), DeviceSplitKernel::max_elements_for_max_buffer_size(), CPUDevice::mem_alloc(), BVHBuild::run(), and CPUDevice::tex_alloc().
| string string_human_readable_size | ( | size_t | size | ) |
Definition at line 212 of file util_string.cpp.
References r, size(), and string_printf().
Referenced by Scene::device_update(), NamedSizeStats::full_report(), CPUDevice::global_alloc(), DeviceSplitKernel::max_elements_for_max_buffer_size(), CPUDevice::mem_alloc(), operator<<(), and CPUDevice::tex_alloc().
| bool string_iequals | ( | const string & | a, |
| const string & | b | ||
| ) |
Definition at line 64 of file util_string.cpp.
References Freestyle::a.
Referenced by TEST(), xml_equal_string(), xml_read_boolean(), xml_read_scene(), and xml_read_shader_graph().
| CCL_NAMESPACE_BEGIN string string_printf | ( | const char * | format, |
| ... | |||
| ) |
Definition at line 32 of file util_string.cpp.
Referenced by add_cryptomatte_layer(), ImageManager::add_image(), Geometry::compute_bvh(), GeometryManager::create_volume_mesh(), GeometryManager::displace(), SVMCompiler::Summary::full_report(), TaskPool::Summary::full_report(), NamedSizeStats::full_report(), NamedTimeStats::full_report(), NamedSampleCountStats::full_report(), NamedNestedSampleStats::full_report(), DeviceRequestedFeatures::get_build_options(), ObjectManager::get_cryptomatte_assets(), ShaderManager::get_cryptomatte_materials(), ObjectManager::get_cryptomatte_objects(), line_directive(), DenoiseImage::load_neighbors(), lookup_instance_property(), merge_channels_metadata(), node_find_input_by_name(), node_find_output_by_name(), DenoiseImage::parse_channels(), parse_channels(), print_progress(), BVHBuild::progress_update(), DenoiseImage::save_output(), session_print_status(), string_human_readable_size(), BlenderSync::sync_render_passes(), TEST(), time_human_readable_from_seconds(), BlenderSession::update_status_progress(), Session::update_status_time(), write_render(), and xml_write_node().
| string string_remove_trademark | ( | const string & | s | ) |
Definition at line 147 of file util_string.cpp.
References result, string_replace(), and string_strip().
Referenced by system_cpu_brand_string(), and TEST().
| void string_replace | ( | string & | haystack, |
| const string & | needle, | ||
| const string & | other | ||
| ) |
Definition at line 138 of file util_string.cpp.
Referenced by ImageManager::add_image(), image_user_file_path(), path_escape(), string_remove_trademark(), and TEST().
| void string_split | ( | vector< string > & | tokens, |
| const string & | str, | ||
| const string & | separators, | ||
| bool | skip_empty_tokens | ||
| ) |
Definition at line 77 of file util_string.cpp.
References str.
Referenced by CCL_NAMESPACE_BEGIN::ShaderGraphBuilder::add_connection(), TEST(), time_human_readable_to_seconds(), xml_read_float_array(), xml_read_int_array(), xml_read_node(), and xml_read_shader_graph().
| bool string_startswith | ( | const string & | s, |
| const char * | start | ||
| ) |
Definition at line 110 of file util_string.cpp.
References len.
Referenced by BlenderSync::get_pass_type(), line_directive(), parse_channel_operation(), path_cache_clear_except(), and path_source_handle_preprocessor().
| string string_strip | ( | const string & | s | ) |
Definition at line 130 of file util_string.cpp.
References result.
Referenced by path_source_handle_preprocessor(), string_remove_trademark(), and TEST().
| string to_string | ( | const char * | str | ) |
Definition at line 170 of file util_string.cpp.
References str.