|
Blender V4.3
|
#include <algorithm>#include <cstdlib>#include <cstring>#include <string>#include <utility>#include "BLI_fileops.h"#include "BLI_linklist.h"#include "BLI_map.hh"#include "BLI_string_ref.hh"#include "BLI_utildefines.h"#include "BLI_vector.hh"#include "MEM_guardedalloc.h"Go to the source code of this file.
Classes | |
| struct | Message |
| struct | Offset |
Enumerations | |
| enum | eSectionType { SECTION_NONE = 0 , SECTION_CTX = 1 , SECTION_ID = 2 , SECTION_STR = 3 } |
Functions | |
| static blender::StringRef | unescape (std::string &str) |
| BLI_INLINE size_t | uint32_to_bytes (const int value, char *bytes) |
| BLI_INLINE size_t | msg_to_bytes (const std::string &msg, char *bytes, uint32_t size) |
| static char * | generate (blender::Map< std::string, std::string > &messages, size_t *r_output_size) |
| static void | clear (Message &msg) |
| static void | add (blender::Map< std::string, std::string > &messages, Message &msg) |
| static int | make (const char *input_file_name, const char *output_file_name) |
| int | main (int argc, char **argv) |
| enum eSectionType |
|
static |
Definition at line 227 of file msgfmt.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), clear(), Message::ctxt, Message::id, Message::is_fuzzy, and Message::str.
Referenced by alloc_utf16_from_8(), alloc_utf_8_from_16(), btSoftBodyHelpers::Draw(), filenum_newname(), find_first_points(), blender::compositor::BilateralBlurOperation::get_area_of_interest(), gwl_scaled_fixed_t_add_and_calc_rounded_delta(), blender::compositor::FastGaussianBlurOperation::IIR_gauss(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write(), make(), ScaleDownX::op(), ScaleDownY::op(), ScaleUpX::op(), ScaleUpY::op(), quad_1edge_split(), region_azone_tab_plus(), blender::bke::MutableAttributeAccessor::rename(), and txt_insert_buf().
|
static |
Definition at line 218 of file msgfmt.cc.
References Message::ctxt, Message::id, Message::is_fuzzy, and Message::str.
Referenced by add(), BKE_fluid_collisionextents_set(), BKE_fluid_particles_set(), BKE_lattice_bitmap_from_flag(), BKE_ptcache_id_reset(), bm_decim_build_edge_cost_single(), BM_lnorspace_err(), BPy_reports_to_error(), btDbvtBroadphase::btDbvtBroadphase(), btDbvtBroadphase::calculateOverlappingPairs(), blender::draw::detail::PassBase< DrawCommandBufType >::clear_color(), blender::draw::detail::PassBase< DrawCommandBufType >::clear_color_depth_stencil(), blender::draw::detail::PassBase< DrawCommandBufType >::clear_depth(), blender::draw::detail::PassBase< DrawCommandBufType >::clear_depth_stencil(), blender::draw::detail::PassBase< DrawCommandBufType >::clear_stencil(), blender::ed::outliner::collection_flag_exec(), blender::ed::outliner::collection_flag_poll(), blender::ed::outliner::collection_view_layer_exec(), blender::ed::outliner::collections_view_layer_poll(), ED_gpencil_sbuffer_ensure(), edbm_mark_seam_exec(), edbm_mark_sharp_exec(), GPU_texture_clear(), make(), blender::gpu::replace_array_initializers_func(), blender::gpu::replace_outvars(), set_style(), set_style_exec(), shade_smooth_exec(), toggle_style_exec(), uv_pin_exec(), and iTaSC::CacheEntry::~CacheEntry().
|
static |
Definition at line 122 of file msgfmt.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), b, blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), BLI_assert, blender::Vector< T, InlineBufferCapacity, Allocator >::end(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), Offset::key_len, Offset::key_offset, MEM_freeN(), msg_to_bytes(), operator=(), output, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), uint32_to_bytes(), v, Offset::val_len, and Offset::val_offset.
Referenced by make().
|
static |
Definition at line 244 of file msgfmt.cc.
References add(), BLI_file_free_lines(), BLI_file_read_as_lines(), BLI_fopen(), clear(), ELEM, generate(), l, LinkNode::link, MEM_freeN(), LinkNode::next, blender::StringRefBase::not_found, printf, SECTION_CTX, SECTION_ID, SECTION_NONE, SECTION_STR, and unescape().
Referenced by main().
| BLI_INLINE size_t msg_to_bytes | ( | const std::string & | msg, |
| char * | bytes, | ||
| uint32_t | size ) |
Definition at line 110 of file msgfmt.cc.
References BLI_assert, and size().
Referenced by generate().
| BLI_INLINE size_t uint32_to_bytes | ( | const int | value, |
| char * | bytes ) |
Definition at line 101 of file msgfmt.cc.
Referenced by generate().
|
static |
Definition at line 59 of file msgfmt.cc.
References BLI_assert, next, str, and blender::StringRefBase::substr().
Referenced by make().