[chronojump] Minor change
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Minor change
- Date: Mon, 21 Dec 2020 10:24:46 +0000 (UTC)
commit a410f527b8a9bd2cdb74580286d1cc0fe396ff52
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Dec 21 11:23:08 2020 +0100
Minor change
src/util.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/util.cs b/src/util.cs
index 67b54c2d..82e19302 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -846,10 +846,13 @@ public class Util
LogB.Information("tryParse 'joan' as double: " + Util.IsNumber("joan",true).ToString());
//catalan (True)
}
- public static bool IsNumber(char c, bool canBeDecimal)
+ /*
+ * unused
+ public static bool IsNumber(char c)
{
- return IsNumber(c.ToString(), canBeDecimal);
+ return IsNumber(c.ToString(), false);
}
+ */
//gets a string and returns if all the chars are numbers or the decimal point in current localization
public static bool IsNumber(string str, bool canBeDecimal)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]