/** * @see #surround(String, String, String) */ public static String surround(String string, String fix) { return surround(string, fix, fix); }
/** * @see #surround(String, String, String) */ public static String surround(final String string, final String fix) { return surround(string, fix, fix); }
StringUtil.surround(packagePath, StringPool.SLASH) );
@Test void testSurround() { assertEquals("preqwesuf", StringUtil.surround("qwe", "pre", "suf")); assertEquals("preqwesuf", StringUtil.surround("preqwe", "pre", "suf")); assertEquals("preqwesuf", StringUtil.surround("qwesuf", "pre", "suf")); assertEquals("preqwesuf", StringUtil.surround("preqwesuf", "pre", "suf")); assertEquals("fixqwefix", StringUtil.surround("qwe", "fix")); assertEquals("preqwe", StringUtil.prefix("qwe", "pre")); assertEquals("preqwe", StringUtil.prefix("preqwe", "pre")); assertEquals("qwesuf", StringUtil.suffix("qwe", "suf")); assertEquals("qwesuf", StringUtil.suffix("qwesuf", "suf")); }
/** * @see #surround(String, String, String) */ public static String surround(final String string, final String fix) { return surround(string, fix, fix); }
/** * @see #surround(String, String, String) */ public static String surround(String string, String fix) { return surround(string, fix, fix); }
/** * Get the content ID for inline attachments. This is simply `name` * surrounded with angle brackets (i.e. <name>) as it required for content IDs. * * @return the content ID; */ public String contentId() { return StringUtil.surround(name.trim(), "<", ">"); }
/** * Get the content ID for inline attachments. This is simply `name` * surrounded with angle brackets (i.e. <name>) as it required for content IDs. * * @return the content ID; */ public String contentId() { return StringUtil.surround(name.trim(), "<", ">"); }
packageActionPath = StringUtil.replace(packageActionPath, REPL_PACKAGE, packagePath); return StringUtil.surround(packageActionPath, StringPool.SLASH);