Mercurial > hg > orthanc
comparison OrthancServer/Search/RangeConstraint.cpp @ 1754:3a4f7dc00f49 db-changes
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Oct 2015 11:31:58 +0100 |
parents | 99f4a05f39fa |
children | 03b030680e3d |
comparison
equal
deleted
inserted
replaced
1753:faf2ecab3472 | 1754:3a4f7dc00f49 |
---|---|
44 IFindConstraint(tag), | 44 IFindConstraint(tag), |
45 lower_(lower), | 45 lower_(lower), |
46 upper_(upper), | 46 upper_(upper), |
47 isCaseSensitive_(isCaseSensitive) | 47 isCaseSensitive_(isCaseSensitive) |
48 { | 48 { |
49 if (isCaseSensitive_) | 49 if (!isCaseSensitive_) |
50 { | 50 { |
51 Toolbox::ToUpperCase(lower_); | 51 Toolbox::ToUpperCase(lower_); |
52 Toolbox::ToUpperCase(upper_); | 52 Toolbox::ToUpperCase(upper_); |
53 } | 53 } |
54 } | 54 } |
63 | 63 |
64 bool RangeConstraint::Match(const std::string& value) const | 64 bool RangeConstraint::Match(const std::string& value) const |
65 { | 65 { |
66 std::string v = value; | 66 std::string v = value; |
67 | 67 |
68 if (isCaseSensitive_) | 68 if (!isCaseSensitive_) |
69 { | 69 { |
70 Toolbox::ToUpperCase(v); | 70 Toolbox::ToUpperCase(v); |
71 } | 71 } |
72 | 72 |
73 if (lower_.size() == 0 && | 73 if (lower_.size() == 0 && |