Blender V5.3
text_format_py.cc File Reference
#include <cstring>
#include "BLI_string_utf8.hh"
#include "DNA_space_types.h"
#include "DNA_text_types.h"
#include "BKE_text.h"
#include "text_format.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Format Line Implementation (#TextFormatType::format_line)
static void blender::txtfmt_py_format_line (SpaceText *st, TextLine *line, const bool do_next)
Registration
void blender::ED_text_format_register_py ()

Local Functions (for #TextFormatType::format_line)

#define TXTFMT_PY_NUMERAL_STRING_COUNT_IMPL(txtfmt_py_numeral_char_is_fn)
static int blender::txtfmt_py_find_builtinfunc (const char *string)
static int blender::txtfmt_py_find_specialvar (const char *string)
static int blender::txtfmt_py_find_decorator (const char *string)
static int blender::txtfmt_py_find_bool (const char *string)
static bool blender::txtfmt_py_numeral_char_is_binary (const char c)
static uint blender::txtfmt_py_numeral_string_count_binary (const char *string)
static bool blender::txtfmt_py_numeral_char_is_octal (const char c)
static uint blender::txtfmt_py_numeral_string_count_octal (const char *string)
static bool blender::txtfmt_py_numeral_char_is_decimal (const char c)
static uint blender::txtfmt_py_numeral_string_count_decimal (const char *string)
static bool blender::txtfmt_py_numeral_char_is_hexadecimal (const char c)
static uint blender::txtfmt_py_numeral_string_count_hexadecimal (const char *string)
static bool blender::txtfmt_py_numeral_char_is_zero (const char c)
static uint blender::txtfmt_py_numeral_string_count_zeros (const char *string)
static int blender::txtfmt_py_find_numeral_inner (const char *string)
static int blender::txtfmt_py_literal_numeral (const char *string, char prev_fmt)
static char blender::txtfmt_py_format_identifier (const char *str)

Local Literal Definitions

static const char * blender::text_format_py_literals_builtinfunc_data []
static const char * blender::text_format_py_literals_specialvar_data []
static const char * blender::text_format_py_literals_bool_data []
static const Span< const char * > blender::text_format_py_literals_builtinfunc (text_format_py_literals_builtinfunc_data, ARRAY_SIZE(text_format_py_literals_builtinfunc_data))
static const Span< const char * > blender::text_format_py_literals_specialvar (text_format_py_literals_specialvar_data, ARRAY_SIZE(text_format_py_literals_specialvar_data))
static const Span< const char * > blender::text_format_py_literals_bool (text_format_py_literals_bool_data, ARRAY_SIZE(text_format_py_literals_bool_data))

Macro Definition Documentation

◆ TXTFMT_PY_NUMERAL_STRING_COUNT_IMPL

#define TXTFMT_PY_NUMERAL_STRING_COUNT_IMPL ( txtfmt_py_numeral_char_is_fn)
Value:
{ \
uint count = 0; \
for (; txtfmt_py_numeral_char_is_fn(*string); string += 1) { \
count += 1; \
} \
return count; \
} \
((void)0)

Definition at line 177 of file text_format_py.cc.

Referenced by blender::txtfmt_py_numeral_string_count_binary(), blender::txtfmt_py_numeral_string_count_decimal(), blender::txtfmt_py_numeral_string_count_hexadecimal(), blender::txtfmt_py_numeral_string_count_octal(), and blender::txtfmt_py_numeral_string_count_zeros().