ResXmlEncoders::findNonPositionalSubstitutions(): it now really finds non-positional substs only.

It was showing all substs including positional ones.
This commit is contained in:
Ryszard Wiśniewski 2011-12-02 02:41:21 +01:00
parent 3ed49c83cb
commit 8b6e02b41a

View File

@ -166,7 +166,8 @@ public final class ResXmlEncoders {
if (pos + 1 == length) { if (pos + 1 == length) {
break; break;
} }
if (str.charAt(pos + 1) != '%') { char c = str.charAt(pos + 1);
if (c >= 'a' && c <= 'z') {
ret.add(pos); ret.add(pos);
if (max != -1 && ++count >= max) { if (max != -1 && ++count >= max) {
break; break;