public int parse(String periodStr, int position) { for (String text : iSuffixesSortedDescByLength) { if (periodStr.regionMatches(true, position, text, 0, text.length())) { if (!matchesOtherAffix(text.length(), periodStr, position)) { return position + text.length(); } } } return ~position; }
public int scan(String periodStr, final int position) { int sourceLength = periodStr.length(); for (int pos = position; pos < sourceLength; pos++) { for (String text : iSuffixesSortedDescByLength) { if (periodStr.regionMatches(true, pos, text, 0, text.length())) { if (!matchesOtherAffix(text.length(), periodStr, pos)) { return pos; } } } } return ~position; }
public int parse(String periodStr, int position) { for (String text : iSuffixesSortedDescByLength) { if (periodStr.regionMatches(true, position, text, 0, text.length())) { if (!matchesOtherAffix(text.length(), periodStr, position)) { return position + text.length(); } } } return ~position; }
public int scan(String periodStr, final int position) { int sourceLength = periodStr.length(); for (int pos = position; pos < sourceLength; pos++) { for (String text : iSuffixesSortedDescByLength) { if (periodStr.regionMatches(true, pos, text, 0, text.length())) { if (!matchesOtherAffix(text.length(), periodStr, pos)) { return pos; } } } } return ~position; }
public int scan(String periodStr, final int position) { int sourceLength = periodStr.length(); for (int pos = position; pos < sourceLength; pos++) { for (String text : iSuffixesSortedDescByLength) { if (periodStr.regionMatches(true, pos, text, 0, text.length())) { if (!matchesOtherAffix(text.length(), periodStr, pos)) { return pos; } } } } return ~position; }
public int parse(String periodStr, int position) { for (String text : iSuffixesSortedDescByLength) { if (periodStr.regionMatches(true, position, text, 0, text.length())) { if (!matchesOtherAffix(text.length(), periodStr, position)) { return position + text.length(); } } } return ~position; }
public int parse(String periodStr, int position) { for (String text : iSuffixesSortedDescByLength) { if (periodStr.regionMatches(true, position, text, 0, text.length())) { if (!matchesOtherAffix(text.length(), periodStr, position)) { return position + text.length(); } } } return ~position; }
public int scan(String periodStr, final int position) { int sourceLength = periodStr.length(); for (int pos = position; pos < sourceLength; pos++) { for (String text : iSuffixesSortedDescByLength) { if (periodStr.regionMatches(true, pos, text, 0, text.length())) { if (!matchesOtherAffix(text.length(), periodStr, pos)) { return pos; } } } } return ~position; }