[Schmitzm-commits] r1874 - trunk/schmitzm-core/src/main/java/de/schmitzm/lang
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Sun Feb 26 16:20:05 CET 2012
Author: alfonx
Date: 2012-02-26 16:20:04 +0100 (Sun, 26 Feb 2012)
New Revision: 1874
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
Log:
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java 2012-02-24 17:51:31 UTC (rev 1873)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java 2012-02-26 15:20:04 UTC (rev 1874)
@@ -2020,12 +2020,18 @@
String trimmedLowcase = removeWhitespacesToEmpty(str.toLowerCase()).trim();
if (trimmedLowcase.startsWith("no"))
return false;
+ if (trimmedLowcase.endsWith("no"))
+ return false;
+ if (trimmedLowcase.endsWith("nein"))
+ return false;
if (trimmedLowcase.equals("n"))
return false;
if (trimmedLowcase.startsWith("false"))
return false;
if (trimmedLowcase.startsWith("falsch"))
return false;
+ if (trimmedLowcase.startsWith("wrong"))
+ return false;
if (trimmedLowcase.startsWith("0"))
return false;
if (trimmedLowcase.startsWith("yes"))
@@ -2034,12 +2040,18 @@
return true;
if (trimmedLowcase.equals("y"))
return true;
+ if (trimmedLowcase.endsWith("yes"))
+ return true;
+ if (trimmedLowcase.endsWith("ja"))
+ return true;
if (trimmedLowcase.equals("j"))
return true;
if (trimmedLowcase.startsWith("1"))
return true;
if (trimmedLowcase.startsWith("true"))
return true;
+ if (trimmedLowcase.startsWith("richtig"))
+ return true;
if (trimmedLowcase.contains("nicht"))
return false;
if (trimmedLowcase.contains("nein"))
More information about the Schmitzm-commits
mailing list