Lines Matching refs:prefix

45  * <li>the prefix - C:\</li>
75 * Both prefix styles are matched always, irrespective of the machine that you are
268 int prefix = getPrefixLength(filename);
269 if (prefix < 0) {
291 for (int i = prefix + 1; i < size; i++) {
300 for (int i = prefix + 1; i < size; i++) {
302 (i == prefix + 1 || array[i - 2] == SYSTEM_SEPARATOR)) {
314 for (int i = prefix + 2; i < size; i++) {
316 (i == prefix + 2 || array[i - 3] == SYSTEM_SEPARATOR)) {
317 if (i == prefix + 2) {
324 for (j = i - 4 ; j >= prefix; j--) {
334 System.arraycopy(array, i + 1, array, prefix, size - i);
335 size -= (i + 1 - prefix);
336 i = prefix + 1;
343 if (size <= prefix) { // should never be less than prefix
364 * If <code>pathToAdd</code> is absolute (has an absolute prefix), then
383 * (*) Note that the Windows relative drive prefix is unreliable when
394 int prefix = getPrefixLength(fullFilenameToAdd);
395 if (prefix < 0) {
398 if (prefix > 0) {
462 * Returns the length of the filename prefix, such as <code>C:/</code> or <code>~/</code>.
466 * The prefix length includes the first slash in the full filename
489 * @param filename the filename to find the prefix in, null returns -1
490 * @return the length of the prefix, -1 if invalid or null
591 * Gets the prefix from a full filename, such as <code>C:/</code>
595 * The prefix includes the first slash in the full filename where applicable.
617 * @return the prefix of the file, null if invalid
634 * Gets the path from a full filename, which excludes the prefix.
649 * This method drops the prefix from the result.
650 * See {@link #getFullPath(String)} for the method that retains the prefix.
660 * Gets the path from a full filename, which excludes the prefix, and
676 * This method drops the prefix from the result.
677 * See {@link #getFullPathNoEndSeparator(String)} for the method that retains the prefix.
697 int prefix = getPrefixLength(filename);
698 if (prefix < 0) {
702 if (prefix >= filename.length() || index < 0) {
705 return filename.substring(prefix, index + separatorAdd);
709 * Gets the full path from a full filename, which is the prefix + path.
738 * Gets the full path from a full filename, which is the prefix + path,
778 int prefix = getPrefixLength(filename);
779 if (prefix < 0) {
782 if (prefix >= filename.length()) {
791 return filename.substring(0, prefix);