[gthumb] template tokenizer: better function name
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] template tokenizer: better function name
- Date: Sat, 19 Jun 2021 18:10:43 +0000 (UTC)
commit dc698d964e0fac22d0afca71402015f1529f8cbb
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Jun 10 07:46:23 2021 +0200
template tokenizer: better function name
gthumb/str-utils.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gthumb/str-utils.c b/gthumb/str-utils.c
index 8a054958..22d3256f 100644
--- a/gthumb/str-utils.c
+++ b/gthumb/str-utils.c
@@ -985,7 +985,7 @@ static char *TokenizerStateName[] = {
static gboolean
-valid_char_after_code_prefix (gunichar ch)
+_g_template_valid_special_code (gunichar ch)
{
return (ch != '%') && (ch != '{') && ! g_unichar_isspace (ch) && (ch != 0);
}
@@ -1032,7 +1032,7 @@ _g_template_tokenize (const char *template,
ch = (p != NULL) ? g_utf8_get_char (p) : 0;
next_p = (p != NULL) ? g_utf8_next_char (p) : NULL;
next_ch = (next_p != NULL) ? g_utf8_get_char (next_p) : 0;
- code_prefix = (ch == '%') && valid_char_after_code_prefix (next_ch);
+ code_prefix = (ch == '%') && _g_template_valid_special_code (next_ch);
enumerator_prefix = split_enumerator && (ch == '#');
#if DEBUG_TOKENIZER
@@ -1151,7 +1151,7 @@ _g_template_get_token_code (const char *token)
ch = g_utf8_get_char (token);
- return valid_char_after_code_prefix (ch) ? ch : 0;
+ return _g_template_valid_special_code (ch) ? ch : 0;
}
@@ -1198,7 +1198,7 @@ _g_template_get_token_args (const char *token)
switch (state) {
case TOKENIZER_STATE_START:
- if ((ch == '%') && valid_char_after_code_prefix (next_ch)) {
+ if ((ch == '%') && _g_template_valid_special_code (next_ch)) {
/* Skip the code. */
p = next_p;
next_p = (p != NULL) ? g_utf8_next_char (p) : NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]