boolean indented() { return text != null && (StringUtil.startsWithChar(text, ' ') || StringUtil.startsWithChar(text, '\t')); }
public static boolean fileToIgnore(@NotNull String fileName) { return StringUtil.startsWithChar(fileName, '_') || StringUtil.startsWithChar(fileName, '.'); }
/** * Resolves user directory with the <code>user.home</code> property. * * @param path path with leading ~ * @return resolved path */ public static String resolveUserDir(@Nullable String path) { if (StringUtil.startsWithChar(path, '~')) { assert path != null; path = System.getProperty("user.home") + path.substring(1); } return path; }
} else if (StringUtil.equals(Constants.STAR, glob)) { sb.append(".*"); } else if (StringUtil.startsWithChar(glob, '*')) { sb.append(".*?"); } else if (StringUtil.startsWithChar(glob, '/')) { beginIndex = 1; } else {
@NotNull @Override public Collection<PsiElement> getPsiTargets(@NotNull PhpToolboxDeclarationHandlerParameter parameter) { String contents = parameter.getContents(); if(!StringUtil.startsWithChar(contents, '\\')) { contents = "\\" + contents; } return new ArrayList<>( resolveParameter(PhpIndex.getInstance(parameter.getProject()), contents) ); }
input.add(content.substring(0, separatorIndex - 1)); content = content.substring(separatorIndex); while (StringUtil.startsWithChar(content, '-')) { content = content.substring(1); if (StringUtil.startsWithChar(content, '\n')) { content = content.substring(1);