org.eclipse.jgit.util.FS.isCaseSensitive()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中org.eclipse.jgit.util.FS.isCaseSensitive()方法的一些代码示例,展示了FS.isCaseSensitive()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FS.isCaseSensitive()方法的具体详情如下:
包路径:org.eclipse.jgit.util.FS
类名称:FS
方法名:isCaseSensitive

FS.isCaseSensitive介绍

[英]Is this file system case sensitive
[中]此文件系统区分大小写吗

代码示例

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * See
 * {@link org.eclipse.jgit.util.FileUtils#relativizePath(String, String, String, boolean)}.
 *
 * @param base
 *            The path against which <code>other</code> should be
 *            relativized.
 * @param other
 *            The path that will be made relative to <code>base</code>.
 * @return A relative path that, when resolved against <code>base</code>,
 *         will yield the original <code>other</code>.
 * @see FileUtils#relativizePath(String, String, String, boolean)
 * @since 3.7
 */
public String relativize(String base, String other) {
  return FileUtils.relativizePath(base, other, File.separator, this.isCaseSensitive());
}

代码示例来源:origin: berlam/github-bucket

/**
 * See
 * {@link org.eclipse.jgit.util.FileUtils#relativizePath(String, String, String, boolean)}.
 *
 * @param base
 *            The path against which <code>other</code> should be
 *            relativized.
 * @param other
 *            The path that will be made relative to <code>base</code>.
 * @return A relative path that, when resolved against <code>base</code>,
 *         will yield the original <code>other</code>.
 * @see FileUtils#relativizePath(String, String, String, boolean)
 * @since 3.7
 */
public String relativize(String base, String other) {
  return FileUtils.relativizePath(base, other, File.separator, this.isCaseSensitive());
}

代码示例来源:origin: sonia.jgit/org.eclipse.jgit

return ""; //$NON-NLS-1$
final boolean ignoreCase = !FS.DETECTED.isCaseSensitive();
final String[] baseSegments = base.split(Pattern.quote(File.separator));
final String[] otherSegments = other.split(Pattern

相关文章