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.
Functions | |
static int | txtfmt_pov_find_keyword (const char *string) |
static int | txtfmt_pov_find_reserved_keywords (const char *string) |
static int | txtfmt_pov_find_reserved_builtins (const char *string) |
static int | txtfmt_pov_find_specialvar (const char *string) |
static int | txtfmt_pov_find_bool (const char *string) |
static char | txtfmt_pov_format_identifier (const char *str) |
static void | txtfmt_pov_format_line (SpaceText *st, TextLine *line, const bool do_next) |
void | ED_text_format_register_pov (void) |
Definition at line 931 of file text_format_pov.c.
References ED_text_format_register(), TextFormatType::ext, TextFormatType::format_identifier, TextFormatType::format_line, NULL, txtfmt_pov_format_identifier(), and txtfmt_pov_format_line().
Referenced by ED_spacetype_text().
|
static |
Definition at line 692 of file text_format_pov.c.
References len, STR_LITERAL_STARTSWITH, and text_check_identifier().
Referenced by txtfmt_pov_format_line().
|
static |
Checks the specified source string for a POV keyword (minus boolean & 'nil'). 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 char.
If a keyword is found, the length of the matching word is returned. Otherwise, -1 is returned.
See: http://www.povray.org/documentation/view/3.7.0/212/
Definition at line 31 of file text_format_pov.c.
References len, STR_LITERAL_STARTSWITH, and text_check_identifier().
Referenced by txtfmt_pov_format_identifier(), and txtfmt_pov_format_line().
|
static |
Definition at line 238 of file text_format_pov.c.
References len, STR_LITERAL_STARTSWITH, and text_check_identifier().
Referenced by txtfmt_pov_format_identifier(), and txtfmt_pov_format_line().
|
static |
Definition at line 79 of file text_format_pov.c.
References len, STR_LITERAL_STARTSWITH, and text_check_identifier().
Referenced by txtfmt_pov_format_identifier(), and txtfmt_pov_format_line().
|
static |
Checks the specified source string for a POV modifiers. 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 special name is found, the length of the matching name is returned. Otherwise, -1 is returned.
See: http://www.povray.org/documentation/view/3.7.0/212/
Definition at line 486 of file text_format_pov.c.
References len, STR_LITERAL_STARTSWITH, and text_check_identifier().
Referenced by txtfmt_pov_format_identifier(), and txtfmt_pov_format_line().
|
static |
Definition at line 745 of file text_format_pov.c.
References FMT_TYPE_DEFAULT, FMT_TYPE_DIRECTIVE, FMT_TYPE_KEYWORD, FMT_TYPE_RESERVED, FMT_TYPE_SPECIAL, str, txtfmt_pov_find_keyword(), txtfmt_pov_find_reserved_builtins(), txtfmt_pov_find_reserved_keywords(), and txtfmt_pov_find_specialvar().
Referenced by ED_text_format_register_pov().
Definition at line 764 of file text_format_pov.c.
References BLI_assert, BLI_str_utf8_size_safe(), FlattenString::buf, ELEM, flatten_string(), flatten_string_free(), FMT_CONT_ALL, FMT_CONT_COMMENT_C, FMT_CONT_NOP, FMT_CONT_QUOTEDOUBLE, FMT_CONT_QUOTESINGLE, FMT_TYPE_COMMENT, FMT_TYPE_DEFAULT, FMT_TYPE_DIRECTIVE, FMT_TYPE_KEYWORD, FMT_TYPE_NUMERAL, FMT_TYPE_RESERVED, 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_digit(), text_check_format_len(), text_format_fill(), text_format_fill_ascii(), txtfmt_pov_find_bool(), txtfmt_pov_find_keyword(), txtfmt_pov_find_reserved_builtins(), txtfmt_pov_find_reserved_keywords(), and txtfmt_pov_find_specialvar().
Referenced by ED_text_format_register_pov().