Blender
V3.3
|
#include <string.h>
#include "BLI_blenlib.h"
#include "DNA_space_types.h"
#include "DNA_text_types.h"
#include "BKE_text.h"
#include "text_format.h"
Go to the source code of this file.
Macros | |
#define | TXTFMT_PY_NUMERAL_STRING_COUNT_IMPL(txtfmt_py_numeral_char_is_fn) |
#define TXTFMT_PY_NUMERAL_STRING_COUNT_IMPL | ( | txtfmt_py_numeral_char_is_fn | ) |
Definition at line 176 of file text_format_py.c.
Definition at line 502 of file text_format_py.c.
References ED_text_format_register(), TextFormatType::ext, TextFormatType::format_identifier, TextFormatType::format_line, NULL, txtfmt_py_format_identifier(), and txtfmt_py_format_line().
Referenced by ED_spacetype_text().
|
static |
Definition at line 153 of file text_format_py.c.
References len, STR_LITERAL_STARTSWITH, and text_check_identifier().
Referenced by txtfmt_py_format_line().
|
static |
Checks the specified source string for a Python built-in function name. This name must start at the beginning of the source string and must be followed by a non-identifier (see text_check_identifier(char)) or null character.
If a built-in function is found, the length of the matching name is returned. Otherwise, -1 is returned.
See: http://docs.python.org/py3k/reference/lexical_analysis.html#keywords
The following items are derived from this list:
The code below can be re-generated using:
Definition at line 31 of file text_format_py.c.
References len, STR_LITERAL_STARTSWITH, and text_check_identifier().
Referenced by txtfmt_py_format_identifier(), and txtfmt_py_format_line().
|
static |
Definition at line 133 of file text_format_py.c.
References text_check_identifier(), and text_check_whitespace().
Referenced by txtfmt_py_format_identifier(), and txtfmt_py_format_line().
|
static |
Definition at line 238 of file text_format_py.c.
References ELEM, NULL, text_check_digit(), txtfmt_py_numeral_string_count_binary(), txtfmt_py_numeral_string_count_decimal(), txtfmt_py_numeral_string_count_hexadecimal(), txtfmt_py_numeral_string_count_octal(), and txtfmt_py_numeral_string_count_zeros().
Referenced by txtfmt_py_literal_numeral().
|
static |
Definition at line 112 of file text_format_py.c.
References len, STR_LITERAL_STARTSWITH, and text_check_identifier().
Referenced by txtfmt_py_format_identifier(), and txtfmt_py_format_line().
|
static |
Definition at line 313 of file text_format_py.c.
References FMT_TYPE_DEFAULT, FMT_TYPE_KEYWORD, FMT_TYPE_RESERVED, FMT_TYPE_SPECIAL, str, txtfmt_py_find_builtinfunc(), txtfmt_py_find_decorator(), and txtfmt_py_find_specialvar().
Referenced by ED_text_format_register_py().
Definition at line 330 of file text_format_py.c.
References BLI_assert, BLI_str_utf8_size_safe(), FlattenString::buf, ELEM, flatten_string(), flatten_string_free(), FMT_CONT_ALL, FMT_CONT_NOP, FMT_CONT_QUOTEDOUBLE, FMT_CONT_QUOTESINGLE, FMT_CONT_TRIPLE, FMT_TYPE_COMMENT, FMT_TYPE_DEFAULT, FMT_TYPE_DIRECTIVE, FMT_TYPE_KEYWORD, FMT_TYPE_NUMERAL, FMT_TYPE_SPECIAL, FMT_TYPE_STRING, FMT_TYPE_SYMBOL, FMT_TYPE_WHITESPACE, TextLine::format, len, TextLine::line, TextLine::next, NULL, blender::meshintersect::prev(), TextLine::prev, usdtokens::st(), str, text_check_delim(), text_check_format_len(), text_format_fill(), text_format_fill_ascii(), txtfmt_py_find_bool(), txtfmt_py_find_builtinfunc(), txtfmt_py_find_decorator(), txtfmt_py_find_specialvar(), and txtfmt_py_literal_numeral().
Referenced by ED_text_format_register_py().
|
static |
Definition at line 280 of file text_format_py.c.
References ELEM, FMT_TYPE_DEFAULT, FMT_TYPE_NUMERAL, NULL, text_check_digit(), and txtfmt_py_find_numeral_inner().
Referenced by txtfmt_py_format_line().
|
static |
Definition at line 187 of file text_format_py.c.
References Freestyle::c, and ELEM.
Referenced by txtfmt_py_numeral_string_count_binary().
|
static |
Definition at line 207 of file text_format_py.c.
References Freestyle::c.
Referenced by txtfmt_py_numeral_string_count_decimal().
|
static |
Definition at line 217 of file text_format_py.c.
References Freestyle::c.
Referenced by txtfmt_py_numeral_string_count_hexadecimal().
|
static |
Definition at line 197 of file text_format_py.c.
References Freestyle::c.
Referenced by txtfmt_py_numeral_string_count_octal().
|
static |
Definition at line 227 of file text_format_py.c.
References Freestyle::c, and ELEM.
Referenced by txtfmt_py_numeral_string_count_zeros().
|
static |
Definition at line 191 of file text_format_py.c.
References txtfmt_py_numeral_char_is_binary(), and TXTFMT_PY_NUMERAL_STRING_COUNT_IMPL.
Referenced by txtfmt_py_find_numeral_inner().
|
static |
Definition at line 211 of file text_format_py.c.
References txtfmt_py_numeral_char_is_decimal(), and TXTFMT_PY_NUMERAL_STRING_COUNT_IMPL.
Referenced by txtfmt_py_find_numeral_inner().
|
static |
Definition at line 221 of file text_format_py.c.
References txtfmt_py_numeral_char_is_hexadecimal(), and TXTFMT_PY_NUMERAL_STRING_COUNT_IMPL.
Referenced by txtfmt_py_find_numeral_inner().
|
static |
Definition at line 201 of file text_format_py.c.
References txtfmt_py_numeral_char_is_octal(), and TXTFMT_PY_NUMERAL_STRING_COUNT_IMPL.
Referenced by txtfmt_py_find_numeral_inner().
|
static |
Definition at line 231 of file text_format_py.c.
References txtfmt_py_numeral_char_is_zero(), and TXTFMT_PY_NUMERAL_STRING_COUNT_IMPL.
Referenced by txtfmt_py_find_numeral_inner().