Lines 732-738
Link Here
|
732 |
* pattern match behavior |
732 |
* pattern match behavior |
733 |
* |
733 |
* |
734 |
* @param pattern the given pattern. If <code>null</code>, |
734 |
* @param pattern the given pattern. If <code>null</code>, |
735 |
* then the returned region will be the entire given name. |
735 |
* then an empty region (<code>new int[0]</code>) will be returned to let |
|
|
736 |
* the client know that the name matches the pattern but no common |
737 |
* character has been found. |
736 |
* @param name the given name |
738 |
* @param name the given name |
737 |
* @param matchRule the rule to apply for the comparison.<br> |
739 |
* @param matchRule the rule to apply for the comparison.<br> |
738 |
* The following values are accepted: |
740 |
* The following values are accepted: |
Lines 762-776
Link Here
|
762 |
* <li>etc.</li> |
764 |
* <li>etc.</li> |
763 |
* </ul> |
765 |
* </ul> |
764 |
* @return an array of <code>int</code> having two slots per returned |
766 |
* @return an array of <code>int</code> having two slots per returned |
765 |
* regions: the first one is the region starting index and the second one |
767 |
* regions (the first one is the region starting index and the second one |
766 |
* is the region length. |
768 |
* is the region length or <code>null</code> if the given name does not |
|
|
769 |
* match the given pattern). |
767 |
* <p> |
770 |
* <p> |
768 |
* The returned region may be the entire given name if the given pattern |
771 |
* The returned regions may be empty (<code>new int[0]</code>) if the |
769 |
* is either <code>null</code> (whatever the match rule is) or |
772 |
* pattern is <code>null</code> (whatever the match rule is). The returned |
770 |
* <code>'*'</code> with a pattern match rule. |
773 |
* regions will also be empty if the pattern is only made of <code>'?'</code> |
771 |
* </p><p> |
774 |
* and/or <code>'*'</code> character(s) (e.g. <code>'*'</code>, |
772 |
* May also be <code>null</code> if the given name does not match |
775 |
* <code>'?*'</code>, <code>'???'</code>, etc.) when using a pattern |
773 |
* the given pattern. |
776 |
* match rule. |
774 |
* </p> |
777 |
* </p> |
775 |
* |
778 |
* |
776 |
* @since 3.5 |
779 |
* @since 3.5 |