GP-3285 Added parsing of parenthesized values with ull, llu, lu, LL suffixes

This commit is contained in:
emteere 2023-04-04 07:34:46 -04:00 committed by Ryan Kurtz
parent 88d0110a09
commit 2ac921df58
3 changed files with 81 additions and 7 deletions

View file

@ -269,7 +269,10 @@ public class AddressEvaluator {
radix = 16;
}
strValue = strValue.toLowerCase();
if (strValue.endsWith("ul")) {
if (strValue.endsWith("ull") || strValue.endsWith("llu")) {
strValue = strValue.substring(start, strValue.length() - 3);
}
else if (strValue.endsWith("ul") || strValue.endsWith("lu") || strValue.endsWith("ll")) {
strValue = strValue.substring(start, strValue.length() - 2);
}
else if (strValue.endsWith("l") || strValue.endsWith("u")) {