Change !BLI_ghashIterator_isDone to BLI_ghashIterator_notDone. It is
[blender.git] / source / blender / editors / space_text / text_autocomplete.c
index 0c16208c2a7418fe5cba371ca30c3779b0b95446..106093d2531999f0aa38d2b96f134f6470152c0a 100644 (file)
@@ -170,13 +170,13 @@ static GHash *text_autocomplete_build(Text *text)
                                /* seek identifier beginning */
                                i_pos = i_start;
                                while ((i_start < linep->len) &&
-                                      (!text_check_identifier_nodigit(BLI_str_utf8_as_unicode_and_size_safe(&linep->line[i_start], &i_pos))))
+                                      (!text_check_identifier_nodigit_unicode(BLI_str_utf8_as_unicode_and_size_safe(&linep->line[i_start], &i_pos))))
                                {
                                        i_start = i_pos;
                                }
                                i_pos = i_end = i_start;
                                while ((i_end < linep->len) &&
-                                      (text_check_identifier(BLI_str_utf8_as_unicode_and_size_safe(&linep->line[i_end], &i_pos))))
+                                      (text_check_identifier_unicode(BLI_str_utf8_as_unicode_and_size_safe(&linep->line[i_end], &i_pos))))
                                {
                                        i_end = i_pos;
                                }
@@ -184,7 +184,7 @@ static GHash *text_autocomplete_build(Text *text)
                                if ((i_start != i_end) &&
                                    /* check we're at the beginning of a line or that the previous char is not an identifier
                                     * this prevents digits from being added */
-                                   ((i_start < 1) || !text_check_identifier(BLI_str_utf8_as_unicode(&linep->line[i_start - 1]))))
+                                   ((i_start < 1) || !text_check_identifier_unicode(BLI_str_utf8_as_unicode(&linep->line[i_start - 1]))))
                                {
                                        char *str_sub = &linep->line[i_start];
                                        const int choice_len = i_end - i_start;
@@ -220,7 +220,7 @@ static GHash *text_autocomplete_build(Text *text)
                        TextFormatType *tft;
                        tft = ED_text_format_get(text);
 
-                       for (; !BLI_ghashIterator_isDone(iter); BLI_ghashIterator_step(iter)) {
+                       for (; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
                                const char *s = BLI_ghashIterator_getValue(iter);
                                texttool_suggest_add(s, tft->format_identifier(s));
                        }