94 "Antialias_Confidence",
98 "Antialias_Threshold",
113 "Bounding_Threshold",
119 "Create_Continue_Trace_Log",
135 "Fatal_Error_Command",
136 "Fatal_Error_Return",
144 "Glare_Desaturation",
147 "HideWhenMainMinimized",
168 "NormalPositionBottom",
169 "NormalPositionLeft",
170 "NormalPositionRight",
181 "ParseErrorSoundEnabled",
183 "Post_Frame_Command",
185 "Post_Scene_Command",
194 "Preview_Start_Size",
197 "ReadWriteSourceDir",
199 "RenderCompleteSound",
200 "RenderCompleteSoundEnabled",
202 "RenderErrorSoundEnabled",
209 "SaveSettingsOnExit",
212 "SecondaryINISection",
223 "Subset_Start_Frame",
234 "User_Abort_Command",
364 char cont_orig, cont, find, prev =
' ';
368 if (line->prev && line->prev->format !=
nullptr) {
369 fmt = line->prev->format;
370 cont = fmt[strlen(fmt) + 1];
378 if (line->format !=
nullptr) {
380 cont_orig = fmt[strlen(fmt) + 1];
413 if (*
str ==
']' && *(
str + 1) ==
']') {
442 else if (
ELEM(*
str,
'"',
'\'')) {
449 else if (*
str ==
' ') {
510 if (cont != cont_orig && do_next && line->next) {
526 static const char *ext[] = {
"ini",
nullptr};
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)
const char * comment_line
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)
const bool text_format_string_literals_check_sorted_array(const Span< const char * > string_literals)
int text_format_string_literal_find(const Span< const char * > string_literals, const char *text)
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)
static int txtfmt_ini_find_reserved(const char *string)
static const Span< const char * > text_format_pov_ini_literals_keyword(text_format_pov_ini_literals_keyword_data, ARRAY_SIZE(text_format_pov_ini_literals_keyword_data))
static int txtfmt_ini_find_keyword(const char *string)
static const char * text_format_pov_ini_literals_reserved_data[]
static const Span< const char * > text_format_pov_ini_literals_reserved(text_format_pov_ini_literals_reserved_data, ARRAY_SIZE(text_format_pov_ini_literals_reserved_data))
static const char * text_format_pov_ini_literals_bool_data[]
static int txtfmt_ini_find_bool(const char *string)
static const Span< const char * > text_format_pov_ini_literals_bool(text_format_pov_ini_literals_bool_data, ARRAY_SIZE(text_format_pov_ini_literals_bool_data))
void ED_text_format_register_pov_ini()
static const char * text_format_pov_ini_literals_keyword_data[]
static char txtfmt_pov_ini_format_identifier(const char *str)
static void txtfmt_pov_ini_format_line(SpaceText *st, TextLine *line, const bool do_next)