From 83a143088737a09cb1167b909591049725f44bc5 Mon Sep 17 00:00:00 2001 From: Greg Woolsey Date: Thu, 16 Nov 2017 01:22:52 +0000 Subject: [PATCH] add Locale awareness to case insensitive conditional comparisons in formatting rule logic. Needed anyway, and removes forbidden API issues. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1815404 13f79535-47bb-0310-9956-ffa450edef68 --- .../EvaluationConditionalFormatRule.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java b/src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java index 805763e38a..55a684d5cd 100644 --- a/src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java +++ b/src/java/org/apache/poi/ss/formula/EvaluationConditionalFormatRule.java @@ -17,6 +17,8 @@ package org.apache.poi.ss.formula; +import java.text.CollationKey; +import java.text.Collator; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.util.ArrayList; @@ -49,6 +51,7 @@ import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.util.CellRangeAddress; import org.apache.poi.ss.util.CellReference; +import org.apache.poi.util.LocaleUtil; /** * Abstracted and cached version of a Conditional Format rule for use with a @@ -86,6 +89,9 @@ public class EvaluationConditionalFormatRule implements Comparable