769 char cont_orig, cont, find,
prev =
' ';
775 cont = fmt[strlen(fmt) + 1];
785 cont_orig = fmt[strlen(fmt) + 1];
818 if (*
str ==
'*' && *(
str + 1) ==
'/') {
843 if (*
str ==
'/' && *(
str + 1) ==
'*') {
851 else if (*
str ==
'/' && *(
str + 1) ==
'/') {
854 else if (
ELEM(*
str,
'"',
'\'')) {
861 else if (*
str ==
' ') {
924 if (cont != cont_orig && do_next && line->
next) {
934 static const char *ext[] = {
"pov",
"inc",
"mcr",
"mac",
NULL};
bool text_check_digit(char ch)
bool text_check_identifier(char ch)
bool text_check_delim(char ch)
int BLI_str_utf8_size_safe(const char *p) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
SymEdge< T > * prev(const SymEdge< T > *se)
static const pxr::TfToken st("st", pxr::TfToken::Immortal)
char(* format_identifier)(const char *string)
void(* format_line)(SpaceText *st, TextLine *line, bool do_next)
int flatten_string(const SpaceText *st, FlattenString *fs, const char *in)
void text_format_fill(const char **str_p, char **fmt_p, const char type, const int len)
void flatten_string_free(FlattenString *fs)
void text_format_fill_ascii(const char **str_p, char **fmt_p, const char type, const int len)
void ED_text_format_register(TextFormatType *tft)
int text_check_format_len(TextLine *line, uint len)
#define STR_LITERAL_STARTSWITH(str, str_literal, len_var)
static int txtfmt_pov_find_reserved_keywords(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)
static int txtfmt_pov_find_reserved_builtins(const char *string)
void ED_text_format_register_pov(void)
static int txtfmt_pov_find_bool(const char *string)
static int txtfmt_pov_find_keyword(const char *string)
static int txtfmt_pov_find_specialvar(const char *string)