Blender
V3.3
|
#include <stdlib.h>
#include <string.h>
#include "BLI_dynstr.h"
#include "BLI_fileops.h"
#include "BLI_ghash.h"
#include "BLI_linklist.h"
#include "BLI_memarena.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
Go to the source code of this file.
Classes | |
struct | Message |
struct | Offset |
Macros | |
#define | NULLSEP_STR "\xff" |
#define | NULLSEP_CHR '\xff' |
Typedefs | |
typedef struct Message | Message |
typedef struct Offset | Offset |
Enumerations | |
enum | eSectionType { SECTION_NONE = 0 , SECTION_CTX = 1 , SECTION_ID = 2 , SECTION_STR = 3 } |
Functions | |
static char * | trim (char *str) |
static char * | unescape (char *str) |
static int | qsort_str_cmp (const void *a, const void *b) |
static char ** | get_keys_sorted (GHash *messages, const uint32_t num_keys) |
BLI_INLINE size_t | uint32_to_bytes (const int value, char *bytes) |
BLI_INLINE size_t | msg_to_bytes (char *msg, char *bytes, uint32_t size) |
static char * | generate (GHash *messages, size_t *r_output_size) |
static void | add (GHash *messages, MemArena *memarena, const Message *msg) |
static void | clear (Message *msg) |
static int | make (const char *input_file_name, const char *output_file_name) |
int | main (int argc, char **argv) |
enum eSectionType |
Definition at line 252 of file msgfmt.c.
References BLI_dynstr_get_cstring_ex(), BLI_dynstr_get_len(), BLI_ghash_insert(), BLI_memarena_alloc(), Message::ctxt, Message::id, Message::is_fuzzy, and Message::str.
Referenced by make().
Definition at line 278 of file msgfmt.c.
References BLI_dynstr_clear(), Message::ctxt, Message::id, Message::is_fuzzy, and Message::str.
Referenced by BKE_fluid_collisionextents_set(), BKE_fluid_particles_set(), BKE_lattice_bitmap_from_flag(), BKE_pbvh_get_grid_updates(), BKE_ptcache_id_reset(), bm_decim_build_edge_cost_single(), BM_lnorspace_err(), BPy_reports_to_error(), collection_flag_exec(), collection_flag_poll(), collection_view_layer_exec(), collections_view_layer_poll(), contract_shape(), ED_gpencil_sbuffer_ensure(), edbm_mark_seam_exec(), edbm_mark_sharp_exec(), EEVEE_mist_output_accumulate(), EEVEE_occlusion_output_accumulate(), EEVEE_reflection_output_accumulate(), EEVEE_shadow_output_accumulate(), EEVEE_subsurface_compute(), EEVEE_subsurface_data_render(), EEVEE_subsurface_output_init(), EEVEE_volumes_output_accumulate(), gpencil_select_buffer_ensure(), GPU_texture_clear(), make(), material_renderpass_accumulate(), set_style(), set_style_exec(), shade_smooth_exec(), toggle_style_exec(), uv_pin_exec(), iTaSC::CacheEntry::~CacheEntry(), Freestyle::Grid::~Grid(), and Freestyle::WingedEdge::~WingedEdge().
|
static |
Definition at line 170 of file msgfmt.c.
References BLI_assert, BLI_ghash_len(), BLI_ghash_lookup(), get_keys_sorted(), Offset::key_len, Offset::key_offset, MEM_freeN, MEM_mallocN, msg_to_bytes(), output, uint32_to_bytes(), v, Offset::val_len, and Offset::val_offset.
Referenced by SVMCompiler::compile_type(), and make().
Definition at line 129 of file msgfmt.c.
References BLI_ghashIterator_getKey(), GHASH_ITER, MEM_mallocN, and qsort_str_cmp().
Referenced by generate().
|
static |
Definition at line 286 of file msgfmt.c.
References add(), BLI_dynstr_append(), BLI_dynstr_free(), BLI_dynstr_get_len(), BLI_dynstr_new_memarena(), BLI_file_free_lines(), BLI_file_read_as_lines(), BLI_fopen(), BLI_ghash_free(), BLI_ghash_new(), BLI_ghashutil_strcmp(), BLI_ghashutil_strhash_p_murmur(), BLI_memarena_free(), BLI_memarena_new(), BLI_MEMARENA_STD_BUFSIZE, clear(), Message::ctxt, ELEM, generate(), Message::id, Message::is_fuzzy, l, LinkNode::link, MEM_freeN, LinkNode::next, NULL, NULLSEP_STR, output, SECTION_CTX, SECTION_ID, SECTION_NONE, SECTION_STR, Message::str, trim(), and unescape().
Referenced by main(), and output_handle_geometry().
BLI_INLINE size_t msg_to_bytes | ( | char * | msg, |
char * | bytes, | ||
uint32_t | size | ||
) |
Definition at line 155 of file msgfmt.c.
References NULLSEP_CHR, and size().
Referenced by generate().
Definition at line 124 of file msgfmt.c.
References Freestyle::a, and usdtokens::b().
Referenced by get_keys_sorted().
|
static |
Definition at line 60 of file msgfmt.c.
References ELEM, len, and str.
Referenced by make(), blender::io::obj::OBJParser::parse(), slip_add_sequences_recursive(), blender::nodes::node_geo_curve_trim_cc::to_single_point_bezier(), blender::nodes::node_geo_curve_trim_cc::to_single_point_data(), blender::nodes::node_geo_curve_trim_cc::to_single_point_nurbs(), and blender::nodes::node_geo_curve_trim_cc::to_single_point_poly().
BLI_INLINE size_t uint32_to_bytes | ( | const int | value, |
char * | bytes | ||
) |
Definition at line 146 of file msgfmt.c.
Referenced by generate().