Lines Matching defs:substring

492    *          argument is a prefix of the substring of this object starting
535 * argument is a prefix of the substring of this object starting
735 * specified substring. The integer returned is the smallest value
743 * @return if the string argument occurs as a substring within this
745 * such substring is returned; if it does not occur as a
746 * substring, <code>-1</code> is returned.
757 * specified substring. The integer returned is the smallest value
765 * @return if the string argument occurs as a substring within this
767 * such substring is returned; if it does not occur as a
768 * substring, <code>-1</code> is returned.
779 * specified substring, starting at the specified index. The integer
792 * @param str the substring to search for.
794 * @return If the string argument occurs as a substring within this
797 * of the first such substring is returned. If it does not occur
798 * as a substring starting at <code>fromIndex</code> or beyond,
810 * of the specified substring. The rightmost empty string "" is
818 * @param str the substring to search for.
819 * @return if the string argument occurs one or more times as a substring
821 * the last such substring is returned. If it does not occur as
822 * a substring, <code>-1</code> is returned.
833 * the specified substring.
835 * @param str the substring to search for.
842 * @return If the string argument occurs one or more times as a substring
845 * the last such substring is returned. If it does not occur as a
846 * substring starting at <code>fromIndex</code> or earlier,
857 * Returns a new string that is a substring of this string. The
858 * substring begins with the character at the specified index and
862 * "unhappy".substring(2) returns "happy"
863 * "Harbison".substring(3) returns "bison"
864 * "emptiness".substring(9) returns "" (an empty string)
868 * @return the specified substring.
873 public XMLString substring(int beginIndex)
875 return new XString(str().substring(beginIndex));
879 * Returns a new string that is a substring of this string. The
880 * substring begins at the specified <code>beginIndex</code> and
882 * Thus the length of the substring is <code>endIndex-beginIndex</code>.
886 * @return the specified substring.
894 public XMLString substring(int beginIndex, int endIndex)
896 return new XString(str().substring(beginIndex, endIndex));