|
Blender V4.5
|
#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 222 of file msgfmt.cc.
References add(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), clear(), Message::ctxt, Message::id, Message::is_fuzzy, and Message::str.
|
static |
Definition at line 213 of file msgfmt.cc.
References clear(), Message::ctxt, Message::id, Message::is_fuzzy, and Message::str.
|
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(), generate(), i, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), Offset::key_len, Offset::key_offset, MEM_calloc_arrayN(), 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 generate(), and make().
| int main | ( | int | argc, |
| char ** | argv ) |
|
static |
Definition at line 239 of file msgfmt.cc.
References add(), BLI_file_free_lines(), BLI_file_read_as_lines(), BLI_fopen(), clear(), Message::ctxt, ELEM, generate(), Message::id, Message::is_fuzzy, l, LinkNode::link, MEM_freeN(), LinkNode::next, blender::StringRefBase::not_found, output, printf, SECTION_CTX, SECTION_ID, SECTION_NONE, SECTION_STR, Message::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, BLI_INLINE, msg_to_bytes(), and size().
Referenced by generate(), and msg_to_bytes().
| BLI_INLINE size_t uint32_to_bytes | ( | const int | value, |
| char * | bytes ) |
Definition at line 101 of file msgfmt.cc.
References BLI_INLINE, i, and uint32_to_bytes().
Referenced by generate(), and uint32_to_bytes().
|
static |
Definition at line 59 of file msgfmt.cc.
References BLI_assert, str, blender::StringRefBase::substr(), and unescape().
Referenced by make(), and unescape().