Add support for 3 non-positional attributes
- fixes & fixes
- add tests
@@ -143,12 +143,12 @@ public final class ResXmlEncoders {
}
public static boolean hasMultipleNonPositionalSubstitutions(String str) {
- Duo<List<Integer>, List<Integer>> tuple = findSubstitutions(str, 2);
+ Duo<List<Integer>, List<Integer>> tuple = findSubstitutions(str, 3);
return ! tuple.m1.isEmpty() && tuple.m1.size() + tuple.m2.size() > 1;
}
public static String enumerateNonPositionalSubstitutionsIfRequired(String str) {
- Duo<List<Integer>, List<Integer>> tuple = findSubstitutions(str, 2);
+ Duo<List<Integer>, List<Integer>> tuple = findSubstitutions(str, 3);
if (tuple.m1.isEmpty() || tuple.m1.size() + tuple.m2.size() < 2) {
return str;
}
