[gspell] utils: rename is_digit() -> is_number()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell] utils: rename is_digit() -> is_number()
- Date: Sat, 16 Jan 2016 15:15:02 +0000 (UTC)
commit eefbe3a931d35d4cdf336d8ce50dfa552f96b431
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Jan 16 16:13:12 2016 +0100
utils: rename is_digit() -> is_number()
AFAIK, in English too "digit" is for a number with one… digit (0-9).
So, "number" is more correct here.
gspell/gspell-checker.c | 2 +-
gspell/gspell-utils.c | 4 ++--
gspell/gspell-utils.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gspell/gspell-checker.c b/gspell/gspell-checker.c
index 42ce234..df92492 100644
--- a/gspell/gspell-checker.c
+++ b/gspell/gspell-checker.c
@@ -368,7 +368,7 @@ gspell_checker_check_word (GspellChecker *checker,
return TRUE;
}
- if (_gspell_utils_is_digit (word, word_length))
+ if (_gspell_utils_is_number (word, word_length))
{
return TRUE;
}
diff --git a/gspell/gspell-utils.c b/gspell/gspell-utils.c
index 4505a52..ba287f8 100644
--- a/gspell/gspell-utils.c
+++ b/gspell/gspell-utils.c
@@ -22,8 +22,8 @@
#include <string.h>
gboolean
-_gspell_utils_is_digit (const gchar *text,
- gssize text_length)
+_gspell_utils_is_number (const gchar *text,
+ gssize text_length)
{
const gchar *p;
const gchar *end;
diff --git a/gspell/gspell-utils.h b/gspell/gspell-utils.h
index 0dc813a..73966fd 100644
--- a/gspell/gspell-utils.h
+++ b/gspell/gspell-utils.h
@@ -26,7 +26,7 @@
G_BEGIN_DECLS
G_GNUC_INTERNAL
-gboolean _gspell_utils_is_digit (const gchar *text,
+gboolean _gspell_utils_is_number (const gchar *text,
gssize text_length);
G_GNUC_INTERNAL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]