本文整理了Java中org.eclipse.jgit.util.FS.isCaseSensitive()
方法的一些代码示例,展示了FS.isCaseSensitive()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FS.isCaseSensitive()
方法的具体详情如下:
包路径:org.eclipse.jgit.util.FS
类名称: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
内容来源于网络,如有侵权,请联系作者删除!