Lines Matching defs:substring

494    *          argument is a prefix of the substring of this object starting
537 * argument is a prefix of the substring of this object starting
737 * specified substring. The integer returned is the smallest value
745 * @return if the string argument occurs as a substring within this
747 * such substring is returned; if it does not occur as a
748 * substring, <code>-1</code> is returned.
759 * specified substring. The integer returned is the smallest value
767 * @return if the string argument occurs as a substring within this
769 * such substring is returned; if it does not occur as a
770 * substring, <code>-1</code> is returned.
781 * specified substring, starting at the specified index. The integer
794 * @param str the substring to search for.
796 * @return If the string argument occurs as a substring within this
799 * of the first such substring is returned. If it does not occur
800 * as a substring starting at <code>fromIndex</code> or beyond,
812 * of the specified substring. The rightmost empty string "" is
820 * @param str the substring to search for.
821 * @return if the string argument occurs one or more times as a substring
823 * the last such substring is returned. If it does not occur as
824 * a substring, <code>-1</code> is returned.
835 * the specified substring.
837 * @param str the substring to search for.
844 * @return If the string argument occurs one or more times as a substring
847 * the last such substring is returned. If it does not occur as a
848 * substring starting at <code>fromIndex</code> or earlier,
859 * Returns a new string that is a substring of this string. The
860 * substring begins with the character at the specified index and
864 * "unhappy".substring(2) returns "happy"
865 * "Harbison".substring(3) returns "bison"
866 * "emptiness".substring(9) returns "" (an empty string)
870 * @return the specified substring.
875 public XMLString substring(int beginIndex)
877 return new XString(str().substring(beginIndex));
881 * Returns a new string that is a substring of this string. The
882 * substring begins at the specified <code>beginIndex</code> and
884 * Thus the length of the substring is <code>endIndex-beginIndex</code>.
888 * @return the specified substring.
896 public XMLString substring(int beginIndex, int endIndex)
898 return new XString(str().substring(beginIndex, endIndex));